The xfce4-weather-plugin for Xubuntu 18.04 and now 20.04 has stopped working and gives "No Data".
From yesterday, openweather extention on the top panel does not show the weather. Its shows "Please wait Loading".
I tried to find the solution. There was a post of creating account on openweather website and use API id. I found that it is a subscription base plan. There was a free plan which allows 60 calls free for weather data.
I thought that the extention is open source. And may be I deleted any package that is required to work the extention so I reinstall the OS. But there is no difference of doing that.
What could possibly go wrong any guidance?
I've been strugling to get conky to show the weather, I just installed it and found out that yahoo discontinued the api url which was the one the conky theme was using (http://weather.yahooapis.com/forecastrss?w=1103816&u=c), I've tried changing the url to accuweather and openweather ones and nothing. I just don't understand how this works at all and I have no clue how to get it to work properly, here's the code:
##Weather
${image .jelly-weather-icons/conky_icons/circle2.png -s 190x190}
${texeci 1300 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}#\&locCode\=$LOCCOD" -o #~/.cache/weather.xml}
${voffset -110}${offset 425}${font ITC Avant Garde Gothic Pro:bold:size=20}${execi 1300 grep #"yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | #grep -o "[^\"]*"}${font ITC Avant Garde Gothic Pro:bold:size=8}${voffset -16}o${voffset 14}${font}#${color1}
${execi 1300 cp -f .weather-icons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o #"code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image #~/.cache/weather.png -p 425,23 -s 35x35}
${offset 420}${voffset -105}${font ITC Avant Garde Gothic Pro:size=14} Sevilla
btw I found nothing on the internet that could help me out... thanks in advance :)
Edit1: Here is the api that the conky theme saves in the cache/weather.xml http://api.openweathermap.org/data/2.5/forecast?id=6361046&APPID=6be5e3a6e62680c28044791e8fc7b568 I'm slowly understanding how it works
Edit2: This is how the code looks now, I noticed I mistyped some # trying to comment the whole weather part. I just don't understand how conky reads xml (I don't know how to read xml myself but I suppose I can solve that with a few guides of xml :P)
##Weather
${image .jelly-weather-icons/conky_icons/circle2.png -s 190x190}
${texeci 1300 curl -s "http://api.openweathermap.org/data/2.5/forecast?id=6361046&APPID=6be5e3a6e62680c28044791e8fc7b568&units=metric" -o ~/.cache/weather.xml}
${voffset -110}${offset 425}${font ITC Avant Garde Gothic Pro:bold:size=20}${execi 1300 grep "weather:description" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font ITC Avant Garde Gothic Pro:bold:size=8}${voffset -16}o${voffset 14}${font}${color1}
${execi 1300 cp -f .weather-icons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 425,23 -s 35x35}
${offset 420}${voffset -105}${font ITC Avant Garde Gothic Pro:size=14} Sevilla
Edit3: So I finally got it working thanks to @WinEunuuchs2Unix and @steeldriver , this is how the code finally looks for anyone who wants to use it in their conky code:
##Weather
${voffset -80}${offset 435}${font ITC Avant Garde Gothic Pro:bold:size=20}${execi 1300 curl -s "http://api.openweathermap.org/data/2.5/forecast?id=6361046&APPID=6be5e3a6e62680c28044791e8fc7b568&units=metric" | jq -r '.list[0].main.temp' | awk '{printf("%.0f\n", $1)}'}${font ITC Avant Garde Gothic Pro:bold:size=8}${voffset -16}o${voffset 24}${font}${color1}
${execi 1300 cp -f .iconos/$(curl -s "http://api.openweathermap.org/data/2.5/forecast?id=6361046&APPID=6be5e3a6e62680c28044791e8fc7b568&units=metric" | jq -r '.list[0].weather[].icon').png ~/.cache/weather.png}${image ~/.cache/weather.png -p 425,20 -s 60x60}
${offset 420}${voffset -115}${font ITC Avant Garde Gothic Pro:bold:size=14} Sevilla
Basically what it does is read a json from the openweather url using curl
, and with jq
search for the values of .list[0].weather[].icon
and .list[0].main.temp
as for the temperature it outputs a value with 2 decimal digits which I cut out for personal preferences using awk '{printf("%.0f\n", $1)}'
the rest of the code is just conky's way to understand where you want it and how you want it. If you want to use it for yourself just change Sevilla
for your city, and change curl -s "...your location api url..."
note that if you use a different site for your api url you will have to change jq
to fit the new json data. Also note that you will have to create a folder with all the icons from this icon list or use your own icons but remember to use the same naming (01d.png, 02d.png, ...) and also don't forget to edit this ${execi 1300 cp -f .iconos/$(curl -s "http:/...
and replace .iconos/
with the directory of your folder.
Here if you want to try out the conky theme
I'm using My-Weather-Indicator, but it is never accurate! The Wunderground option is disabled and I can't select it! How do I enable it? I'm using Ubuntu 14.04 LTS.
And what does "Activate" mean?
Ubuntu 12.04 or 12.10
Need a application and or recommendation for a monitoring system. It will be set up locally and used to record essential data, reports to channels such as: The Weather Channel - Weather Underground - AccuWeather etc.