The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: zygrib automatic start

Joined: 24 Oct 2011, 01:17
Posts: 8
hi
when i receive a grib file the system ask me first if I want to save it and then if I want to read it
if I agree Zygrib starts but not showing THAT grib file but the last one I have seen
it is correct or I should see the one I have just saved ?
in such a way I have to open it from Zygrib menu
thank you


Top
   
 
 Post subject: Re: zygrib automatic start
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Does this happen within Airmail? If so, it should open the file you just saved.
There is this little script in /usr/local/bin/airsave which handles this task.
Otherwise it should just open the last file.


Top
   
 
 Post subject: Re: zygrib automatic start

Joined: 24 Oct 2011, 01:17
Posts: 8
>Does this happen within Airmail? If so, it should open the file you just saved.
>There is this little script in /usr/local/bin/airsave which handles this task.
>Otherwise it should just open the last file.


yes within airmail
I have seen the script but in which way I can debug it if it doesn't happen ?

quote ....
zenity --question --text="Would you like to open this grib file now?"
if [ $? -eq 0 ]; then
cfg=/home/$USER/.zygrib/config/zygrib.ini
cat $cfg|grep -v gribFileName >$cfg".new"
echo "gribFileName=$dest" >>$cfg.new
cp $cfg".new" /home/$USER/.config/zyGrib.conf
mv $cfg".new" $cfg
zyGrib&
quote ....

here something wrong ?

tnx


Top
   
 
 Post subject: Re: zygrib automatic start
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Maybe this file is missing on your computer .zygrib/config/zygrib.ini ?


Top
   
 
 Post subject: Re: zygrib automatic start

Joined: 24 Oct 2011, 01:17
Posts: 8
David wrote:
Maybe this file is missing on your computer .zygrib/config/zygrib.ini ?

No it is
Do you need to see what's inside it ?


Top
   
 
 Post subject: Re: zygrib automatic start
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Just checked the procedure on a fresh navigatrix installation and cant see any problem with it. There must be something else with yours. Just the ini file would not be useful in this case. Does the file get saved in the /home/$USER/grib folder or in the Airmail Temp folder ? It should be saved in the Airmail folder and then copied to the /home/$USER/grib folder. Afterwards the zyGrib ini file gets modified and zygrib should open with the default Grib file. All this is done by the airsave script which starts in the background as soon as you start airmail. If you have a non standard installation it might not work.


Top
   
 
 Post subject: Re: zygrib automatic start

Joined: 24 Oct 2011, 01:17
Posts: 8
David wrote:
Just checked the procedure on a fresh navigatrix installation and cant see any problem with it. There must be something else with yours. Just the ini file would not be useful in this case. Does the file get saved in the /home/$USER/grib folder or in the Airmail Temp folder ? It should be saved in the Airmail folder and then copied to the /home/$USER/grib folder. Afterwards the zyGrib ini file gets modified and zygrib should open with the default Grib file. All this is done by the airsave script which starts in the background as soon as you start airmail. If you have a non standard installation it might not work.

All happens as you describe but just Zygrib doesn't open the downloaded file but the last opened one as the new .ini file should not be created
The installation is a standard one
So it seems that air save script makes its work
Is there a way I can debug it in order to understand what doesn't work ?
Another idea
In the grib file directory I have all downloaded files and not only the last 30 days ones. This allow you to understand something more ?
Thank you


Top
   
 
 Post subject: Re: zygrib automatic start
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Sure you can debug it. Go ahead..the scripts are all in plain text format. Very strange it doesnt work on yours. Let me know if you find the bug. I will too if i get some other idea while thinking about it.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Search for:
cron

Credits © 2010 - 2024