Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 16 Dec 2017, 07:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Yweather 0.1a - taskbar weather app
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 5 [61 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
8Geee


Joined: 12 May 2008
Posts: 1300
Location: N.E. USA

PostPosted: Tue 17 Feb 2015, 18:35    Post subject:  

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.

_________________
Linux user #498913

Good God!, by the stars in the sky we are lost!
And into the breach we got tossed!
And the world is comin' on fast! --Florence Welch
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 775
Location: Mid-mitten, USA

PostPosted: Mon 28 Mar 2016, 15:31    Post subject:  

I hope vovchik doesn't mind... Embarassed

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:
http://xml.weather.yahoo.com


I managed to re-compile Yweather with this new URL (using the source code from vovchik's first post), and it works again! Cool 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/viewtopic.php?p=679483#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
yweather.tar.gz
Description  Remove fake .tar.gz extension
gz

 Download 
Filename  yweather.tar.gz 
Filesize  86.11 KB 
Downloaded  119 Time(s) 
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11280
Location: Gatineau (Qc), Canada

PostPosted: Mon 28 Mar 2016, 17:03    Post subject:  

Good work, Moat! Great initiative!
I have my weather forecast again!

About the size: I stripped it like so:
Code:
strip --strip-unneeded yweather

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.
yweather.zip
Description  Unzip in /usr/local/bin or wherever you put yours, and make executable.
zip

 Download 
Filename  yweather.zip 
Filesize  18.87 KB 
Downloaded  119 Time(s) 

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 775
Location: Mid-mitten, USA

PostPosted: Mon 28 Mar 2016, 17:48    Post subject:  

Excellent, musher0! Smile Your zipped executable works a treat!

This noob will try those compile/compression options you mentioned, and see where it leads...

Thanks!

Bob
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 775
Location: Mid-mitten, USA

PostPosted: Mon 28 Mar 2016, 18:50    Post subject:  

Moat wrote:
This noob will try those compile/compression options you mentioned, and see where it leads...


Neato - I was able to shave mine down to 21k. That UPX is one powerful compression utility!

Bob
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11280
Location: Gatineau (Qc), Canada

PostPosted: Mon 28 Mar 2016, 19:51    Post subject:  

Hi Bob.

Maybe you upx'd it with -9 instead of --best?
E.g.
Code:
upx --best yweather
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!

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 775
Location: Mid-mitten, USA

PostPosted: Thu 31 Mar 2016, 16:19    Post subject:  

musher0 wrote:
Maybe you upx'd it with -9 instead of --best?


Oh, if -9 was default, then yeah... I'm sure I did. Laughing Embarassed

Got too excited and didn't even think about researching the options. Laughing

Silly noob, me...

Silly, anyways - installing a >1mb package (upx) to "save" a few dozen kb's. Laughing

All good fun, good learning!

Bob
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Thu 31 Mar 2016, 16:32    Post subject:  

10kb pkg << Squash it Bob, Squash IT! Mr. Green
_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 775
Location: Mid-mitten, USA

PostPosted: Thu 31 Mar 2016, 17:01    Post subject:  

Laughing

Ok, then... where'd that hammer run off to...

Shocked
Back to top
View user's profile Send private message 
msgeo

Joined: 15 Aug 2010
Posts: 9
Location: Berlin

PostPosted: Wed 06 Apr 2016, 14:39    Post subject:  

Unfortunately, it does not work for Berlin. Sad (tahrpup 6.0.5, JWM 2.0, neither from the console).

Ähm ... now it works. Embarassed
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11280
Location: Gatineau (Qc), Canada

PostPosted: Wed 06 Apr 2016, 17:39    Post subject:  

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.
Code:
#!/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 &
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? Laughing

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
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
msgeo

Joined: 15 Aug 2010
Posts: 9
Location: Berlin

PostPosted: Wed 06 Apr 2016, 22:33    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
hw1

Joined: 11 Jun 2017
Posts: 2

PostPosted: Sun 11 Jun 2017, 16:15    Post subject:  

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.
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 775
Location: Mid-mitten, USA

PostPosted: Sun 11 Jun 2017, 16:37    Post subject:  

Hi hw1 - welcome to the dog house!

hw1 wrote:
...on playing around a bit, it seems that http://xml.weather.yahoo.com is not working. Perhaps this is why nothing happens.


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.

Yahoo bites!

Bob
Back to top
View user's profile Send private message 
hw1

Joined: 11 Jun 2017
Posts: 2

PostPosted: Sun 11 Jun 2017, 16:58    Post subject:  

That's a shame. I guess I'll have to look around for an alternative.

Yahoo does suck, but I guess this is the first time in a long time that I remembered they even exist.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 5 [61 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0574s ][ Queries: 12 (0.0077s) ][ GZIP on ]