MickMake / GoSungrow

GoLang implementation to access the iSolarCloud API updated by SunGrow inverters.
https://mickmake.com/
GNU General Public License v2.0
148 stars 42 forks source link

How to access predefined / user-defined reports #47

Closed thankthemaker closed 1 year ago

thankthemaker commented 1 year ago

I use 3.0.4 and I'd like to automate sending a daily report via mail. In the web UI it's possible to use predifined reports as well as user-defined reports. How can I use these reports via GoSungrow?

I saw there's an api "getReportMsg" but I wasn't able to find out how to use it. I tried to call it like this

./GoSungrow api get AppService.queryReportMsg

but it returns an error message:

Error: unknown error 'er_missing_parameter:menu_code'

Is getting the reports supported by GoSungrow?

thankthemaker commented 1 year ago

BTW: I know there's also such a feature available in the UI.

thankthemaker commented 1 year ago

Ok, found it in the examples GoSungrow api get getPsReport '{"report_type":"1","date_id":"20220201","date_type":"1","ps_id":"1171348"}'

scraja69 commented 1 year ago

Hi, How do you install version 3.0.4 through addons. It will not allow me. Please See below.. Can you please help?

image

thankthemaker commented 1 year ago

I don't use GoSungrow with HomeAssistent, instead I'm using it standanlon. Maybe someone else can answer your question.