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 hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like the URL is broken! Adding
-us1
to the subdomain seemed to do the trick for me (https://nexusapi-us1.dropcam.com
)