pWidgets 2.5.8
Accuweather RSS feeds
Hi All,
Recently I was dismayed to see that my weather widget had quit working. Upon investigation I found that the Accuweather RSS feeds for many small Canadian towns had been abandoned. I don't know if this is true for any of the rest of the world but I decided to take action.
I have rewritten the /usr/local/pwidgets/widgets/scripts/weather and /usr/local/pwidgets/widgets/scripts/weathericon scripts to use the http://www.accuweather.com of your town ( http://www.accuweather.com/en/ca/smithe ... cast/52722 ) instead of the RSS code ( NAM|CA|BC|Smithers ).
You should install this pet AFTER installing the normal pwidgets pet.
So when you go to setup the weather location click on the "www" button which will take you to http://www.accuweather.com, find your town, copy the url and paste it into the pwidgets weather location dialog box. You should be good to go from there. I've tried it for various places in the world and it has worked for all so far.
It would be better if these files were incorporated into the normal pwidgets pet, perhaps as weather3 and weathericon3 but, sadly , I don't have the gtkdialog skills to do that. Zigbert, maybe you can have a look?
Recently I was dismayed to see that my weather widget had quit working. Upon investigation I found that the Accuweather RSS feeds for many small Canadian towns had been abandoned. I don't know if this is true for any of the rest of the world but I decided to take action.
I have rewritten the /usr/local/pwidgets/widgets/scripts/weather and /usr/local/pwidgets/widgets/scripts/weathericon scripts to use the http://www.accuweather.com of your town ( http://www.accuweather.com/en/ca/smithe ... cast/52722 ) instead of the RSS code ( NAM|CA|BC|Smithers ).
You should install this pet AFTER installing the normal pwidgets pet.
So when you go to setup the weather location click on the "www" button which will take you to http://www.accuweather.com, find your town, copy the url and paste it into the pwidgets weather location dialog box. You should be good to go from there. I've tried it for various places in the world and it has worked for all so far.
It would be better if these files were incorporated into the normal pwidgets pet, perhaps as weather3 and weathericon3 but, sadly , I don't have the gtkdialog skills to do that. Zigbert, maybe you can have a look?
- Attachments
-
- pwidget-weather-http.02.pet
- use http instead of rss
- (1.48 KiB) Downloaded 391 times
Space_Puppy_filesystem widget
G'day zagreb999,
The pwidget Space_Puppy_filesystem will show the SaveFile space for a Frugal install and the partition space for a Full Puppy.
I have attached three screen shots of different types of Puppy.
I hope you can read the Puppy Space widget display to see if that is what you asked for.
[I add the RAM and CPU bars (TEXT lines in those widget config files) to Space_Puppy_filesystem widget config so the one widget shows these data.
Easier for adding to new Pups.]
David S.
The pwidget Space_Puppy_filesystem will show the SaveFile space for a Frugal install and the partition space for a Full Puppy.
I have attached three screen shots of different types of Puppy.
I hope you can read the Puppy Space widget display to see if that is what you asked for.
[I add the RAM and CPU bars (TEXT lines in those widget config files) to Space_Puppy_filesystem widget config so the one widget shows these data.
Easier for adding to new Pups.]
David S.
- Attachments
-
- Full_PartitionSpace.jpg
- Full install where Puppy has partition to itself so size of partition is shown with how much is used. Partition is 2.88GB with free space 1.77GB.
- (87.1 KiB) Downloaded 958 times
-
- Frugal_partitionsave.jpg
- Frugal Pup with "partition" chosen for SaveFile (will use all space if needed). My Frugal partition is 38.45GB with free space now 18.45GB for Pups to use.
There are about 20 Pups on this partition. - (89.64 KiB) Downloaded 915 times
-
- Frugal_FolderSaveFile.jpg
- Frugal Pup with Save file as folder (512MB) so Puppy Space display shows 503MB with 464MB free. This Frugal is on the same partition as the other Frugal example.
- (44.97 KiB) Downloaded 953 times
Weather widget 're-location'
G'day jrb,
I have tried to use your alternate weather widget that uses the accuweather source.
I can pick from a couple of nearby weather stations (about 5km away) so have no problem there.
I loaded your .pet and added the address of the North Ryde weather station to the line in the Weathericon script.
My main question is about the Weather config text file.
When I want to add the Weather widget, pwidgets asks for a location based on the older format (see attached screen shot).
What do I do there? Or is there something else to be changed or have I missed an important step?
David S.
I have tried to use your alternate weather widget that uses the accuweather source.
I can pick from a couple of nearby weather stations (about 5km away) so have no problem there.
I loaded your .pet and added the address of the North Ryde weather station to the line in the Weathericon script.
Not sure if this needs to be in quotation marks or not? Maybe you could actually put in your Smithers URL as a working example.#!/bin/sh
#AccuWeather icon, using weather.ttf
#USAGE: WeatherIcon <locationcode>
#Sintot
#150503-modified by jrb to use accuweather http ( ex: http://www.accuweather.com/en/ca/smithe ... cast/52722 )
METRIC=1
LOCCOD="http://www.accuweather.com/en/au/north- ... cast/12470"
if [ -z $1 ] && [ -x $LOCCOD ] ; then
echo
echo "USAGE: $0 [locationcode]"
echo
exit 0;
elif [ ! -z $1 ] ; then
LOCCOD=$1
fi
# ---------------------Proposed Change Start-------------------------------------------------------------------------
# Load from accuweather to a scratch file first for testing before overwriting the main file
echo $LOCCOD > $HOME/.pwidgets/tmp/Weather_City.tmp #jrb
CITY=`echo $LOCCOD | cut -d "/" -f 6` #jrb
curl -s $LOCCOD | grep -e RecentLocationsCarousel.push | grep -e $CITY > $HOME/.pwidgets/tmp/Weather.tst #jrb
My main question is about the Weather config text file.
When I want to add the Weather widget, pwidgets asks for a location based on the older format (see attached screen shot).
What do I do there? Or is there something else to be changed or have I missed an important step?
David S.
- Attachments
-
- Weather_config_text.jpg
- Dialog box for Weather widget - old format location?
- (101.81 KiB) Downloaded 383 times
Re: Weather widget 're-location'
HI David,
Sorry for the confusion.
The URL will only show up in line 48 of /root/.pwidgets/widgets/Weather.
BTW: I wanted to ask you where you found the RSS code for Weather_Station?
Sorry for the confusion.
No need to do anything in either of the scripts in my .pet, all you have to do is enter the URL, without quotes, in the Weather config dialog box.davids45 wrote:I loaded your .pet and added the address of the North Ryde weather station to the line in the Weathericon script.
Yes, as I mentioned in my first post, my gtkdialog skills are not great and I don't really understand what triggers the Weather config dialog box. So, for now, it still asks for the old format, just ignore that and paste in your URL.My main question is about the Weather config text file.
When I want to add the Weather widget, pwidgets asks for a location based on the older format (see attached screen shot).
What do I do there? Or is there something else to be changed or have I missed an important step?
The URL will only show up in line 48 of /root/.pwidgets/widgets/Weather.
BTW: I wanted to ask you where you found the RSS code for Weather_Station?
- Attachments
-
- pwidge_reply1.jpg
- (19.76 KiB) Downloaded 867 times
Revised Weather Widget
G'day jrb,
Thanks for replying and I have done as you indicated, just copying the accu weather URL for my nearby weather station at North Ryde into the Weather config box, and it is all good.
Re the revised 'Weather Station' widget:
The address for my weather feed is entered into its config file as:
I think however Yahoo is not as comprehensive as Accuweather, as I have trouble getting a nearer weather station than "Sydney" which is about 10km away and closer to the ocean/harbour. Accuweather lets me have either of the two local stations I know of - although Hunters Hill looked odd today with the wrong weather (cloudy - didn't see one all day) and temperature (13C when it was more like 20C). Perhaps they have the wrong "Hunters Hill". I'll try a bit more testing of this.
Nonetheless, the temperatures agree between the two widgets but the icon for the Weather Station widget is not right or up-to-the-minute sometimes. Well after sunset here, it was still showing a sun icon with some clouds. It has been cloudless all day here in Chatswood and we are in for a cold (by our standards, not yours probably ) clear night. Accuweather has been quite accurate in comparison - sunny then a clear night.
Perhaps this is a problem due to slower updating by Yahoo?
Partial screen shot attached showing both widgets.
Can we get all the details in accuweather that Yahoo reports (mostly looking right) and optionally use accuweather in the Weather Station widget? Pick the input that has the better source for one's location?
David S.
Thanks for replying and I have done as you indicated, just copying the accu weather URL for my nearby weather station at North Ryde into the Weather config box, and it is all good.
Re the revised 'Weather Station' widget:
The address for my weather feed is entered into its config file as:
AS=Australia, 0112 is Sydney and c is for not-funny degrees.#### PWIDGETS #####
HEIGHT=210
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=20
URL=http://weather.yahooapis.com/forecastrss?p=ASXX0112&u=c
I think however Yahoo is not as comprehensive as Accuweather, as I have trouble getting a nearer weather station than "Sydney" which is about 10km away and closer to the ocean/harbour. Accuweather lets me have either of the two local stations I know of - although Hunters Hill looked odd today with the wrong weather (cloudy - didn't see one all day) and temperature (13C when it was more like 20C). Perhaps they have the wrong "Hunters Hill". I'll try a bit more testing of this.
Nonetheless, the temperatures agree between the two widgets but the icon for the Weather Station widget is not right or up-to-the-minute sometimes. Well after sunset here, it was still showing a sun icon with some clouds. It has been cloudless all day here in Chatswood and we are in for a cold (by our standards, not yours probably ) clear night. Accuweather has been quite accurate in comparison - sunny then a clear night.
Perhaps this is a problem due to slower updating by Yahoo?
Partial screen shot attached showing both widgets.
Can we get all the details in accuweather that Yahoo reports (mostly looking right) and optionally use accuweather in the Weather Station widget? Pick the input that has the better source for one's location?
David S.
- Attachments
-
- weather_widget_comparison.jpg
- WeatherStation (Yahoo feed) upper, Weather (accuweather) lower. Clear night outside.
- (47.71 KiB) Downloaded 839 times
Re: Revised Weather Widget
Maybe I'll just stick with AccuWeather then. They still give listings for about 4 times as many places as our National Weather Service, can't understand why they dropped the RSS feeds, how much extra effort can it take? Their nearest RSS feed to me now seems to be about 400km away.davids45 wrote:I think however Yahoo is not as comprehensive as Accuweather
Thought I better tell you I'm on the road right now. Drove 1000km yesterday, will do another700 today. Going to my Mom's little farm which is 50km from the nearest internet. Will check the forum in a week or so.
Cheers, J
Re: Wind direction on weatherstation widget
Hi David -
Includes the Eurostile fonts that I use - otherwise you might have to fiddle with the config's font settings to make it appear right (eh... just might have to, regardless! ).
Bob
I finally had some time to tinker with this, and now have a modified config and script that displays all five days of the Yahoo data (including today's!) - archive attached, if you (or anybody else) would like to give it a try.davids45 wrote: It could be fun to add some extra days' forecast detail which is in the Yahoo output.
Includes the Eurostile fonts that I use - otherwise you might have to fiddle with the config's font settings to make it appear right (eh... just might have to, regardless! ).
Bob
- Attachments
-
- WeatherStation_Forecast.tar.gz
- 5 day forecast - fixed 12-16-2015
- (62.49 KiB) Downloaded 232 times
-
- WeatherStation_Forecast(1).jpg
- Rather tall, though...
- (23.14 KiB) Downloaded 825 times
Last edited by Moat on Thu 17 Dec 2015, 03:04, edited 2 times in total.
[SOLVED] Pwidgets - put one "anywhere"?
G'day zigbert (& Moat),
Now I am using more pwidgets and getting more information into some of them (e.g. see Moat's post above), I cannot fit them all in just one column on the monitor .
My LCD monitors have the now common 16:9 rectangular screen replacing the older squarer versions which had a bit more column height.
To save some space, I have removed the analog clock widget from my standard list of widgets and run xonclock separately as I can drag this anywhere on the pinboard/desktop.
Can I configure a widget to be placed anywhere I like on the screen (e.g. like a pinboard icon)? Or if not, can I start a second column of widgets?
Sorry if this request has already been answered here, but this thread is getting a bit long .
David S.
Now I am using more pwidgets and getting more information into some of them (e.g. see Moat's post above), I cannot fit them all in just one column on the monitor .
My LCD monitors have the now common 16:9 rectangular screen replacing the older squarer versions which had a bit more column height.
To save some space, I have removed the analog clock widget from my standard list of widgets and run xonclock separately as I can drag this anywhere on the pinboard/desktop.
Can I configure a widget to be placed anywhere I like on the screen (e.g. like a pinboard icon)? Or if not, can I start a second column of widgets?
Sorry if this request has already been answered here, but this thread is getting a bit long .
David S.
Last edited by davids45 on Wed 20 May 2015, 02:47, edited 1 time in total.
Re: Pwidgets - put one "anywhere"?
Hiya', David -
You can save as many "profiles" - for individual or multiple widgets - as you want, each located anywhere on the screen you want.
The "profile" allows setting left or right, and the vertical displacement from the screen's top. But for further tweaks of the horizontal placement, you'll have to open the config file (in /usr/local/pwidgets/widgets/configs) and tweak the left/right offsets from there (up near the top) -
Once you get things positioned where you like, save the profile (Menu>File>Save As) and it will then be available via the Plugins>Cluster popup window.
You can later fine-tune the position by opening-as-text the pwidgets-exec_conky files in /root/.pwidgets/profiles/, too.
Works well, once you get the hang of it.
For example, below I'm running three widgets and a clock - left, right and center - all using the cluster function of Pwidgets...
Bob
Yes, you can - http://ns1.murga-linux.com/puppy/viewto ... 235#428235davids45 wrote:Can I configure a widget to be placed anywhere I like on the screen (e.g. like a pinboard icon)? Or if not, can I start a second column of widgets?
You can save as many "profiles" - for individual or multiple widgets - as you want, each located anywhere on the screen you want.
The "profile" allows setting left or right, and the vertical displacement from the screen's top. But for further tweaks of the horizontal placement, you'll have to open the config file (in /usr/local/pwidgets/widgets/configs) and tweak the left/right offsets from there (up near the top) -
Code: Select all
#### PWIDGETS #####
HEIGHT=80
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=40
You can later fine-tune the position by opening-as-text the pwidgets-exec_conky files in /root/.pwidgets/profiles/, too.
Works well, once you get the hang of it.
For example, below I'm running three widgets and a clock - left, right and center - all using the cluster function of Pwidgets...
Bob
- Attachments
-
- screenie_chloe3.jpg
- Cluster in use...
- (86.96 KiB) Downloaded 908 times
Weather Station Forecast widget
G'day Moat,
I've incorporated your updated weather station forecasting widget and slightly changed it to make it parochial and smaller.
'smaller' because I had not seen your quick and helpful reply to my query about how to put widgets anywhere on the desktop - many thanks, and so now I'll have something more to play around with rather than do stuff around the house .
You may just about see from the attached screen-shot, I have also added the accuweather taskbar icons to my browsers, just to further weather-clutter my pinboard. There seems to be slight disagreement in the forecasts between accuweather and yahoo - time will tell, I guess.
And if you want another little widget-project , the calendar widget seems to lose alignment when I fiddle with the fonts (check screen-shot) - the top row of dates is out of 'day' alignment after decreasing the font size or type.
David S.
Follow-up: have now managed to put widgets in clusters across the pinboard/desktop.
I've incorporated your updated weather station forecasting widget and slightly changed it to make it parochial and smaller.
'smaller' because I had not seen your quick and helpful reply to my query about how to put widgets anywhere on the desktop - many thanks, and so now I'll have something more to play around with rather than do stuff around the house .
You may just about see from the attached screen-shot, I have also added the accuweather taskbar icons to my browsers, just to further weather-clutter my pinboard. There seems to be slight disagreement in the forecasts between accuweather and yahoo - time will tell, I guess.
And if you want another little widget-project , the calendar widget seems to lose alignment when I fiddle with the fonts (check screen-shot) - the top row of dates is out of 'day' alignment after decreasing the font size or type.
David S.
Follow-up: have now managed to put widgets in clusters across the pinboard/desktop.
- Attachments
-
- pwidgets_clustered.jpg
- (146.15 KiB) Downloaded 815 times
-
- weather_station150520.jpg
- (142.86 KiB) Downloaded 852 times
- Mike Walsh
- Posts: 6351
- Joined: Sat 28 Jun 2014, 12:42
- Location: King's Lynn, UK.
Hey, jrb.
Now, I may be wrong, and I may be right...I don't know. I'm guessing that your weather widget is the one listed as 'Weather 2' in pWidgets 2.5.6.....if the familiar dialogue box is anything to go by.
I've no idea of your location, but I'm still getting a reliable feed here in the UK from our local RAF weather station (RAF Marham; the one where the Tornadoes flew from when they went over to Libya a few years back), about 7 miles up the road from us.....literally 'round the corner'.
Just wanted to let you know that wherever the feeds come from for the widget, mine appears still to be working fine!
Regards,
Mike.
Now, I may be wrong, and I may be right...I don't know. I'm guessing that your weather widget is the one listed as 'Weather 2' in pWidgets 2.5.6.....if the familiar dialogue box is anything to go by.
I've no idea of your location, but I'm still getting a reliable feed here in the UK from our local RAF weather station (RAF Marham; the one where the Tornadoes flew from when they went over to Libya a few years back), about 7 miles up the road from us.....literally 'round the corner'.
Just wanted to let you know that wherever the feeds come from for the widget, mine appears still to be working fine!
Regards,
Mike.
- Attachments
-
- TahrScreen1.jpg
- (78.43 KiB) Downloaded 723 times
I am quite humbly honored! Thank you, Zigbert.zigbert wrote:- Include Moat's fixes for weatherstation script - thanks
I'm curious as to why... because pcompass font is broken on later Pups? If so, any noob-friendly pointers as to how I might approach fixing the font, myself?pcompass.ttf is not included
I've tried a few freeware tools already (on both Linux and Windows), but always end up with the same display/render errors (displaying a rectangular box instead of arrow) after tweaking and saving the "new" font. It seems creating/editing fonts is a bit more involved than what I first thought (!) - maybe beyond my limited skills/abilities...
Bob
Thanks for the report, tlchost. The internal tweaks I did should not have affected anything involving setting location, BUT - it's quite possible (likely) I inadvertently screwed with the name of either the weatherstation script or config (likely)... in which case the location-setting plugin won't recognize it.tlchost wrote:...in 257 using the same code, I get nothing...
I'll take a look as soon as I get a little time, comparing the two (256 vs. 257).
I'm so used to entering the config's location code manually, I didn't even think to utilize/test the plugin.
Bob
Tahrpup 6.0.2
manual frugal + save folder on hard drive.
Updated with the latest Tahrpup updates to Tahrpup 6.0.3
The Pwidgets not showing Tahrpup 6.0.3( this may still be a bug in Tahrpup)
Installed Pwidgets 2.5.7
When trying to access plugin calendar I get this:
manual frugal + save folder on hard drive.
Updated with the latest Tahrpup updates to Tahrpup 6.0.3
The Pwidgets not showing Tahrpup 6.0.3( this may still be a bug in Tahrpup)
Installed Pwidgets 2.5.7
When trying to access plugin calendar I get this:
- Attachments
-
- capture21442.jpg
- (66.94 KiB) Downloaded 863 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
Running a fresh & updated Tahr 6.0.3 from LiveCD, my location code - USMI0161 - works. Neither your location code - usmd020 - OR the extended forecast code for Baltimore, MD - USMD4633 - works.tlchost wrote:Hmmmm, in 256 and earleir versions, the weather station, using the location code of usmd020 gave me accurate results...in 257 using the same code, I get nothing, so 257 is a non-starter here.
This is on either Pwidgets versions 2.5.6 or 2.5.7. It appears to be a local (Baltimore area?) glitch in the rss feed, as the /root/.pwidgets/tmp/wever-tmp file shows errors when the Baltimore codes are used -
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>Yahoo! Weather - Error</title>
<description>Yahoo! Weather Error</description>
<item><title>City not found</title><description>
Invalid Input /forecastrss?p=USMD4633&u=f
</description></item></channel></rss>
<!-- api17.weather.bf1.yahoo.com Tue Jun 30 15:35:35 PDT 2015 -->
Bob
Odd...the location code works fine in 256 on a updated tahr6.03 on a bootable USB.Moat wrote:Running a fresh & updated Tahr 6.0.3 from LiveCD, my location code - USMI0161 - works. Neither your location code - usmd020 - OR the extended forecast code for Baltimore, MD - USMD4633 - works.tlchost wrote:Hmmmm, in 256 and earleir versions, the weather station, using the location code of usmd020 gave me accurate results...in 257 using the same code, I get nothing, so 257 is a non-starter here.
I'll stay with 256....but thanks for checking it out.
That is odd, tlchost! BTW - the codes need four digits at the end - the example you gave - usmd020 - is one number shy of being valid...!? Probably should be capital letters in front, as well. Might be part of the issue, as...
Now on an older Precise 5.7.1 remix, using an older Pwidgets 2.3.8 - and getting the same errors using the Yahoo weather webpages' codes. Below is a more direct and reliable webpage list of the proper location codes (thanks to some of our British friends... ) - tried a few, and they're working...
https://weather.codes/united-states-of-america/
https://www.edg3.co.uk/snippets/weather ... f-america/
Bob
Now on an older Precise 5.7.1 remix, using an older Pwidgets 2.3.8 - and getting the same errors using the Yahoo weather webpages' codes. Below is a more direct and reliable webpage list of the proper location codes (thanks to some of our British friends... ) - tried a few, and they're working...
https://weather.codes/united-states-of-america/
https://www.edg3.co.uk/snippets/weather ... f-america/
Bob