InfernoEmbedded / PowerScraper

A scraper for power devices to feed data to OpenEnergyMonitor
GNU General Public License v3.0
36 stars 17 forks source link

SolaX X3 9.0T Issue - I'd like to have a '--debug' switch.... #20

Open 4920441 opened 2 years ago

4920441 commented 2 years ago

Hi, I try to use it with my X3 9.0T and don't know where to start; this is my config so far (/dev/ttyUSB0 is my RS485 USB Dongle. A/B is connected to the Meter RS485 Interface on the X3-9.0T

# Enable this section to scrape Modbus/RTU (RS485, "meter" connection in the manual) for Solax X3 inverters

[SolaxX3RS485]
poll_period = 10 # seconds
timeout = 1 # seconds
baud = 9600
parity = 'N'
stopbits = 1
ports = ["/dev/ttyUSB0"]

[influx]
influx_url = "http://192.168.64.126:8086"
influx_database = "telegraf"
influx_measurement = "SolaX-X3-No1"
influx_user = "telegraf"
influx_pass = "12345"
influx_retention_policy = 'autogen'

When I start, I cannot really see whats happening, despite the fact that the InfluxDB part is not really working, despite configuring it correctly and tha database "telegraf" is also existent....

When starting (as root, so there are no right issues with /dev/ttyUSB0 and other things) this is happening...:

./power_scraper.py 
WARNING:pymodbus.client.asynchronous:Importing deprecated clients. Dependency Twisted is Installed
Setting up Influx
Setting up SolaxX3RS485
ERROR:influxdb_client.client.write_api:The batch item wasn't processed successfully because: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.7.10', 'Date': 'Sat, 18 Jun 2022 13:51:05 GMT', 'Content-Length': '19'})
HTTP response body: 404 page not found

ERROR:influxdb_client.client.write_api:The batch item wasn't processed successfully because: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.7.10', 'Date': 'Sat, 18 Jun 2022 13:51:15 GMT', 'Content-Length': '19'})
HTTP response body: 404 page not found

So two issues; I don't know if some 'valid' data is polled out of the X3 and the influxdb connection is strangely not working, despite the fact I do not even need a username and password for my influxdb.....

Any hints? Is there a debug Switch where I can check the communication between /dev/ttyUSB0 and the X3 fist?

Thanks a lot!

Cheers

4920441