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 Sun 15 Jul 2018, 23:10
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Sooooo.....PWidget modified for regular Conky?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Flash858


Joined: 25 Jun 2008
Posts: 106
Location: Chandler, Arizona

PostPosted: Fri 25 May 2018, 21:26    Post subject:  Sooooo.....PWidget modified for regular Conky?
Subject description: Someone must know...
 

I'd like to modify some Pwidgets for use in "regular Conky" so I can use the code as a script for other distros. Specifically, Weather2, which works beautifully, and gives me just what I'm looking for.

Has anyone done this?

Any and all advice is welcome, thanks!

_________________
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... Very Happy
Back to top
View user's profile Send private message Visit poster's website 
Flash858


Joined: 25 Jun 2008
Posts: 106
Location: Chandler, Arizona

PostPosted: Fri 15 Jun 2018, 20:39    Post subject:  

200+ views, and {crickets}...

Anyone?

_________________
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... Very Happy
Back to top
View user's profile Send private message Visit poster's website 
Moat


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

PostPosted: Fri 15 Jun 2018, 23:04    Post subject:  

Kind of a guess/off the top of my head, but - the Pwidget's config files are essentially "regular" conky configs, and should more-or-less run on another distro with conky installed. The most important key would be to modify the paths to those exterior scripts to which your desired Pwidgets/conky config (Weather2 in this case) points to (and vice-versa; scripts to point back at the conky config, if required) - or, conversely, set up the Pwidgets directory structure and files on your other distro to be the same as it is on Puppy (/usr/local/pwidgets/scripts/... etc - ?? I think, as I'm not on Puppy at the moment...) - that might save some work at re-doing paths.

I do recall messing around with this in the past, and was able to get some Pwidgets conkies working on Mint/Ubuntu.

Also might be worth a try manually installing the Pwidgets .pet, itself (folder by folder, file by file - unpacked and pasted, etc... all except Pwidget's conky binary - I'd try your distro's already installed conky version first, anyway) and seeing if Pwidgets might fire and run all on it's own (while ignoring the typical Linux default /etc/conky/ config path). Never tried that... but might just work. Question

Just some thoughts, FWIW...

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


Joined: 03 Oct 2016
Posts: 151

PostPosted: Sat 16 Jun 2018, 08:15    Post subject:  

I use this, simple enough for my needs. I just call it with my zipcode or location code/airport code, whatever they call it lately.



#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=0 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
echo
echo "USAGE: weather.sh <locationcode>"
echo
exit 0;
fi

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'
conky.png
 Description   
 Filesize   29.21 KB
 Viewed   41 Time(s)

conky.png

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0461s ][ Queries: 13 (0.0132s) ][ GZIP on ]