PEM's stuff

but, when the weather changes, the dynamicmenu change either? or i have do actualize every day ?

Well, to be more precise, the menu is recreated dynamically from the /dev/shm/weather.log. Thus if you manage to poll new values from weather.com via an entry for a call to weather_log.plx in your crontab, for instance, your system will always be up to date. On the other hand, it will create additional request to the server and thatā€™s one of the thing I was willing to avoid :confused: As my laptop is not a box that I let powered on for a long time (generally few hours a day), I donā€™t need an update very often. Every session I open my laptop is fine for me. For a more ā€œdesktopā€ or ā€œserverā€ use, I would suggest an update every 4 hours: the weather forecasts does not change that much :wink:

what do you mean with Fvwm checks?

I mean checking the file access via the FvwmConsole.

take a look:

Script log:

Script Menu (weather):

[/color]

StartFunction:

Menu:

Function:

if you find errors, tell me pleaseā€¦ thanks.

You canā€™t just call AddToMenu and then let the next command of the function write the menuName/menuItem pairs. The script weather_menu.plx must itself write ā€œAddToMenu MenuWeatherā€ on stdout followed by the pairs if you want it to work.

The example from the man might help

i canā€™t understand it at allā€¦ :frowning:

Result:
http://pwp.netcabo.pt/sanosuke/Capture.jpg

Iā€™d try

[code]#####

Weather function

##################
DestroyFunc WeatherCheck
AddToFunc WeatherCheck

  • I DestroyMenu recreate MenuWeather
  • I PipeRead ā€˜echo AddToMenu MenuWeather ; perl /home/joao/.fvwm/script/weather_menu.plxā€™[/code]

nop, doesnā€™t work, i donā€™t know whyā€¦ seems to be a problem to get info of the siteā€¦ because the image and ā€œtitleā€ appears, but the info, noā€¦

@UltraDiabos:
Hey Amigo, I think I got an idea :bulb: In my conf, Iā€™ve redefined the value:

MenuStyle * ItemFormat "%s%|%5.i%5.5l%5.5r%.5>%|"

Could you show me yours? This surely modify the menu behaviour :wink:

my is:

thanks pem, i put that line, and it works :smiley:
thanks for the help :smiley:

That one was tough :exclamation: but Iā€™m glad we have been though it :smiley:

pem, when i use stuffit to extract .sit the icons are not in .png or .xpmā€¦ how i fix it? if you know and can tell me, i apreciate thanks :smiley:

Thatā€™s an issue Iā€™ve already met too. Fortunately, a friend of mine, Karnevil, has provided me with a nice solution. As itā€™s in french, hereā€™s a translation.

Uncompression is achived via the use of stuffit. You can found it here. Thereā€™s a free command line release. So, once installed:

unstuff -m=on 1343_time.sit

As youā€™ve mentionned it, this provides weird and unreadable files but at least they are no longer empty.

To be able to use these weird files, thereā€™s an old tool really hard to found as itā€™s free but not open source. It was formely available on chronomancy.free.fr/fvwm/icon2png-0.5.tar.gz

Once installed:

icns2png Clock

Note that there are now some new archive from Mac that nobody seems to be able to expand :angry: Dawn close source!

hmm thanks, but there is anyway to convert every icons on the page at the same time? or i have to convert one by one ?

Well, with the help of our good friend find, you should be able to do it in a sigle shot.

iā€™m sorry, but iā€™m newb, how i do that ?

thanks

I would do that:

find DirWhereAreYourFileToConvert -type f -exec icns2png {} \;

It means that for every regular file (the type -f) contained in the DirWhereAreYourFileToConvert directory, it will apply the command icns2png on it. Thus, this little thingy will operate also on file that does not need to be converted: no big deal. It will spit a lot of message for nothing :wink: