How to set up the weewx influxdb extension

432 views
Skip to first unread message

JJ

unread,
Dec 10, 2021, 10:16:33 PM12/10/21
to weewx-user
I have a Davis Pro2 weather station, a Davis USB data logger and a Raspberry Pi 4. I want to store my weather station data in my remotely hosted influxdb database so that I can view the data in Grafana.

If I am going to install the influxdb weewx extension (https://github.com/matthewwall/weewx-influx), should I initially run the setup.py version of weewx on my RPi4 that is running Raspiban? Or will the extension still work if I initially run the DEB package for Debian based systems to set up weewx?

p q

unread,
Dec 10, 2021, 10:42:15 PM12/10/21
to weewx...@googlegroups.com
You can use grafana with the sql db too. 

On Fri, Dec 10, 2021, 7:16 PM JJ <weathe...@gmail.com> wrote:
I have a Davis Pro2 weather station, a Davis USB data logger and a Raspberry Pi 4. I want to store my weather station data in my remotely hosted influxdb database so that I can view the data in Grafana.

If I am going to install the influxdb weewx extension (https://github.com/matthewwall/weewx-influx), should I initially run the setup.py version of weewx on my RPi4 that is running Raspiban? Or will the extension still work if I initially run the DEB package for Debian based systems to set up weewx?

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/81e92d70-7c4a-41df-b07a-58c56d3fd848n%40googlegroups.com.

vince

unread,
Dec 10, 2021, 11:42:36 PM12/10/21
to weewx-user
Extensions don't care how weewx was installed - just use wee_extension to install it.

JJ

unread,
Dec 13, 2021, 8:33:04 PM12/13/21
to weewx-user
Thanks. I am trying to make this connection work but I am not having luck seeing my data in influxdb or Grafana yet. Is there anything missing from this part of the weewx.conf file if I want to send my Davis Pro2 data into a remotely hosted influxdb database and Grafana instance that is in a docker container on a digitalocean linux droplet?

  [StdRESTful] [[Influx]] database = [NAME-OF-DATABASE-I-CREATED-BEFOREHAND-IN-THE-CONSOLE-WHILE-LOGGED-INTO-INFLUXDB-1.8-INSTANCE] port = 8086 host = [URL-OF-DIGITALOCEAN-DROPLET-THAT-HAS-INFLUXDB-INSTALLED-ON-IT] server_url = [URL-OF-DIGITALOCEAN-DROPLET-THAT-HAS-INFLUXDB-INSTALLED-ON-IT]:8086  username = [USERNAME-FOR-INFLUX-INSTANCE] password = [PASSWORD-FOR-INFLUX-INSTANCE] measurement = [NAME OF MEASUREMENT I SET UP IN THE INFLUXDB CONSOLE TO USE FOR WEATHER DATA]

Greg Troxel

unread,
Dec 13, 2021, 8:35:40 PM12/13/21
to JJ, weewx-user

JJ <weathe...@gmail.com> writes:

> Thanks. I am trying to make this connection work but I am not having luck
> seeing my data in influxdb or Grafana yet. Is there anything missing from
> this part of the weewx.conf file if I want to send my Davis Pro2 data into
> a remotely hosted influxdb database and Grafana instance that is in a
> docker container on a digitalocean linux droplet?

When you did "telnet [hostnname-of-droplet] 8086", did it connect?
Did you see that connection in the influx log?
Did you read the weewx log?
signature.asc

JJ

unread,
Dec 14, 2021, 8:10:10 PM12/14/21
to weewx-user
Thanks, I found the weewx log in /var/log/syslog and I noticed an error that says 

TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str

I could use suggestions on what I can change to fix this. A quick internet search turned up a suggestion to add a .encode("utf-8") onto the end of a line somewhere that uses urlencode 

I am currently trying to use the influx 2.0 weewx setup found here: https://github.com/david-lutz/weewx-influx2

Reply all
Reply to author
Forward
0 new messages