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

Moved collected variables to a dictionary #12

Closed jturnbull closed 3 years ago

jturnbull commented 3 years ago

Now all numeric data is casted to floats, and ensures all variables are posted to influx or MQTT

dkruyt commented 3 years ago

Thanks for the pr, cleans it up.

2021-01-14 21:28:16,253 ERROR NameError : name 'updateDate' is not defined

mmm, seems the updateDate is now missing, will need to look further at your pr.

jturnbull commented 3 years ago

Ah, rushed commit wasn't tested properly. Have cleaned up and sqaushed them

dkruyt commented 3 years ago

An other issue, the default 0 value must be also a float, or else the field type won't match. Fixed this and accepted the pr.

thanks...