To ensure data from a new node is correctly stored in the InfluxDB, the node must first be registered in the workflow. This involves adding its information to the node lookup table and then updating and restarting the workflow environment.
Each node in the Air Quality Analysis Workflow is registered in the id_lookup.csv file.
To register a new node, open this file in the GitHub repository and append a new line with the node’s details:
abcdefg000001,Guide Node 00,Guide Node,C4,1,,,,,Field meanings:
- Node ID:
abcdefg000001 - Node Name:
Guide Node 01 - Node Type:
Guide Node - Device in Use:
C4 - Currently Active:
1(where1 = True,0 = False)
Once this entry is added and committed, proceed to update the cloud workflow.
Access the MDASH server from your PC using SSH:
ssh jxw190004@mdash.circ.utdallas.edu
⚠️ You must already have SSH access configured to MDASH.
After logging in, navigate to the repository and pull the latest updates:
cd AirQualityAnalysisWorkflows/
git pullNavigate to the influxdb folder and list the running containers:
cd influxdb
podman container lsYou should see output similar to this:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c3692f3ca93e k8s.gcr.io/pause:3.2 3 years ago Up 3 years ago 0.0.0.0:1880->1880/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:8086->8086/tcp 06360efbd5a9-infra
cc581152869a localhost/mints-grafana:latest 4 months ago Up 4 months ago 0.0.0.0:1880->1880/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:8086->8086/tcp influxdb_grafana_1
edd6ff8a8e49 localhost/mints-influxdb:latest influxd 4 months ago Up 4 months ago 0.0.0.0:1880->1880/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:8086->8086/tcp influxdb_influxdb_1
33bad6576ec5 localhost/mints-nodered:latest 2 months ago Up 2 months ago 0.0.0.0:1880->1880/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:8086->8086/tcp influxdb_nodered_1Locate the Node-RED container ID (e.g., 33bad6576ec5).
Stop and remove only the Node-RED container — do not remove the InfluxDB container.
podman stop 33bad6576ec5
podman rm 33bad6576ec5Now, rebuild and restart the unavailable containers:
podman-compose up --build -dOnce the workflow is rebuilt and running, exit the server:
exitFinally, rerun the bme280Reader.py script on your test node and confirm that data from the new node name is appearing in InfluxDB.
In the next section, Registering New Sensors, we’ll learn how to add brand-new sensors to the data pipeline.