Fetch local weather from Dark Sky API. https://wthr.ml/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
468 B

source api-keys.sh
# takes (coords, location_name) as parameters
update-weather-json() {
curl --request GET --url $curl_url > $2.json
# echo "curl --request GET --url $curl_url > $2.json"
# update-weather-json "43.8180904,-79.3350555" "markham"
# update-weather-json "43.6596426,-79.3976676" "toronto"
node dark-sky.js