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

ERROR TypeError : string indices must be integers, not 'str' #28

Open Stephen2615 opened 1 year ago

Stephen2615 commented 1 year ago

I have a RPi and have tried unsuccessfully to get the scraper running. I wasn't able to run the dev supplied docker as it is not for the RPi architecture so I created a docker from scratch using the info in the Dockerfile. It all goes well but when I run it, it spits out this error.

ERROR TypeError : string indices must be integers, not 'str'

I tried another persons Docker but it also spits out a similar error:

docker run fredericvl/ginlong-solis-scraper 2022-12-01 03:37:45,804 INFO Started ginlong-solis-scraper 2022-12-01 03:37:45,806 INFO Running job Every 5 minutes at 00:00:00 do main() (last run: [never], next run: 2022-12-01 03:42:00) 2022-12-01 03:37:46,761 INFO Login successful for m.ginlong.com 2022-12-01 03:37:47,726 ERROR TypeError : string indices must be integers

It seems to be a problem with the date time for the schedule at about line 321 but I have no idea why.

Any assistance would be most welcome.