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 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
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
AddToMenu JpgMenu foo title
+ DynamicPopupAction Function MakeJpgMenuAddToFunc MakeJpgMenu + I DestroyMenu recreate JpgMenu + I AddToMenu JpgMenu Pictures Title + I PipeRead āfor i in $HOME/Pictures/*.jpg; \ do echo [color=red]AddToMenu JpgMenu[/color] "ābasename $iā" Exec xv $i; doneā
i canāt understand it at allā¦
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 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
my is:
MenuStyle * ItemFormat ā%.2|%.5i%.5l%.5i%2.3>%2|ā
thanks pem, i put that line, and it works
thanks for the help
That one was tough but Iām glad we have been though it
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
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 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