nmakel / solaredge_setapp

SolarEdge SetApp protocol buffers parser library
MIT License
16 stars 1 forks source link

Takeover message definitions #4

Open tobylorenz opened 3 years ago

tobylorenz commented 3 years ago

Hi,

I worked through the web-set-app_1_6_9.js.gz and retrieved all contained protobuf definitions. In case you are interested to take them over into your project, they are located here: https://github.com/tobylorenz/solaredge-web-set-app

Bye Tobias

nmakel commented 3 years ago

Impressive job. Thanks for letting me know.

tobylorenz commented 3 years ago

Yes, was fun to do. I just gave it an update and also uploaded the development scripts, I'm using.

There is still one issue with a duplicate enum label, which is included in the original web-set-app. The original protoc Javascript compiler complains, when using same enum labels. So I guess, SolarEdge is using a different one.

nmakel commented 3 years ago

Interesting methodology. I've been referencing the compiled python definitions to derive my own .proto files.

tobylorenz commented 3 years ago

I first recovered the proto files based on the original web-set-app Javascript. Then to test it, I ran "protoc" to generate new Javascript codes from the proto files. Afterwards I changed the proto files until the original and the generated Javascript matched. ;-)

My home automation and monitoring is based upon MQTT (mosquitto), so the next step for me is to write a program to retrieve the numbers and put them into MQTT. ;-)