dymerz / sma-sunnyboy Goto Github PK
View Code? Open in Web Editor NEWA simple data retrieving from SMA SunnyBoy
Home Page: https://sma-sunnyboy.readthedocs.io/en/latest/sma_sunnyboy.html
License: MIT License
A simple data retrieving from SMA SunnyBoy
Home Page: https://sma-sunnyboy.readthedocs.io/en/latest/sma_sunnyboy.html
License: MIT License
The 5-minute logs are available at /dyn/genericLog.bin, however they're returned as binary data and script.xxxx.js decodes them and pushes them to the user as CSV.
This ticket isn't a bug report as these logs aren't yet implemented in the library. Instead it's a Feature ticket in case @Dymerz or anyone else has already done some work on rewriting the binary interpreter so we don't double up.
Hi, I am trying to get this api to work. I know this was developed for SunnyBoy 5.0. My inverter is SunnyBoy 7.0
Do you have a url to the SMA docs for this api? I have googled and can't find them anywhere.
My issue is when I call client.auth, the response I'm getting is:
{"result":{"sid":null}}
If I can look at the SMA docs, maybe I can figure out why.
Thanks, Matt.
Hi what is the format of start and end argument of getLogger() function?
Thank you
power_current is certainly W but isn't power_total in Wh?
Using the SMA web interface you are able to see "current consumption", but I can't find that key in this class... I need some help with this
Hallo, i tried to do "pip install SMA-SunnyBoy" on a raspberry pi 3 and failed
on my windows pc it works like a charm but on my raspberry i get the following
`pi@NAS:~/script $ pip install SMA-SunnyBoy
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting SMA-SunnyBoy
Could not find a version that satisfies the requirement SMA-SunnyBoy (from versions: )
No matching distribution found for SMA-SunnyBoy
`
any ideas
best regards frits
Hello
is there a way to implement also the total power day : key = 6400_00262200.
Is it possible to import this lib to an esp32 running on micropython?
Kurt
Hi.
You did a nice work, but Why did you hardcode your serial-number into the api ?
'0156-76BD14A8' will only work with your device.
the last part stands for the serialnumber as hex encoded value, but I am not sure what the first value stands for.
While trying to run getValue.py, after setting address and password, I get repeated:
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1015: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.158'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
I added:
from urllib3.exceptions import InsecureRequestWarning
from urllib3 import disable_warnings
disable_warnings(InsecureRequestWarning)
This suppresses the warning but it seems to hang. Control C shows:
File "getkwh.py", line 16, in
client.auth()
File "/home/frankbanul/.local/lib/python3.9/site-packages/sma_sunnyboy/sma.py", line 101, in auth
time.sleep(5)
KeyboardInterrupt
To Reproduce
python3 getkwh.py
Expected behavior
Total and current power would be printed
Actual behavior
No output
Hardware (please complete the following information):
Additional context
Debian 11.4, Linux 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux
Hello
I have SMA SUNNY TRIPOWER 8.0 and trying to use your library to connect to my inverter ... unfortunately it doesn't connect. Permission denied message.
I have SSL conection. I connect via WLAN (not LAN) Firmware is: 3.00.05.R
Describe the bug
The function client.auth() produces errors/warnings in an infinite loop. No connection to Inverter prossible.
To Reproduce
Code causing the bug:
from sma_sunnyboy import *
client = WebConnect("192.168.188.47", Right.USER, "password")
client.auth()
Error Message:
warnings.warn(
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:999: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.188.47'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Expected behavior
authentificate and continue with python script reading values etc...
Actual behavior
Script procudes 10 times this warning and then hangs.
Hardware (please complete the following information):
Hi, do you know how to interpret value received from getLogger?
I'd like to draw production chart but values received from getLogger have to be manipulated before drawing.
Do you know how?
Thank you
I'm trying to use this package to pull solar production data but I could use more guidance on what arguments to supply to WebConnect
. What value do I put for Right.USER
and how do I define that? And what value do I supply for the IP address? I posted this on StackOverflow too in case anyone would rather answer there: https://stackoverflow.com/questions/72018111/what-values-to-pass-for-arguments-to-webconnect-in-the-sma-sunnyboy-package
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.