weather files belongs to weather
This commit is contained in:
parent
abf58587ec
commit
6bebeb943e
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}"
|
HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}"
|
||||||
INTERVAL="${COLLECTD_INTERVAL:-300}"
|
INTERVAL="${COLLECTD_INTERVAL:-300}"
|
||||||
FILE="/tmp/weather.json"
|
FILE="/home/weather/tmp/weather.json"
|
||||||
|
|
||||||
# get $FILE using a cronjob (no more than 1000 requests per day for free - one every 5 minutes is fine) like
|
# get $FILE using a cronjob (no more than 1000 requests per day for free - one every 5 minutes is fine) like
|
||||||
#curl "https://api.darksky.net/forecast/<your api key>/<latitude>,<longitude>?lang=<language>&units=si" -o $FILE -s
|
#curl "https://api.darksky.net/forecast/<your api key>/<latitude>,<longitude>?lang=<language>&units=si" -o $FILE -s
|
||||||
|
|
Loading…
Reference in a new issue