Re: [weewx-user] weewx-influx crashing

2021-12-31 Thread Tom Keffer
I don't know. You would have to ask the extension author (Matthew Wall). On Thu, Dec 30, 2021 at 7:25 PM JJ wrote: > Thanks, though that makes the error I am getting even more puzzling. By > original code, do you mean this version ( > https://github.com/matthewwall/weewx-influx)? If so, does the

Re: [weewx-user] weewx-influx crashing

2021-12-30 Thread JJ
Thanks, though that makes the error I am getting even more puzzling. By original code, do you mean this version (https://github.com/matthewwall/weewx-influx)? If so, does the original code support token-based authentication and connect with influxdb 2.0 databases? I thought I would need need to

Re: [weewx-user] weewx-influx crashing

2021-12-30 Thread Tom Keffer
It looks like it does. But, why not use the original code? There have been several modifications since the david-lutz fork. On Thu, Dec 30, 2021 at 6:40 AM JJ wrote: > I have been getting a similar error with my attempted weewx influx > connection never working with a Raspberry Pi. I get a sys

Re: [weewx-user] weewx-influx crashing

2021-12-30 Thread JJ
I have been getting a similar error with my attempted weewx influx connection never working with a Raspberry Pi. I get a syslog error message about thread terminating because "POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str". I am using the Simulator

Re: [weewx-user] weewx-influx crashing

2021-01-25 Thread Tom Keffer
Already done! https://github.com/matthewwall/weewx-influx/pull/27 Thanks for testing it. On Sun, Jan 24, 2021 at 8:20 PM Tom Corbett wrote: > This seems to have fixed my issues. Has been diligently putting data in > every minute for over a week now. What's the protocol for adding a pull > req

Re: [weewx-user] weewx-influx crashing

2021-01-24 Thread Tom Corbett
This seems to have fixed my issues. Has been diligently putting data in every minute for over a week now. What's the protocol for adding a pull request to Matthew's github so that other Python 3 users don't have this issue? It was your change, but happy to do the pull request if it helps others

Re: [weewx-user] weewx-influx crashing

2021-01-13 Thread Tom Corbett
Thanks very much. I have replaced the existing influx.py with your version and restarted weewx. It is putting data into the InfluxDb, so fingers crossed it keeps doing so. Cheers, Tom On Thursday, January 14, 2021 at 2:20:46 PM UTC+11 tke...@gmail.com wrote: > Normally, I don't deal with the

Re: [weewx-user] weewx-influx crashing

2021-01-13 Thread Tom Keffer
Normally, I don't deal with the influx driver, but Matthew is swamped so I took a look. I believe the problem is that the driver was not completely ported to Python 3. The HTTP response needs to be converted from a byte array to a string before performing the find() operation. Try this version of

[weewx-user] weewx-influx crashing

2021-01-13 Thread Tom Corbett
Hi All, I'm new to weewx and python in general so have been plugging away for a couple of weeks getting everything setup and working. My hardware is an ecowitt WH9200 and I'm using weewx 4.2 on FreeBSD which I setup using the py-setup method. I am capturing the data using the weewx-intercept