This demo was created to give you a quick introduction on how to implement most common use cases with the UMH stack. If you have questions on how to adapt the provided templates to your specific application, feel free to join our Discord channel: https://discord.gg/DvEk5mK8
Setup an UMH instance on management.umh.app
Grant the Grafana pod writing rights to the database to enable manual changes of the machine states
sudo $(which kubectl) exec -it $(sudo $(which kubectl) get pods --kubeconfig /etc/rancher/k3s/k3s.yaml -n united-manufacturing-hub -l app.kubernetes.io/component=timescaledb -o jsonpath="{.items[0].metadata.name}") --kubeconfig /etc/rancher/k3s/k3s.yaml -n united-manufacturing-hub -- psql -U postgres
\\c umh_v2
GRANT UPDATE ON state TO grafanareader;
GRANT INSERT ON tag_string TO grafanareader;
Access NodeRed over <YOUR-IP>:1880/nodered or directly over the “Applications” tab in the Management Console
Import the JSON code in NodeRed
And Deploy
JSON code toggle
Add a new connection to the local MQTT Broker in the Management Console
Add a dataflow and select MQTT as a template