Local script to fetch Data for ASGOFT ASE 1000 and related variants of solar battery.
Create a docker image using
docker build -t battery-mqtt-client .
Run using:
docker run -d \
-e MQTT_BROKER='192.168.1.2' \
-e MQTT_PORT='1883' \
-e DEVICE_ID='DEVICE ID FROM APP'
-e APP_CODE='ASGOFT' \
-e LOGIN_NAME='test@example.com' \
-e PASSWORD='YourPassword' \
--name battery-mqtt-client battery-mqtt-client
Alternatively edit the configuration section and run the script directly
This application can be configured through the following environment variables. Please note that some of these are mandatory for the application to function correctly:
MQTT_BROKER
(mandatory):
MQTT_PORT
(optional):
1883
.MQTT_TOPIC
(optional):
battery/reportEquip
.WS_URI
(optional):
ws://baterway.com:9501/equip/info/
.TOKEN_URL
(mandatory):
http://baterway.com/api/user/app/login
.HEARTBEAT_INTERVAL
(optional):
60
seconds.RECONNECT_DELAY
(optional):
60
seconds.APP_CODE
(mandatory):
ASGOFT
.LOGIN_NAME
(mandatory):
PASSWORD
for authentication purposes.PASSWORD
(mandatory):
LOGIN_NAME
for authentication purposes.DEVICE_ID
(mandatory):