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.
14 lines
517 B
14 lines
517 B
#!/bin/bash
|
|
|
|
#Closebox73
|
|
# This script is to get weather data from openweathermap.com in the form of a json file
|
|
# so that conky will still display the weather when offline even though it doesn't up to date
|
|
|
|
# you can use this or replace with yours
|
|
api_key=b59117c083dfa1d4e6cc3186a568fd26
|
|
# get your city id at https://openweathermap.org/find and replace
|
|
city_id=2879139
|
|
|
|
url="api.openweathermap.org/data/2.5/weather?id=${city_id}&appid=${api_key}&cnt=5&units=metric&lang=en"
|
|
curl ${url} -s -o ~/.cache/weather.json
|