troygNZ / homebridge-solax

Homebridge Solax Monitoring
Apache License 2.0
7 stars 1 forks source link

Expose info panel as camera #2

Closed troygNZ closed 2 years ago

troygNZ commented 4 years ago

Work around Homekit info display, and show stuff in an info panel

Ngawang67 commented 2 years ago

Hello TroygNZ,

I managed to get the info from the Solax using two network adapters and a reverse proxy. (No other option, unfortunately). Homebridge is working fine with all my devices, except the Solax. My problem is, I don't find any solution to show and use the Solax data in Homekit. I tried light generic info , battery, with no luck. I'm sure it is possible, it is only numbers I need to display/use in scenarios.

Do you have an idea ? What did you do ?

troygNZ commented 2 years ago

Hi, When you access the reverse proxy, do you get a JSON response when you navigate to http:///api/realTimeData.htm where PROXY_HOST_OR_URL is your proxy's address? It'll need to response with the JSON payload when the '/api/realTimeData.htm' is appended on the end.

It should hopefully give back a JSON response. If it does, are you happy to share the payload. If it doesn't, it may just be a case of tweaking your reverse proxy to handle that URL suffix, and route to the appropriate place on the other network.