Created
May 18, 2019 05:11
-
-
Save ikks/c6bf6b6ca627314b26360a8be910ef61 to your computer and use it in GitHub Desktop.
Taking screenshots from IBOCA and IQCN
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 | |
# This script grabs a screenshot both from aiqcn and iboca in order to make a daily snapshot of the service | |
# Feel free to suggest improvements, or clone it and make it happen in your own server | |
# thanks to the kind service in the free tier provided by https://api.browshot.com | |
# No warranties and make sure you get people to know that we should be able to see what are we breathing | |
curl -L "https://api.browshot.com/api/v1/simple?url=https://aqicn.org/map/bogota/&key=$BROWSHOT_KEY" -o $PATH_PUBLIC_CANAIRIO/canairio-$(TZ='America/Bogota' date +"%Y%m%d%H%M%S")-aiqcn.png | |
curl -L "https://api.browshot.com/api/v1/simple?url=http://iboca.ambientebogota.gov.co/mapa&key=$BROWSHOT_KEY" -o $PATH_PUBLIC_CANAIRIO/canairio-$(TZ='America/Bogota' date +"%Y%m%d%H%M%S")-iboca.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment