Comments imbedded On Wednesday, 11 April 2018 12:17:23 UTC-3, Ralph Underwood wrote: > > Hi Bill > > I rebuilt my development system, installed Jessie, configured rpi, > installed Mosquitto and weewx with the simulator. Attempted to do the > extension install of wxMesh, that failed so I manually installed the wxMesh > file in /usr/share/weewx/user. Changed the driver to wxMesh and made > changes to weewx.conf as described in wxMesh.py. > > Now I am getting this: (my comments are in* blue*) > ... >
> Apr 11 08:03:18 mapleleaf weewx[4079]: wxMesh: Added to queue of 1 message > TIME:0,INTE:20.35,INHU:52.23 * looks good to me* > *Yes, looks good* > Apr 11 08:03:22 mapleleaf weewx[4079]: wxMesh: Working on queue of 1 > Apr 11 08:03:22 mapleleaf weewx[4079]: wxMesh: Working on queue 0 payload > : TIME:0,INTE:20.35,INHU:52.23 > Apr 11 08:03:22 mapleleaf weewx[4079]: wxMesh: key: TIME value: 1523459002 > *what?? * > *I replace the time of 0 with the current epoch time within the driver. My outdoor hardware can't yet provide reliable time stamps. 1523459002 looks right, check at http://epochconverter.com* > Apr 11 08:03:22 mapleleaf weewx[4079]: engine: Main loop exiting. Shutting > engine down. > Apr 11 08:03:22 mapleleaf weewx[4079]: engine: Caught unrecoverable > exception in engine: > Apr 11 08:03:22 mapleleaf weewx[4079]: **** 'dateTime' > Apr 11 08:03:22 mapleleaf weewx[4079]: **** Traceback (most recent > call last): > Apr 11 08:03:22 mapleleaf weewx[4079]: **** File > "/usr/share/weewx/weewx/engine.py", line 871, in main > Apr 11 08:03:22 mapleleaf weewx[4079]: **** engine.run() > Apr 11 08:03:22 mapleleaf weewx[4079]: **** File > "/usr/share/weewx/weewx/engine.py", line 190, in run > Apr 11 08:03:22 mapleleaf weewx[4079]: **** > self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet)) > Apr 11 08:03:22 mapleleaf weewx[4079]: **** File > "/usr/share/weewx/weewx/engine.py", line 223, in dispatchEvent > Apr 11 08:03:22 mapleleaf weewx[4079]: **** callback(event) > Apr 11 08:03:22 mapleleaf weewx[4079]: **** File > "/usr/share/weewx/weewx/wxservices.py", line 45, in new_loop_packet > Apr 11 08:03:22 mapleleaf weewx[4079]: **** > self.calc.do_calculations(event.packet, 'loop') > Apr 11 08:03:22 mapleleaf weewx[4079]: **** File > "/usr/share/weewx/weewx/wxservices.py", line 191, in do_calculations > Apr 11 08:03:22 mapleleaf weewx[4079]: **** getattr(self, 'calc_' > + obs)(data_us, data_type) > Apr 11 08:03:22 mapleleaf weewx[4079]: **** File > "/usr/share/weewx/weewx/wxservices.py", line 308, in calc_maxSolarRad > Apr 11 08:03:22 mapleleaf weewx[4079]: **** data['dateTime'], > self.atc) > Apr 11 08:03:22 mapleleaf weewx[4079]: **** KeyError: 'dateTime' > Apr 11 08:03:22 mapleleaf weewx[4079]: **** Exiting. > > I seem to remember seeing a post about setting dateTime somewhere but > can't find that post. > Possibly your Pi's time is off, which is why the calculation in wxservices.py is failing. If you go to a shell prompt, and type these commands, what do you get? date +%s date The first command gives you the time in seconds since 1970-01-01 00:00 UTC, the "epoch time", the second command in something humanly readable. On my raspbian: > date +%s 1523463375 > date Wed 11 Apr 16:16:19 UTC 2018 There's some discussion on getting the time set at boot for raspbian here: https://raspberrypi.stackexchange.com/questions/8231/how-to-force-ntpd-to-update-date-time-after-boot -- 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.