-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get chartdata #33
Comments
At the risk of sounding patronising - do you have a "mix" style of system? |
;) |
I have a non-mix converter and it wasn't too hard to reverse-engineer the API by using a web browser on the Shine server site, and watching network calls. Here's a bit for setting AC charging added to the end of Addition to __init__.py
You need to send a full set of parameters to the API, even if they do nothing. Sample script to set overnight charging on Growatt AC inverter``` import growattServer import syscheck for SOC percent and whether to runif len(sys.argv) != 7: api = growattServer.GrowattApi() print(login_response)Get a list of growatt plants.plant_list = api.plant_list(login_response['user']['id']) schedule_settings = ['100', # Charging power % response = api.update_ac_inverter_setting(device_sn,
|
Many thanks grunkyb. Looks a little more effort than I was hoping, but your extra help with the set overnight charging was very helpful. |
Hi @grunkyb. Using the web browser network debug tool I can see the calls to the server.growatt.com server for the getTLXEnergyDayChart calls etc, but I don't understand how I can relate that to the url's I see you use and what this library uses, with the ".do" at the end of the URLs, like 'tcpSet.do' How do I get to see the correct url for these operations? Another example: thanks, |
I'm not sure how @grunkyb is doing his stuff, however this library has been made by looking at the castle made by the Android app (ShinePhone) not the web page. |
@muppet3000 - AH! That's what I'm missing... Thanks for the tip. |
On my side, here's what I'm doing to make the changes.
For @philwareublox's request, this is what I send: I can add that in after I've cleaned up my PR with doing the settings on an AC-coupled inverter. |
@philwareublox I realise I didn’t address the URL question. Will return to that this evening. |
I withdraw my suggestion that I could get the |
The only thing to be aware of is that I don't believe all the URLs are the same between the mobile app and the web page. It would be worth repeating these tests/checks using the method both Indy & I have used to produce the rest of the API. |
Fair enough about that. I'm on a "if it works"... There seems to be a lot of redundancy/redirects built into what's happening on the server side. |
I'll see what shows up on a packet inspector on the iOS/MacOS side. I expect it'll be similar to Android, but it's worth checking for subtle differences. |
@philwareublox Could you try out the |
When performing a simple request like this:
I get back None for the mix info and other mix data.
What could be going wrong?
The text was updated successfully, but these errors were encountered: