PLC Basic 1:Connect Node-Red to InfluxDB to Grafana

Опубликовано: 09 Июнь 2026
на канале: EE Poldon
472
8

PLC Basic 1:Connect Node-Red to InfluxDB to Grafana
RUN

cd where influxdb is

creating database
curl -X POST "http://localhost:8181/api/v3/configure/database" -H "Content-Type: application/json" -d "{\"database_name\":\"nowabaaza\"}"

function
msg.measurement = "temperatura";

msg.payload = {
wartosc: 40.5,
wilgotnosc: 60
};

msg.tags = {
lokalizacja: "pokoj1",
czujnik: "DHT22"
};

return msg;


run server
influxdb3.exe serve --object-store file --data-dir C:\InfluxDB3\data --node-id node1 --without-auth

go to gui Checking base
influxdb3.exe query --host http://localhost:8181 --database mojabaza "SELECT * FROM temperatura"

Grafana
Add new connection
URL
http://localhost:8181


mojabaza
#plc
#automation
#grafana
#influxdb
#nodered