1523[/ATTACH]
First Invertor
{
"serial_port": "/dev/ttyUSB0",
"serial_baudrate": 2400,
"serial_queue_delay": 200,
"serial_parsers_readline": "\r",
"serial_restart_threshold": 10000,
"serial_clear_command_queue_on_restart": true,
"http_port": 3001,
"influx_pre_header": "pip1_",
"influxUrl": "
http://localhost:8086/write?db=powerwall&precision=s",
"IntervalCommands": [
{
"name": "general_status",
"config": "query_config",
"command": "query/general_status",
"interval": 3000,
"max": 0,
"influx": true
},
{
"name": "device_rated_information",
"config": "query_config",
"command": "query/device_rated_information",
"interval": 40000,
"max": 0,
"influx": true
}
],
"OnInit": {
"StartInterval": ["general_status", "device_rated_information"]
}
}
Second Invertor
{
"serial_port": "/dev/ttyUSB1",
"serial_baudrate": 2400,
"serial_queue_delay": 200,
"serial_parsers_readline": "\r",
"serial_restart_threshold": 10000,
"serial_clear_command_queue_on_restart": true,
"http_port": 3003,
"influx_pre_header": "pip_",
"influxUrl": "
http://localhost:8086/write?db=powerwall&precision=s",
"IntervalCommands": [
{
"name": "general_status",
"config": "query_config",
"command": "query/general_status",
"interval": 3000,
"max": 0,
"influx": true
},
{
"name": "device_rated_information",
"config": "query_config",
"command": "query/device_rated_information",
"interval": 40000,
"max": 0,
"influx": true
}
],
"OnInit": {
"StartInterval": ["general_status", "device_rated_information"]
}
}
iantully said:
Michel,
YesIhavetwo5048systemsworking,the5048isanewerversionofthe4048,apowerfactorof1.Ididhave4048initiallythoughonefailedandhadto upgrade. I had to get serial cables that contain aFtdi Chipset that is more expensive.
I needed to create this script and cron job to restart it periodically as it would stop communicating.
# m h dom mon dow comma
5,10,15,20,30,35,40,45,50,55 * * * * /home/pi/start_solar.sh > /home/pi/restart.log
The script start_solar.sh
#!/bin/bash
/usr/bin/sudo /bin/systemctl restart solar_pip
/usr/bin/sudo /bin/systemctl restart solar_pip1
I use openhab to interface the invertors to alter turning on and off devices. I use a curl callto influx db to do this.
It has been very reliable running for 2 + years.
Have any of you managed to get two PIP's in parallel to work? We've downloaded the
DUALPIP4048 scripts from the the original github repository, modified the serial device name/location.
After some fooling around it appears to be reading some data, but influx rejects the status data, possibly due to some syntax error? See below the tcpdump data from the conversation between the script and influx. General information (aka settings) are successfully pushed into influx.
Error appears to be:
Code:
X-Influxdb-Error: unable to parse 'undefinedquery_general_status0
Any suggestions?