git clone https://github.com/DigitalShoestringSolutions/HumidityMonitoring
cd HumidityMonitoring
nano UserConfig/Sensing/main.py
nano recipe.txt
ServiceModules/Asssembly/get_service_modules.sh
docker compose build
./start.sh
localhost:3000
in a web browserThe default collection of Service Modules creates an independent system, complete with communications controller, database and dashboard hosting. If in your deployment environment you would like to expand an existing sytem by adding more sensors connected over the network, the Solution can be built in a simplified configuration that only gathers data and sends it to the master pi.
In recipe.txt
, remove the Service Modules that are not required:
In UserConfig/Sensing/main.py
, Add , broker="xxx.xxx.xxx.xxx"
to the end of the publish
function to send the data to the master pi. Hence ideally your master pi will have a static IP address. For example the last line could become:
publish( {"machine": "StoreRoom"} | mysht40.get_TRH() | mybmp280.get_P(), broker="192.168.59.50" )