A separate PDF document is provided with login links and passwords.
- Log in to the test node.
- Open a new shell and navigate to the GitHub repository folder:
su teamlary cd /home/teamlary/gitHubRepos/iotSystemsGuide/DCNodes/firmware/xu4Mqtt/
The DCNodes folder contains a typical codebase used to operate Direct-Connect (DC) Nodes on a single-board computer (SBC).
At this point, inspect the file bme280Reader.py, which demonstrates a sample implementation of a climate sensor used in our live nodes.
-
Run the file:
python3 bme280Reader.py
-
Check where the data is saved.
When adding a new sensor to a unit, use the functionsensorFinisher()with the corresponding sensor dictionary.
The full list of supported sensors and their respective dictionaries can be found here:
👉 dcSensorIDs.py
Ensure you:
- Maintain the same field ordering
- Use the appropriate units, especially if reusing an existing sensor definition.
The Rsync pipeline uses SSH key-based authentication to securely transfer data to our IMD data server.
To register a new DC Node, follow these steps:
ssh-keygenLog in to the IMD data server:
ssh mints@mintsdata.utdallas.edu -p 2222Once logged in:
cd ~/.ssh
vim authorized_keysPaste the node’s SSH public key into the authorized_keys file.
⚠️ Note: You must already have access to the IMD server before performing this step.
Return to the node and confirm that it can access the IMD server:
ssh mints@mintsdata.utdallas.edu -p 2222Manually run Rsync to verify connectivity and data transfer:
rsync -avzrtu -e "ssh -p 2222" /home/teamlary/mintsData/raw/ mints@mintsdata.utdallas.edu:rawAfter running Rsync, check the IMD server to confirm that the data has been successfully transferred.
To automatically sync data every minute, add the following line to the node’s crontab:
* * * * * rsync -avzrtu -e "ssh -p 2222" /home/teamlary/mintsData/raw/ mints@mintsdata.utdallas.edu:rawThis ensures that your node’s data is continuously mirrored to the IMD server in near real time.