Weather by You!
Templates and Projects support => Php templates => Topic started by: MattHB on April 06, 2013, 09:55:49 AM
-
hi all,
im having trouble setting up on my RPi.
weatherstation testing checks out no problem, all read.me instructions followed for weather.ini.
with livelog I get this error in the log file. it sems to be having trouble finding the .xml files, even though th path in weather.ini is find and the files are present. permissions are set to 777.
any ideas? Im running out of brain.
cheers
013-04-06 11:00:29:pywws.weather_station:delay 4, pause 0.5
2013-04-06 11:00:30:pywws.weather_station:avoid 5.71962690353
2013-04-06 11:00:36:pywws.weather_station:live_data new ptr: 000b60
2013-04-06 11:00:36:pywws.weather_station:avoid 5.99649786949
2013-04-06 11:00:43:pywws.LiveLog:3 catchup records
2013-04-06 11:00:43:pywws.Process:Generating summary data
2013-04-06 11:00:43:pywws.Process:unexpected data interval 2013-04-06 09:10:33 0:06:00
2013-04-06 11:00:43:pywws.Process:daily: 2013-04-06 00:00:00
2013-04-06 11:00:43:pywws.Process:monthly: 2013-04-01 00:00:00
2013-04-06 11:00:43:pywws.Tasks.RegularTasks:Templating 1hrs.txt
2013-04-06 11:00:43:pywws.Tasks.RegularTasks:Templating 6hrs.txt
2013-04-06 11:00:44:pywws.Tasks.RegularTasks:Templating 6hrs_html_cp.txt
2013-04-06 11:00:44:pywws.Tasks.RegularTasks:Templating forecast_icon_9am.txt
2013-04-06 11:00:44:pywws.Tasks.RegularTasks:Graphing 24hrs_full_features.png.xml
2013-04-06 11:00:45:pywws:[Errno 2] No such file or directory
Traceback (most recent call last):
File "LiveLog.py", line 156, in <module>
sys.exit(main())
File "LiveLog.py", line 151, in main
return LiveLog(args[0])
File "LiveLog.py", line 112, in LiveLog
tasks.do_tasks()
File "/home/pi/weather/pywws-13.03_7f9fc90/code/pywws/Tasks.py", line 167, in do_tasks
upload = self.do_plot(template)
File "/home/pi/weather/pywws-13.03_7f9fc90/code/pywws/Tasks.py", line 204, in do_plot
if self.plotter.DoPlot(input_file, output_file) == 0:
File "/home/pi/weather/pywws-13.03_7f9fc90/code/pywws/Plot.py", line 192, in DoPlot
subprocess.check_call(['gnuplot', cmd_file])
File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
-
Hi Matt,
Try a new fresh copy from archive for the xml file.
If not ok, remove the call to that xml file in weather.ini
to see if it could continue processing without that file.
Hope this help,
Regards,
Jacques
-
Cheers ill try that.
Am I right in my understanding that its this line that's failing?
2013-04-06 11:00:44:pywws.Tasks.RegularTasks:Graphing 24hrs_full_features.png.xml
-
I've tried replacing all the XML files in the plot directory with the ones in Jims examples directory. I've even used a new templates directory elsewhere and set permissions to 777.
I'm still getting a 'no such file or directory' error.
Any further ideas?
-
I've just remembered I didn't try taking out all the plot file references in weather.ini.
I've just done that and it got to the FTP bit before it errored (which is good as I can work on that).
So it does seem to be something with the XML files.
-
Ok nearly there now!
Turned out I'd not installed gnuplot! :o
One final problem. When it tries to FTP I get 'name or service not known' in the log file. What have I missed/forgotten to do this time?
Cheers
-
Hi Matt,
'name or service not known' refer to your FTP login informations.
see in weather.ini if your FTP user/password are ok.
Example weather.ini:
site = ftp.MyWeatherSite.com
user= ....
Regards,
Jacques
-
cheers. Ill check but I thought they were ok. mind you.... Ive thought lots of things were ok before!
-
Wow.. What an idiot. I put ftp.domain when I know full well it won't work! So fixed thanks!
I do have one more recurring issue. Occasionally I get an error like this..
Exception USB.core.USBError: USBError(None, 'Unknown error') in <bound method Device.__del__ of <usb.core.Device object at 0x12f7ef0>> ignored.
I'm a bit clueless
-
Hi Matt,
For that one I have not encountered this error, then since a software issue,
have to refer you to pywws support list (https://groups.google.com/forum/?fromgroups#!forum/pywws).
Best Regards,
Jacques