Tnx. Now another problem :-) Check attached log file (realtime.xml problem).
On Monday, January 23, 2017 at 6:37:46 AM UTC+1, mwall wrote: > > On Monday, January 23, 2017 at 12:04:40 AM UTC-5, Janez Kranjski wrote: >> >> Sorry - but now I don't understand your lines bellow. Until now, I use >> the convention mentioned on https://github.com/weewx/weewx/wiki/crt (2. >> Modify weeex.conf). >> Your specification mentioned bellow is somewhat different. >> >> Should I try with another filename line? >>> >>> >>> > if you just want to emit a file with the text (non-xml) formatted > realtime, then do this: > > [CumulusRealTime] > realtime_txt = /var/tmp/realtime.txt > > if you want to emit two files, one in the xml format and the other in txt > format, then do this: > > [CumulusRealTime] > realtime_txt = /var/tmp/realtime.txt > realtime_xml = /var/tmp/realtime.xml > > if you just want to emit the sunbird file, then do this: > > [CumulusRealTime] > sunbird_txt = /var/tmp/sunbird > > if you want to emit all three, then do this: > > [CumulusRealTime] > realtime_txt = /var/tmp/realtime.txt > realtime_xml = /var/tmp/realtime.xml > sunbird_txt = /var/tmp/sunbird > > the parameter 'realtime_txt' is a synonym for 'filename'; for backward > compatibility, 'filename' is still recognized. > > m > -- 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.
Jan 23 07:49:09 raspberrypi weewx[18163]: Starting weewx weather system: weewx. Jan 23 07:49:09 raspberrypi weewx[18178]: wmr200: MainThread: I Created watchdog thread to poke for live data every 30 seconds Jan 23 07:49:09 raspberrypi weewx[18178]: wmr200: MainThread: I Created USB polling thread to read block on device Jan 23 07:49:09 raspberrypi weewx[18178]: wmr200: Thread-2: I USB polling device thread for live data launched Jan 23 07:49:09 raspberrypi weewx[18178]: wmr200: MainThread: I Reset console device Jan 23 07:49:10 raspberrypi weewx[18178]: wmr200: Thread-2: I USB polling device thread signaled to start Jan 23 07:49:10 raspberrypi weewx[18178]: engine: StdConvert target unit is 0x1 Jan 23 07:49:10 raspberrypi weewx[18178]: wmr200: Thread-1: I Started watchdog thread live data Jan 23 07:49:11 raspberrypi weewx[18178]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware Jan 23 07:49:11 raspberrypi weewx[18178]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS Jan 23 07:49:11 raspberrypi weewx[18178]: crt: service version is 0.19rc1 Jan 23 07:49:11 raspberrypi weewx[18178]: crt: realtime txt output goes to /var/www/html/realtime.txt Jan 23 07:49:11 raspberrypi weewx[18178]: crt: realtime xml output goes to /var/www/html/realtime.xml Jan 23 07:49:11 raspberrypi weewx[18178]: crt: sunbird output goes to /var/www/html/sunbird.txt Jan 23 07:49:11 raspberrypi weewx[18178]: crt: 'None' values will be displayed as NULL Jan 23 07:49:11 raspberrypi weewx[18178]: crt: units will be displayed as METRIC Jan 23 07:49:11 raspberrypi weewx[18178]: crt: zambretti forecast: False Jan 23 07:49:11 raspberrypi weewx[18178]: crt: binding is archive Jan 23 07:49:11 raspberrypi weewx[18178]: engine: Archive will use data binding wx_binding Jan 23 07:49:11 raspberrypi weewx[18178]: engine: Record generation will be attempted in 'hardware' Jan 23 07:49:11 raspberrypi weewx[18178]: engine: Using archive interval of 300 seconds (specified by hardware) Jan 23 07:49:11 raspberrypi weewx[18178]: engine: Using binding 'wx_binding' to database 'weewx.sdb' Jan 23 07:49:11 raspberrypi weewx[18178]: manager: Starting backfill of daily summaries Jan 23 07:49:11 raspberrypi weewx[18178]: manager: Daily summaries up to date Jan 23 07:49:11 raspberrypi weewx[18178]: restx: StationRegistry: Station will be registered. Jan 23 07:49:11 raspberrypi weewx[18178]: restx: Wunderground-PWS: Data for station IGORENJS12 will be posted Jan 23 07:49:11 raspberrypi weewx[18178]: restx: PWSweather: Posting not enabled. Jan 23 07:49:11 raspberrypi weewx[18178]: restx: CWOP: Posting not enabled. Jan 23 07:49:11 raspberrypi weewx[18178]: restx: WOW: Posting not enabled. Jan 23 07:49:11 raspberrypi weewx[18178]: restx: AWEKAS: Posting not enabled. Jan 23 07:49:11 raspberrypi weewx[18178]: engine: Starting up weewx version 3.6.2 Jan 23 07:49:15 raspberrypi weewx[18178]: wmr200: MainThread: I Time drift between host and console in seconds:15 Jan 23 07:49:51 raspberrypi weewx[18178]: wmr200: MainThread: W Wind sensor fault Jan 23 07:49:51 raspberrypi weewx[18178]: wmr200: MainThread: W Temp outdoor sensor: Battery low Jan 23 07:50:51 raspberrypi weewx[18178]: wmr200: MainThread: W Wind sensor fault Jan 23 07:50:51 raspberrypi weewx[18178]: wmr200: MainThread: W Temp outdoor sensor: Battery low Jan 23 07:51:12 raspberrypi weewx[18178]: wmr200: MainThread: I genStartup() phase exiting since looks like all archive packets have been retrieved after 120 sec cnt:0 Jan 23 07:51:12 raspberrypi weewx[18178]: engine: Starting main packet loop. Jan 23 07:51:51 raspberrypi weewx[18178]: wmr200: MainThread: W Wind sensor fault Jan 23 07:51:51 raspberrypi weewx[18178]: wmr200: MainThread: W Temp outdoor sensor: Battery low Jan 23 07:52:51 raspberrypi weewx[18178]: wmr200: MainThread: W Wind sensor fault Jan 23 07:52:51 raspberrypi weewx[18178]: wmr200: MainThread: W Temp outdoor sensor: Battery low Jan 23 07:53:51 raspberrypi weewx[18178]: wmr200: MainThread: W Wind sensor fault Jan 23 07:53:51 raspberrypi weewx[18178]: wmr200: MainThread: W Temp outdoor sensor: Battery low Jan 23 07:54:51 raspberrypi weewx[18178]: wmr200: MainThread: W Wind sensor fault Jan 23 07:54:51 raspberrypi weewx[18178]: wmr200: MainThread: W Temp outdoor sensor: Battery low Jan 23 07:55:16 raspberrypi weewx[18178]: crt: **** Traceback (most recent call last): Jan 23 07:55:16 raspberrypi weewx[18178]: crt: **** File "/usr/share/weewx/user/crt.py", line 524, in handle_data Jan 23 07:55:16 raspberrypi weewx[18178]: crt: **** self.create_realtime_xml(data)) Jan 23 07:55:16 raspberrypi weewx[18178]: crt: **** File "/usr/share/weewx/user/crt.py", line 836, in create_realtime_xml Jan 23 07:55:16 raspberrypi weewx[18178]: crt: **** lines.append(self._fmt_xml('misc="winddir"', data['windDir'])) Jan 23 07:55:16 raspberrypi weewx[18178]: crt: **** KeyError: 'windDir' Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: Thread-2: I USB polling device thread exiting Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: MainThread: I USB polling thread expired Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: Thread-1: I Watchdog received shutdown Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: Thread-1: I Watchdog thread exiting Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: MainThread: I Watchdog thread expired Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: MainThread: I Received packet count live:56 archive:0 control:6 Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: MainThread: I Received bytes:6680 sent bytes:168 Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: MainThread: I Packet archive queue len:0 live queue len:0 Jan 23 07:55:16 raspberrypi weewx[18178]: wmr200: MainThread: I Driver gracefully exiting Jan 23 07:55:16 raspberrypi weewx[18178]: engine: Caught unrecoverable exception in engine: Jan 23 07:55:16 raspberrypi weewx[18178]: **** 'windDir' Jan 23 07:55:16 raspberrypi weewx[18178]: **** Traceback (most recent call last): Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/weewx/engine.py", line 847, in main Jan 23 07:55:16 raspberrypi weewx[18178]: **** engine.run() Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/weewx/engine.py", line 200, in run Jan 23 07:55:16 raspberrypi weewx[18178]: **** self.dispatchEvent(weewx.Event(weewx.POST_LOOP)) Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/weewx/engine.py", line 222, in dispatchEvent Jan 23 07:55:16 raspberrypi weewx[18178]: **** callback(event) Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/weewx/engine.py", line 566, in post_loop Jan 23 07:55:16 raspberrypi weewx[18178]: **** self._software_catchup() Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/weewx/engine.py", line 617, in _software_catchup Jan 23 07:55:16 raspberrypi weewx[18178]: **** self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, record=record, origin='software')) Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/weewx/engine.py", line 222, in dispatchEvent Jan 23 07:55:16 raspberrypi weewx[18178]: **** callback(event) Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/user/crt.py", line 513, in handle_new_archive Jan 23 07:55:16 raspberrypi weewx[18178]: **** self.handle_data(event.record) Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/user/crt.py", line 524, in handle_data Jan 23 07:55:16 raspberrypi weewx[18178]: **** self.create_realtime_xml(data)) Jan 23 07:55:16 raspberrypi weewx[18178]: **** File "/usr/share/weewx/user/crt.py", line 836, in create_realtime_xml Jan 23 07:55:16 raspberrypi weewx[18178]: **** lines.append(self._fmt_xml('misc="winddir"', data['windDir'])) Jan 23 07:55:16 raspberrypi weewx[18178]: **** KeyError: 'windDir' Jan 23 07:55:16 raspberrypi weewx[18178]: **** Exiting.