Closed dvisser closed 2 years ago
should also mention we have been using the above for over 12 months flawlessly too :-)
I have 1 x X1-BOOST and 1 x X1-HYBRID and this works perfectly for both of them (albeit, the HYBRID has more variables, etc due to batteries and charger).
here is the version of pocket wifi firmware I mention also
@thezerobeast
pull request #47 submitted as I just tested this and it is working (although I had to fix some indents/tab spacing that home assistant didn't like).
Works with "X1-Boost-Air-Mini" firmware 2.31.3 too, thanks for sharing!
Awesome. Yes pocket wifi firmware versions 2.33.20 or older should work with this method. Thanks for checking it out.
Is there also a similar possibility for the LAN stick to read out the data locally?
I didn't think the LAN dongle's were locked with a SolaX firmware update, but it is possible that they were. What output do you get when you try to retrieve data?
How can I try to get Data from the LAN stick? I've tried through the browser and with curl
can you confirm the stick is appearing on your local network? you may need to ensure that the stick has an IP address is the correct range to suit your network. This is done via inverter programming.
Yes … the LAN Stick have an local IP from my Local Network
I'm going to close this issue, as the root cause has been addressed, but feel free to continue the discussion. It should still be possible to reply to the issue.
Hi squishykid,
We have found a potential work-around for accessing the local api data via the pocket wifi v2 over a users LAN. First you need to ensure your pocket wifi v2 adapter is running firmware version v2.033.20 or less. (you can downgrade from newer firmware if you have the file, I have this file and can get it to you also if you wish). Then you need to add the "X-Forwarded-For" header to your http request. This we believe, is the magic that makes this work. We have done this using the python requests library (code snippet below for you). It is worth mentioning that the user should then block all inbound and outbound WAN traffic to their pocket wifi on their network to avoid the pocket wifi auto updating its firmware from the internet in the future also.
Cheers,
Dan