Yweather 0.1a - taskbar weather app
A Pfind search on Slacko 5.7-nonpae finds
libgobject2.0.so.0 ---> copy this symlink, remove the .0
libgobject2.0.so.0.3200.4
Take the first symlink on the list, copy it, but edit the name WITHOUT the .0, then OK.
libgobject2.0.so.0 ---> copy this symlink, remove the .0
libgobject2.0.so.0.3200.4
Take the first symlink on the list, copy it, but edit the name WITHOUT the .0, then OK.
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
"Zuckerberg: a large city inhabited by mentally challenged people."
I hope vovchik doesn't mind...
As of a few days ago, Yahoo changed it's weather feed API, and now requires an authentication key. This broke Yweather.
Googling around, I managed to find an alternate Yahoo weather URL that still works;
I managed to re-compile Yweather with this new URL (using the source code from vovchik's first post), and it works again! I also did a little editing of the Help text, in order to add some useful information without making the Help window too large.
Executable attached, for those whom are interested. Just remove the fake .tar.gz extension, right-click choose "permissions" and select "a+x (Make executable/searchable)", and use it to replace the yweather binary executable in /usr/local/bin - should work!
Being such a noob at compiling, the attached executable is huge in comparison to the original (87k vs. 14k) - but it's still quite small, so... no big matter (to me). Many here can do a much better job of compiling Yweather, no doubt. I did try vovchik's compiling options from this post - http://www.murga-linux.com/puppy/viewto ... 483#679483 - but ended up with a Yweather that wouldn't quit from the right-click menu. So I just stuck with this attached one, which appears to function fine.
Bob
As of a few days ago, Yahoo changed it's weather feed API, and now requires an authentication key. This broke Yweather.
Googling around, I managed to find an alternate Yahoo weather URL that still works;
Code: Select all
http://xml.weather.yahoo.com
Executable attached, for those whom are interested. Just remove the fake .tar.gz extension, right-click choose "permissions" and select "a+x (Make executable/searchable)", and use it to replace the yweather binary executable in /usr/local/bin - should work!
Being such a noob at compiling, the attached executable is huge in comparison to the original (87k vs. 14k) - but it's still quite small, so... no big matter (to me). Many here can do a much better job of compiling Yweather, no doubt. I did try vovchik's compiling options from this post - http://www.murga-linux.com/puppy/viewto ... 483#679483 - but ended up with a Yweather that wouldn't quit from the right-click menu. So I just stuck with this attached one, which appears to function fine.
Bob
- Attachments
-
- yweather.tar.gz
- Remove fake .tar.gz extension
- (86.11 KiB) Downloaded 288 times
Good work, Moat! Great initiative!
I have my weather forecast again!
About the size: I stripped it like so:
and it shaved 10k off it. Now down to 74K.
Also, vovchick said he upx'd it. So I did too.
Final result is attached: 20K!
I hope this helps.
BFN.
I have my weather forecast again!
About the size: I stripped it like so:
Code: Select all
strip --strip-unneeded yweather
Also, vovchick said he upx'd it. So I did too.
Final result is attached: 20K!
I hope this helps.
BFN.
- Attachments
-
- yweather.zip
- Unzip in /usr/local/bin or wherever you put yours, and make executable.
- (18.87 KiB) Downloaded 271 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Hi Bob.
Maybe you upx'd it with -9 instead of --best?
E.g.But no matter! What's a difference of 1k these days?!
Your new yweather app is still working fine after being up 3 hours.
I say this is a winner!
Thanks Bob!
Maybe you upx'd it with -9 instead of --best?
E.g.
Code: Select all
upx --best yweather
Your new yweather app is still working fine after being up 3 hours.
I say this is a winner!
Thanks Bob!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Oh, if -9 was default, then yeah... I'm sure I did.musher0 wrote:Maybe you upx'd it with -9 instead of --best?
Got too excited and didn't even think about researching the options.
Silly noob, me...
Silly, anyways - installing a >1mb package (upx) to "save" a few dozen kb's.
All good fun, good learning!
Bob
Hello.
If your new yweather app edited by Moat seems to jam (not renew every hour),
here's how to un-jam it: close and re-open.You can add this little script to some existing menu or create an icon for it on your
desktop or in any taskbar.
It's an on-and-off "switch": if you don't see the yweather icon in your taskbar, click
on the script one more time and you'll see it. Click once, the icon appears; click
once more, it closes; click another time, the icon appears again. Get it?
For Canadians: you can get a weather account at any time at
http://meteo.gc.ca/city/pages/ns-21_metric_f.html (in French)
http://weather.gc.ca/city/pages/ns-21_metric_e.html (in English)
This example is for Lunenburg, Nova Scotia. Just choose your own city and
the language that you want your report in at the top of the page.
Other countries have similar sites. E.g. for Switzerland. E.g. for the U.S.A.
You can leave that page open in your browser and view the changes in weather
as they are reported.
You don't need to log in to weather.com or meteomedia.com to get your weather
report. The above gov't agencies' sites are the "horse's mouth" where the
commercial sites get their info from, and they're public.
I hope this helps. BFN.
If your new yweather app edited by Moat seems to jam (not renew every hour),
here's how to un-jam it: close and re-open.
Code: Select all
#!/bin/sh
# /root/my-applications/bin/yweather-your-city.sh
####
[ "`pgrep -n yweather`" ] && kill -s 9 `pgrep -n yweather` || yweather <your-city-number-here> c &>/dev/null &
desktop or in any taskbar.
It's an on-and-off "switch": if you don't see the yweather icon in your taskbar, click
on the script one more time and you'll see it. Click once, the icon appears; click
once more, it closes; click another time, the icon appears again. Get it?
For Canadians: you can get a weather account at any time at
http://meteo.gc.ca/city/pages/ns-21_metric_f.html (in French)
http://weather.gc.ca/city/pages/ns-21_metric_e.html (in English)
This example is for Lunenburg, Nova Scotia. Just choose your own city and
the language that you want your report in at the top of the page.
Other countries have similar sites. E.g. for Switzerland. E.g. for the U.S.A.
You can leave that page open in your browser and view the changes in weather
as they are reported.
You don't need to log in to weather.com or meteomedia.com to get your weather
report. The above gov't agencies' sites are the "horse's mouth" where the
commercial sites get their info from, and they're public.
I hope this helps. BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Thank you, musher0.
By the way, I found a site with very specific woeids of GeoPlanet, so I could get weather reports from little villages in Germany.
http://isithackday.com/geoplanet-explorer/
https://en.wikipedia.org/wiki/GeoPlanet
Martin
By the way, I found a site with very specific woeids of GeoPlanet, so I could get weather reports from little villages in Germany.
http://isithackday.com/geoplanet-explorer/
https://en.wikipedia.org/wiki/GeoPlanet
Martin
I'm having trouble getting this to display anything. I start it from the console, and it appears to be running, but nothing gets displayed anywhere. Any idea what could be wrong or how to fix it?
edit: on playing around a bit, it seems that http://xml.weather.yahoo.com is not working. Perhaps this is why nothing happens.
edit: on playing around a bit, it seems that http://xml.weather.yahoo.com is not working. Perhaps this is why nothing happens.
Hi hw1 - welcome to the dog house!
Yahoo bites!
Bob
Yep, correct - last year, Yahoo completely abandoned their open API for weather feeds, so this great little app is broken, and will likely remain so unless someone capable were to re-write the code using another weather feed supplier.hw1 wrote:...on playing around a bit, it seems that http://xml.weather.yahoo.com is not working. Perhaps this is why nothing happens.
Yahoo bites!
Bob
pWidgets has a weather reporting widget or two that still work, I believe;hw1 wrote:I guess I'll have to look around for an alternative.
http://www.murga-linux.com/puppy/viewtopic.php?t=35601
If adventurous, finding a weather Conky on the 'net and tweaking it to work in Puppy is an option - but can take some time-consuming fiddling to get up and running. Some of the best weather Conky work is from the guys over at Bunsenlabs;
https://forums.bunsenlabs.org/viewtopic.php?id=189
Otherwise, I'm a fan of running LxPups (w/LxPanel) and X-pups (w/Xfce panel) - both of which have weather-reporting panel applets available.
HTH!
Bob