Navigatrix is a community project that relies on user donations of time, money, expertise, and enthusiasm.
Your donation frees up additional resources and moves us forward.
Please consider how you will make your contribution for the development of Navigatrix.
Click here to help with a donation.




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: zygrib automatic start
PostPosted: 27 Jul 2017, 13:14 

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
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 30 Jul 2017, 19:41 
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 177
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
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 31 Jul 2017, 11:12 

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
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 31 Jul 2017, 11:19 
Site Admin

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


Top
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 03 Aug 2017, 15:06 

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
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 03 Aug 2017, 22:37 
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 177
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
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 05 Aug 2017, 09:40 

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
 Profile  
Reply with quote  
 Post subject: Re: zygrib automatic start
PostPosted: 05 Aug 2017, 10:05 
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 177
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
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron

Credits © 2010 - 2017