dkruyt / ginlong-scraper

A python script that scrapes PV statistics from the Ginlong monitor pages and outputs it to influxdb, pvoutput or mqtt
GNU General Public License v3.0
48 stars 30 forks source link

Update for InfluxDB v2 write methods? #26

Open benpollinger opened 1 year ago

benpollinger commented 1 year ago

Hi @dkruyt , thanks for this script. I am running at home on a Raspberry Pi 3.

I have got it successfully querying m.ginlong.com and have installed InfluxDB v2.5.1 (webui working) but can't get this script to write to InfluxDB.

InfluxDB is new to me but it looks like the way Python writes to it has changed since you wrote your script. E.g. this page https://docs.influxdata.com/influxdb/cloud/api-guide/client-libraries/python/ suggests that instead of username and passwords, writes require bucket, org and token to be specified.

If that's correct, could you possibly update the InfluxDB bit of your script for noobs like me?

RHeijmans commented 1 year ago

You can do it with telegraf