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




Ein neues Thema erstellen Auf das Thema antworten  [ 8 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: zygrib automatic start

Registriert: 24 Okt 2011, 01:17
Beiträge: 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


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start
Site Admin

Registriert: 05 Nov 2010, 01:00
Beiträge: 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.


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start

Registriert: 24 Okt 2011, 01:17
Beiträge: 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


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start
Site Admin

Registriert: 05 Nov 2010, 01:00
Beiträge: 185
Maybe this file is missing on your computer .zygrib/config/zygrib.ini ?


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start

Registriert: 24 Okt 2011, 01:17
Beiträge: 8
David hat geschrieben:
Maybe this file is missing on your computer .zygrib/config/zygrib.ini ?

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


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start
Site Admin

Registriert: 05 Nov 2010, 01:00
Beiträge: 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.


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start

Registriert: 24 Okt 2011, 01:17
Beiträge: 8
David hat geschrieben:
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


Nach oben
   
 
 Betreff des Beitrags: Re: zygrib automatic start
Site Admin

Registriert: 05 Nov 2010, 01:00
Beiträge: 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.


Nach oben
   
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 8 Beiträge ] 


Suche nach:
cron

Credits © 2010 - 2024