| Author |
Message |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Fri 02 Jan 2009, 11:05 Post subject:
|
|
@micko:
No, it's ok. Clock won't appear just because of the sleep value, as usual, put bigger value like 5 or 6. The more important thing is the mouse click release. I used a simulated right click on something that won't open anything when clicked. Maybe zigbert can make a code to automatically calculate to move cursor on the xonclock center, as it won't open anything when right clicked. - I am not much of a coder...sorry to say
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7018 Location: qld
|
Posted: Sat 03 Jan 2009, 08:57 Post subject:
|
|
| 01micko wrote: | @trio and zigbert
What we need to do to speed up the slideshow loading is alter the script with this in mind;
we must find out what is in ~/.pwidgets/misc/scaledimages.
if /scaledimages contains the file 01.jpg then this part of the script can run | Code: | #The actual slideshow
TMP=$[$OFFSET_Y+7]
echo "xli -geometry +$X_POS2+$TMP -delay $DELAY -goto $SCALED_DIR/01.jpg $SCALED_DIR/*.jpg &" >> $HOME/.pwidgets/tmp/pwidgets-exec
;;
*) |
else run this | Code: | #build scaled images in a temporary storage
echo "scale2pics \"$IMAGE_DIRECTORY\" $SCALED_DIR 126 95 85 jpg" >> $HOME/.pwidgets/tmp/pwidgets-exec
#The actual slideshow
TMP=$[$OFFSET_Y+7]
echo "xli -geometry +$X_POS2+$TMP -delay $DELAY -goto $SCALED_DIR/01.jpg $SCALED_DIR/*.jpg &" >> $HOME/.pwidgets/tmp/pwidgets-exec
;; |
fi
I think I'm on the right track there. We'll see... |
So far I can print whether 01.jpg exists | Code: | | [ -e ~/.pwidgets/misc/scaledimages/01.jpg ] && echo "TRUE" || echo "FALSE" | which prints 'TRUE' or 'FALSE'. How do I use that output? Here's what I have. | Code: | [ -e ~/.pwidgets/misc/scaledimages/01.jpg ] && echo "TRUE" || echo "FALSE"
#"File exists" = "$TRUE"
#"File does not exist" = "$FALSE"
if [ ~/.pwidgets/misc/scaledimages/01.jpg = "FALSE" ] ; sleep 1
then touch ~/.pwidgets/misc/scaledimages/01.jpg
sleep 1
scale2pics ~/images ~/.pwidgets/misc/scaledimages 126 95 85 jpg &
sleep 3 #time for Scale2pics to scale images
xli -geometry +870+600 -delay 5 -goto ~/.pwidgets/misc/scaledimages/01.jpg ~/.pwidgets/misc/scaledimages/*.jpg &
else [ ~/.pwidgets/misc/scaledimages/01.jpg = "TRUE" ] ; sleep 1
xli -geometry +870+600 -delay 5 -goto ~/.pwidgets/misc/scaledimages/01.jpg ~/.pwidgets/misc/scaledimages/*.jpg &
exit 0
fi |
but it doesn't work. I know it has somethingto do with how I am trying to use the output of the test.
Back to the drawing board....
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
sfink16
Joined: 31 Dec 2008 Posts: 16
|
Posted: Sat 03 Jan 2009, 10:49 Post subject:
|
|
I just wanted thank everyone for all the hard work on this project! I use the digital clock, the weather, calendar, and CPU PWidgets. It took my a little time to figure out the F/C weather conversion.
I still need to figure out why the digital clock is in military/metric 24 hour times instead of the 12 hour system we use here in the US. I'll go to the .onclock file and see if I can figure it out. I'm sure something is in there.
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Sat 03 Jan 2009, 11:21 Post subject:
|
|
@sfink16:
Have you tried puppy wizard-wi zard and configure puppy for your country?
|
|
Back to top
|
|
 |
sfink16
Joined: 31 Dec 2008 Posts: 16
|
Posted: Sat 03 Jan 2009, 12:53 Post subject:
|
|
Trio:
I must've forgot to reboot after installing Conky and PWidgets because it's working now. Also, I did have the setup correctly for my locale. Thanks for your response!
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Sat 03 Jan 2009, 13:29 Post subject:
|
|
Check out my full pwidgets aka conky
| Description |
|
| Filesize |
83.9 KB |
| Viewed |
479 Time(s) |

|
| Description |
|
| Filesize |
102.89 KB |
| Viewed |
509 Time(s) |

|
Last edited by trio on Tue 06 Jan 2009, 03:33; edited 1 time in total
|
|
Back to top
|
|
 |
pistoi0
Joined: 25 Oct 2005 Posts: 111 Location: Hartford, CT
|
Posted: Sat 03 Jan 2009, 13:37 Post subject:
|
|
I need help getting my weather report to show up in pwidgets. Seems my Accuweather code is in a format I can't get to work. This is the code returned when I search for Hartford, CT:
http://www.accuweather.com/us/ct/hartford/06101/city-weather-forecast.asp?partner=msnad&traveler=0&u=1
On the other hand, my Firefox Forecast extension gives me USCT0094, which looks promising. But so far I haven't been able to come up with a workable LOCCOD.
By the way, I can easily get the weather for Madrid and Valmoen, Norway, using the codes supplied for demonstration.
Any assistance is appreciated
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Sat 03 Jan 2009, 14:02 Post subject:
|
|
@pistoi0
You know the US zip code?
Note:sorry dumb question & tried to look up the location code, but it's just not the same as international location
|
|
Back to top
|
|
 |
pistoi0
Joined: 25 Oct 2005 Posts: 111 Location: Hartford, CT
|
Posted: Sat 03 Jan 2009, 17:59 Post subject:
|
|
@trio
| Quote: | | [Note:sorry dumb question & tried to look up the location code, but it's just not the same as international location] |
There's my problem in a nutshell. My zip code 06103, for anyone who might know how to use that for a solution.
|
|
Back to top
|
|
 |
sintot

Joined: 29 Oct 2006 Posts: 57 Location: Madrid
|
Posted: Sun 04 Jan 2009, 06:43 Post subject:
|
|
Pistoi0, all you have to do is to put your zip code (for accuweather I think it is 06101) in the pwidgets weather config file:
| Code: | | ${color0}${font weather:size=62}${execi 10 /root/.pwidgets/scripts/WeatherIcon "6101"}${font} ${execi 10 /root/.pwidgets/scripts/Weather city} |
Cheers
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Sun 04 Jan 2009, 08:57 Post subject:
|
|
hahaha, I just didn't figure it out...just knew it has something to do with zip code
|
|
Back to top
|
|
 |
pistoi0
Joined: 25 Oct 2005 Posts: 111 Location: Hartford, CT
|
Posted: Sun 04 Jan 2009, 15:34 Post subject:
|
|
Thanks to sintot and trio, I am pleased to report that the weather in Hartford, CT USA, is Sunny and 37F. The zip code translates perfectly.
pistoi0
|
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1459 Location: North Lincolnshire. UK
|
Posted: Mon 05 Jan 2009, 07:56 Post subject:
|
|
Anyone had trouble with the fonts ?
I followed the instructions to load and tested Abiword where they work OK.
However they will not work with digital clock. It's set for ionic but seems to display DejaVu.
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7018 Location: qld
|
Posted: Mon 05 Jan 2009, 09:06 Post subject:
|
|
| tasmod wrote: | Anyone had trouble with the fonts ?
I followed the instructions to load and tested Abiword where they work OK.
However they will not work with digital clock. It's set for ionic but seems to display DejaVu. |
Check '/usr/share/fonts/default/TTF' contains the Ionic font. If not try reinstalling Pwidgets. Or rename the pwidgets-0.4.pet to pwidgets-0.4.pet.tar.gz and extract, find the font in the resulting pwidgets-0.4 directory and copy it to /usr/share/fonts/default/TTF and restart Pwidgets. Hope that helps.
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1459 Location: North Lincolnshire. UK
|
Posted: Mon 05 Jan 2009, 12:07 Post subject:
|
|
Hi Micko,
Yes it's there. It works in Abiword OK.
As a test I rechecked the minixcal clock in the tray and changed the font in .jwmrc for it to ionic but no joy, it just won't show up.
It's in /usr/share/fonts/default/TTF along with the others. I changed to other fonts and they show OK
Zigbert says they show up in Abiword when installed and that proves true.
|
|
Back to top
|
|
 |
|