Last active
July 26, 2018 17:15
-
-
Save abv/fe9ae4e9dc67897f452023a90d6bb1a0 to your computer and use it in GitHub Desktop.
DUMBO food truck cam in OS X menu bar (For BitBar)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TIMESTAMP=$(date +"%s") | |
IMAGE=$(curl -s "https://nexusapi-us1.camera.home.nest.com/get_image?uuid=5a6a099c3d894d0284560626c7944d50&width=400&t=$TIMESTAMP" | base64) | |
cat << EOF | |
DUMBO 🚚 | |
--- | |
| href=https://www.datalot.com/dumbo-food-truck-cam/ image=$IMAGE | |
EOF |
Looks like the URL is broken! Adding -us1
to the subdomain seemed to do the trick for me (https://nexusapi-us1.dropcam.com
)
Thanks @dingbat updated the url to nexusapi-us1.camera.home.nest.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Step 1) Install BitBar https://getbitbar.com
Step 2) Put
foodtruck.1m.sh
in your BitBar plugins folderStep 3) Make the script executable (
chmod +x foodtruck.1m.sh
)You can change how often the image will refresh. For example: renaming the script to
foodtruck.2m.sh
will make it refresh the cam image every 2 minutes.