Okay, I have most of something working using an HTTP call from Meteobridge
to php that outputs a file, and fileparse parses it.
Right now, thought, I'm running into an issue with the datetime field. I've
tried outputting from meteobridge in "[DD]/[MM]/[YYYY],[hh]:[mm]:[ss]" and
in epoch, and both result in weewx barfing:
"May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: Caught
unrecoverable exception:
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
unsupported operand type(s) for -: 'NoneType' and 'int'
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
Traceback (most recent call last):
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewxd", line 154, in main
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
engine.run()
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewx/engine.py", line 191, in run
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
callback(event)
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewx/wxservices.py", line 89, in new_loop_packet
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
self.calc.new_loop_packet(event.packet)
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewx/wxservices.py", line 159, in new_loop_packet
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
self.rain_rater.add_loop_packet(loop_packet, self.db_manager)
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewx/wxservices.py", line 625, in add_loop_packet
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
self._setup(record['dateTime'], db_manager)
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
File "/usr/share/weewx/weewx/wxservices.py", line 662, in _setup
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
start_ts = stop_ts - self.retain_period
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
May 6 18:41:44 raspi-server-misc weewx[26588] CRITICAL __main__: ****
Exiting.
"
So... what format is datetime supposed to be in!? I can see in the schema
it's "('dateTime', 'INTEGER NOT NULL UNIQUE PRIMARY KEY')". So maybe
YYYYMMDDHHMMSS?
Thanks!
On Tuesday, May 5, 2020 at 6:53:52 PM UTC-7, Ryan Stasel wrote:
>
> Hi All,
>
> I'd really like to feed weewx from my Meteobridge Nano SD. Looks like I
> could do this with the fileparse driver into weewx, just uploaded once a
> minute to weewx box, or possibly I could get Meteobridge to push data
> directly into the weewx archive DB (I saw a couple year old thread about
> that here: https://groups.google.com/forum/#!topic/weewx-user/1A8z8VUY98c).
> To answer the "why?" I like the format of Weewx's data archives, NOAA
> reports, graphs, etc. Would love to actually pump all my archive into weewx
> as well (over 10 years).
>
> Anyone have any input on how to do this? Anyone doing this? It should be
> super doable... but admittedly hacky as heck. =)
>
> Thanks!
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/47720284-5885-4626-8469-8f36675a4447%40googlegroups.com.