Tiếng Việt | English
A python script allow watch Luxpower SNA inverter in realtime. Tested in Luxpower SNA 6K with old wifi dongle (BAxxxxxx wifi name)
See wiki from lxp-bridge here. (You can ignore AC charge setup)
- Copy
.env.exampleto.env - Update configuration in
.envwith your info
- Sync gitsubmodule with
git submodule init && git submodule update - Python 3 required
- Setup python venv with
python -m venv venv - Active python venv
source venv/Scripts/activateon git-bash Windows orsource venv/bin/activeon Unix/Linux - Install dependencies with
pip install -r requirements.txtor./pip-binary-install.shon low-end device (example: OpenWrt router) - Run application with
python app.py
If you can't install and run you can use docker method bellow
- cd to
dockerfolder - run command
docker compose up -dto run docker container
You can implement notification app for Android/iOS by your self and push Firebase Device ID to devices.json file to get notification when grid connect state change.
I also developed an app for Android/iOS. If you need it feel free to contact me
The built-in web server also exposes mobile-friendly APIs:
POST /fcm/registerwith JSON or form bodytoken=<firebase_device_token>to save a device tokenGET /mobile/stateto read the current grid connection state and state-change history
- Build FE with command
cd web_viewer/fe_src && yarn install && yarn build(Ignore this step if you run via docker) - Now you can see LuxPower realtime web viewer in http://localhost:88 (or another port if you changed
PORTin.env). - HTTPS is also supported; enable it by setting
HTTPS_ENABLED=trueand providingHTTPS_PORT,HTTPS_CERT_FILE, andHTTPS_KEY_FILEin.env.
This project is licensed under the MIT License. See the LICENSE file for details.
Thanks to @celsworth by awesome project celsworth/lxp-packet (has been deleted) and celsworth/lxp-bridge (under MIT License)
This project includes code from aiohttp library (https://github.com/aio-libs/aiohttp.git) which is licensed under the Apache License 2.0.