Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hubmartin/axpert-monitor-mqtt
Get/Set Axpert inverter data from HID/RS232 over MQTT
https://github.com/hubmartin/axpert-monitor-mqtt
Last synced: about 1 month ago
JSON representation
Get/Set Axpert inverter data from HID/RS232 over MQTT
- Host: GitHub
- URL: https://github.com/hubmartin/axpert-monitor-mqtt
- Owner: hubmartin
- Created: 2022-08-03T20:32:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T08:08:01.000Z (about 2 months ago)
- Last Synced: 2024-12-11T09:19:35.637Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# axpert-monitor-mqtt
Based on https://github.com/b48736/axpert-monitor
** Work in progress **
Send Axpert inverter data from HID/RS232 to MQTT.
Periodically send status over MQTT and react to some commands.
Commands are checked with `startsWith` to work as a firewall.
## Install steps
```
# Nodered
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --confirm-install --confirm-pi
cd ~/.node-red
npm install node-red-dashboard node-red-contrib-persist
cd
sudo systemctl enable nodered.service
sudo systemctl start nodered.service# MQTT broker
sudo apt install -y mosquitto mosquitto-clients
sudo systemctl enable mosquitto.service
sudo systemctl start mosquitto.servicesudo apt install -y git
git clone https://github.com/hubmartin/axpert-monitor-mqtt.git
cd axpert-monitor-mqtt
sudo apt install libusb-1.0-0-dev
# if node is too new, try nvm install 18.15.0
npm installsudo npm install pm2 -g
pm2 install pm2-logrotate
pm2 start index.js --name axpert-monitor-mqtt
#pm2 startup
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
pm2 savecurl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
```
On older RPI I had to run this before npm install: `sudo apt install libusb-dev libudev-dev`.Import node-red-flow.json file in Node-red