Skip to content

Commit

Permalink
v 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-demydiuk committed Dec 24, 2023
1 parent 42f9249 commit 7507965
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,42 @@ docker run -it \
demydiuk/ewpe-smart-mqtt:latest
```

## Installation (systemd service)

1. Clone or download the repository
```
cd /opt/
git clone https://github.com/stas-demydiuk/ewpe-smart-mqtt
```

2. Create service file
`sudo nano /etc/systemd/system/ewpe-smart-mqtt.service`

```
[Unit]
Description=ewpe-smart-mqtt
After=mosquitto.target
[Service]
ExecStart=/usr/bin/node /opt/ewpe-smart-mqtt/index.js --NETWORK="192.168.1.255" --MQTT_SERVER="mqtt://127.0.0.1" --MQTT_PORT="1883" --MQTT_USERNAME="" --MQTT_PASSWORD="" --MQTT_BASE_TOPIC="ewpe-smart" --DEVICE_POLL_INTERVAL="5000"
# Required on some systems
WorkingDirectory=/opt/ewpe-smart-mqtt
StandardOutput=inherit
StandardError=inherit
Restart=always
RestartSec=10
User=pi
Group=pi
[Install]
WantedBy=multi-user.target
```

3. Run the servive

- Enable service with `sudo systemctl enable ewpe-smart-mqtt.service`
- Start/stop service with `sudo systemctl start|stop ewpe-smart-mqtt.service`

## Communicating with the bridge

- Publish to `ewpe-smart/devices/list` to receive list of registered devices
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ewpe-smart-mqtt",
"version": "1.0.5",
"version": "1.0.6",
"description": "MQTT Bridge for EWPE Smart powered air conditioners",
"license": "MIT",
"author": "Stanislav Demydiuk",
Expand Down

0 comments on commit 7507965

Please sign in to comment.