This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
projects:farmrobot:batteriemanagement [2021/03/21 18:29] jonas [Modbus Python and Watson-IoT MQTT publish on Raspberry Pi 4B] |
projects:farmrobot:batteriemanagement [2021/03/21 18:56] jonas [Web Interface to view and graph the data] |
||
---|---|---|---|
Line 224: | Line 224: | ||
sleep(10) | sleep(10) | ||
</ | </ | ||
- | {{: | + | {{: |
- | === Receiving MQTT messages on Watson IoT platform === | + | |
+ | ==== Receiving MQTT messages on Watson IoT platform ==== | ||
+ | Received messages: | ||
+ | {{: | ||
+ | |||
+ | Raw status data available: | ||
+ | {{: | ||
+ | |||
+ | ===== Web Interface to view and graph the data ===== | ||
+ | An easy way to set up a web interface is to host a node-red instance on a server, for example on a stationary Raspberry Pi 4, which can be accesses via network or can be made accessible with port forwarding from the internet.\\ | ||
+ | |||
+ | Setting up a Raspberry Pi 4B with docker and docker run portainer. | ||
+ | Create a new Node-Red Stack with a compose file, which creates a node-red web instance on the device on port 1880. | ||
+ | The ip adress is needed which can be requested with: | ||
+ | ifconfig | ||
+ | |||
+ | <file yaml compose.yaml> | ||
+ | version: " | ||
+ | |||
+ | services: | ||
+ | node-red: | ||
+ | image: nodered/ | ||
+ | environment: | ||
+ | - TZ=Europe/ | ||
+ | ports: | ||
+ | - " | ||
+ | networks: | ||
+ | - node-red-net | ||
+ | volumes: | ||
+ | - ~/ | ||
+ | |||
+ | networks: | ||
+ | node-red-net: | ||
+ | </ | ||
+ | |||
+ | The node-red webapp can then be accessed via [[http:// | ||
+ | The Node-RED Dashboard module is needed to display the data with node-red\\ | ||
+ | To install, click the Menu Button and choose " | ||
+ | Then click on install and install in the pop-up window. Then return to the main view.\\ | ||
+ | {{: | ||
===== Micropython implementation on espressiv ESP32 DevKitc v4 ===== | ===== Micropython implementation on espressiv ESP32 DevKitc v4 ===== |