Navigatrix.net - A Voyager's Companion http://navigatrix.net/ |
|
zygrib automatic start http://navigatrix.net/viewtopic.php?f=6&t=935 |
Page 1 of 1 |
Author: | iv3xhr [ 27 Jul 2017, 13:14 ] |
Post subject: | zygrib automatic start |
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 |
Author: | David [ 30 Jul 2017, 19:41 ] |
Post subject: | Re: zygrib automatic start |
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. |
Author: | iv3xhr [ 31 Jul 2017, 11:12 ] |
Post subject: | Re: zygrib automatic start |
>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 |
Author: | David [ 31 Jul 2017, 11:19 ] |
Post subject: | Re: zygrib automatic start |
Maybe this file is missing on your computer .zygrib/config/zygrib.ini ? |
Author: | iv3xhr [ 03 Aug 2017, 15:06 ] |
Post subject: | Re: zygrib automatic start |
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 ? |
Author: | David [ 03 Aug 2017, 22:37 ] |
Post subject: | Re: zygrib automatic start |
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. |
Author: | iv3xhr [ 05 Aug 2017, 09:40 ] |
Post subject: | Re: zygrib automatic start |
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 |
Author: | David [ 05 Aug 2017, 10:05 ] |
Post subject: | Re: zygrib automatic start |
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. |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |