Comments (7)
from solariot.
oh nvm, 30357 is without data.. sorry.
i look for a fix, this evening.
but the rest is working now
@knights1
set your timeout higher, 3 seconds is too fast.
20 seconds is better and safe some database space
from solariot.
config at the moment:
inverter_ip = "192.168.1.166"
inverter_port = 502
# Slave Defaults
# Sungrow: 0x01
# SMA: 3
model = "sma-SBn_n-1AV-40"
slave = 3
timeout = 3
scan_interval = 10
# Optional:
# dweepy_uuid = "random-uuid"
# Optional:
influxdb_ip = "192.168.1.91"
influxdb_port = 8086
influxdb_user = "xxxx"
influxdb_password = "xxxx"
influxdb_database = "inverter"
influxdb_ssl = False
influxdb_verify_ssl = False
# Optional
#mqtt_server = "192.168.1.91"
#mqtt_port = 1883
#mqtt_topic = "inverter/stats"
# See config-example.py for required and optional settings.
this gives me an error:
pi@raspberrypi:~/solariot/solariot-master $ ./solariot.py
Load config sma-SBn_n-1AV-40
Load ModbusTcpClient
Connect
[ERROR] fromRegisters() got an unexpected keyword argument 'endian'
from solariot.
Your inverter model may not be supported by the contributed modbus map. However, try dropping the endian field from Line 137 to be:
message = BinaryPayloadDecoder.fromRegisters(received.registers)
from solariot.
This doenst work, after this change i get wrong results.
try this:
message = BinaryPayloadDecoder.fromRegisters(received.registers, byteorder=Endian.Big, wordorder=Endian.Big)
in pymodbus 1.4.0 they changed the endian-stuff a little bit.
looks good for me
root@rietjenserver:/home/rietjen/solariot-master# python3 solariot.py
Load config sma-SBn_n-1AV-40
Load ModbusTcpClient
Connect
{'30531 - Total yield (kWh)': 227, '30535 - Daily yield (Wh)': None, '30537 - Daily yield (kWh)': None, '30769 - DC current input [1] (A)': None, '30771 - DC voltage input [1] (V)': None, '30775 - Power (W)': None, '30783 - Grid voltage phase L1 (V)': None, '00000 - Timestamp': '2020-02-04 22:01:04'}
[INFO] Sent to InfluxDB
before, i got extreme high results (68000 watts in the night, yay!)
from solariot.
from solariot.
the adress is 30537
i started the logger again with a clean database in the night, so the sma modbus do not transmit DC related things. When the sun go up/rise/myenglishistoobad the inverter started and sent these datas.
when you use python3, you must install everything with pip3, not pip. this is a littlebit confusing, python is a version-chaos. python2 and python3 are complete different spaces. afaik you can use python2, there is no must-to-have python3 things in this code.
also use python instead of python3.
from solariot.
Related Issues (20)
- Cumulative flag HOT 1
- sungrow-sg5kd Modbus connection failed HOT 2
- Sungrow SG10RT inverter modbus HOT 10
- WiFi vs Ethernet HOT 9
- python 3.9.2 issues? HOT 1
- Not working with InfluxDB 2.0 HOT 2
- Sungrow SG10RT - "unable to decode request" HOT 17
- InfluxDB and Grafana HOT 1
- SG15RT support HOT 2
- Command errored out with exit status 1 HOT 4
- Adding in the custom user to the Dockerfile broke existing permissions HOT 1
- Failed to scrape inverter: sg8kd HOT 1
- InfluxDBClientError: 400: {"error":"unable to parse 'Sungrow,location=XXXXX ': invalid field format HOT 1
- Error loading config.py HOT 2
- How to create a new device from template
- Quick update
- Sungrow SH5K HOT 1
- Solariot + SMA Inverters xx000TL-20
- WARNING:Modbus connection failed WARNING:Failed to scrape inverter, sleeping until next scan HOT 1
- WARNING:root:Failed to scrape inverter, sleeping until next scan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solariot.