Can't get chartdata #119
Replies: 14 comments
-
|
At the risk of sounding patronising - do you have a "mix" style of system? |
Beta Was this translation helpful? Give feedback.
-
|
;) |
Beta Was this translation helpful? Give feedback.
-
|
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__.pyYou 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, |
Beta Was this translation helpful? Give feedback.
-
|
Many thanks grunkyb. Looks a little more effort than I was hoping, but your extra help with the set overnight charging was very helpful. |
Beta Was this translation helpful? Give feedback.
-
|
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, |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
@muppet3000 - AH! That's what I'm missing... Thanks for the tip. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
@philwareublox I realise I didn’t address the URL question. Will return to that this evening. |
Beta Was this translation helpful? Give feedback.
-
|
I withdraw my suggestion that I could get the |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
@philwareublox Could you try out the |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When performing a simple request like this:
I get back None for the mix info and other mix data.
What could be going wrong?
Beta Was this translation helpful? Give feedback.
All reactions