Giter VIP home page Giter VIP logo

Comments (7)

knights1 avatar knights1 commented on June 12, 2024 1

from solariot.

crazycusti avatar crazycusti commented on June 12, 2024 1

oh nvm, 30357 is without data.. sorry.

i look for a fix, this evening.

but the rest is working now

Screenshot_20200205_134133

@knights1
set your timeout higher, 3 seconds is too fast.
20 seconds is better and safe some database space

from solariot.

knights1 avatar knights1 commented on June 12, 2024

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.

meltaxa avatar meltaxa commented on June 12, 2024

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.

crazycusti avatar crazycusti commented on June 12, 2024

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.

knights1 avatar knights1 commented on June 12, 2024

from solariot.

crazycusti avatar crazycusti commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.