On 08/08/16 14:55, mwall wrote:
On Monday, August 8, 2016 at 8:42:00 AM UTC-4, Joep L. Blom wrote:
Maybe you have some useful tips how I can proceed? I have debug=1 but
nothing happens. Only when I, after a reboot of the raspberry start
weewx (which is done automatically) then it gives the output I
sent in
earlier mails.
what happens when you run weewxd directly, not as a daemon?
there is no point to running weewx as a daemon until *after* you get
it works when running directly.
rebooting the pi just obfuscates and possibly confounds the problem.
if you cannot figure out why weewx is not running, start from the
basics then work your way up:
1) run the driver diagnostics directly, if the driver has them
PYTHONPATH=bin python bin/weewx/drivers/te923.py --help
2) run wee_device
sudo wee_device --help
3) run weewxd directly
sudo weewxd /etc/weewx/weewx.conf
4) run weewx as a daemon
/etc/init.d/weewx start
matthew,
Continuing... Weewxd from the commandline works OK, all data are read.
the deamon weewx, however won't start. I reset the debug switch (storage
is sparse on the PI) but now I have again the gap of approx. 15 minutes
but I haven't found where I can download te923.py version 0.18 or do I
have to download the latest version but that is of March this year and
is yhe one I use.
For some reason the last start stopped with the following error:
______________________________________________________________
Aug 8 17:14:39 kangoo weewx[4839]: engine: Starting up weewx version 3.5.0
Aug 8 17:32:09 kangoo weewx[4839]: engine: Caught unrecoverable
exception in engine:
Aug 8 17:32:09 kangoo weewx[4839]: **** integer division or modulo
by zero
Aug 8 17:32:09 kangoo weewx[4839]: **** Traceback (most recent
call last):
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/engine.py", line 859, in main
Aug 8 17:32:09 kangoo weewx[4839]: **** engine.run()
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/engine.py", line 154, in run
Aug 8 17:32:09 kangoo weewx[4839]: ****
self.dispatchEvent(weewx.Event(weewx.STARTUP))
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/engine.py", line 218, in dispatchEvent
Aug 8 17:32:09 kangoo weewx[4839]: **** callback(event)
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/engine.py", line 519, in startup
Aug 8 17:32:09 kangoo weewx[4839]: ****
self._catchup(self.engine.console.genStartupRecords)
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/engine.py", line 624, in _catchup
Aug 8 17:32:09 kangoo weewx[4839]: **** origin='hardware'))
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/engine.py", line 218, in dispatchEvent
Aug 8 17:32:09 kangoo weewx[4839]: **** callback(event)
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/wxservices.py", line 134, in new_archive_record
Aug 8 17:32:09 kangoo weewx[4839]: ****
self.do_calculations(event.record, 'archive')
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/wxservices.py", line 151, in do_calculations
Aug 8 17:32:09 kangoo weewx[4839]: **** getattr(self,
'calc_'+obs)(data_us, data_type)
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/wxservices.py", line 194, in calc_pressure
Aug 8 17:32:09 kangoo weewx[4839]: **** temperature_12h_ago =
self._get_temperature_12h(data['dateTime'], self.archive_interval)
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weewx/wxservices.py", line 357, in _get_temperature_12h
Aug 8 17:32:09 kangoo weewx[4839]: **** ts12 =
weeutil.weeutil.startOfInterval(ts - 12*3600, archive_interval)
Aug 8 17:32:09 kangoo weewx[4839]: **** File
"/home/weewx/bin/weeutil/weeutil.py", line 281, in startOfInterval
Aug 8 17:32:09 kangoo weewx[4839]: **** m =
int(time_tt.tm_min // interval_m * interval_m)
Aug 8 17:32:09 kangoo weewx[4839]: **** ZeroDivisionError: integer
division or modulo by zero
Aug 8 17:32:09 kangoo weewx[4839]: **** Exiting.
_________________________________________________________
It can be a wrongly read value so I'll try it after I have found the
latest Te923.py driver: can you give me the url?
Thanks many times for your help (and this beautiful piece of software!)
Joep
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.