Environmental Sensing + Automation Hub
Sensorius is a sensor, relay-switch automation hub with a intuitive, performant, customizable web UI, extensive user-defined Automation Rules for creating condition(s)+action(s) automations, WiFi Sensor/Switch monitoring via MQTT, support for a variety of weather sensors/stations, as well as optional Home Assistant and farmOS integrations.
The application's focus is on greenhouse (garden, farm) monitor and control, but Sensorius can be used to monitor and control other environments as well. When using Raspberry Pi's it can auto-detects directly-connected sensors, relay-switch(es) and on all supported platforms it automatically discovers Nodus WiFi/MQTT devices, and turns those data into live dashboards, automation controls, historical data; the application also includes integrated weather forecast and biodynamic calendar.
For illustrated setup and operating instructions, see the Sensorius AI User Guide.
- Auto-detects locally attached sensors (Raspberry Pi deployments)
- Discovers Nodus sensors and switches via MQTT and retained
nodus/<device_id>/metametadata- Nodus Sensors Metrics gathered include:
- Temperature, Relative Humidity, Vapor Pressure Deficit, Barometric Pressure, CO2, AQI, Light, and more
- Nodus Sensors Metrics gathered include:
- Support for Ecowitt gateways, AcuRite USB consoles, Davis Vantage Vue USB dataloggers, and Oregon Scientific WMR100-family USB consoles, including rain and wind sensors (supported hardware)
- Stores sensor readings and switch events in a local SQLite database
- Provides live dashboards, historical graphing, and location-based views
- Shows Astral-based sun position and moon phase cards in the dashboard when location/timezone are available
- Supports manual and automated switch control
- Automation Conditions include: sensor metric+operator+threshold+hysteresis, time of day, timer, astral, calendar, severe weather, system status and 'or' conditions
- Automation Actions include: relay/switch state set+restoration+delay, (email) notification, and (dashboard) alerts
- Automation Libraries provide a wide-range of templates that are easily extendable
- Supports calibration for sensor offsets: temperature, relative humidity, aqi, co2, altitude (automatically set)
- Can publish discovery/state for Home Assistant to automatically be added to HA dashboard
- Can export sensor telemetry to farmOS log entries
- Dashboard, dialogs, graphum presentations support several language and regions including: US English, Modern Standard Arabic, German, Latin American Spanish, Canadian French, Hindi, Italian, Japanese, Dutch, Polish, Brazilian Portuguese, Ukrainian, Simplified Chinese
- Integrated Caelus weather forecast from Open Meteo, MET Norway or US National Weather Service
- Integrated Biodynamic Calendar with biodynaminc hints, planting tracking and notes
- Raspberry Pi: full hub mode with local sensors, GPIO relays, Nodus discovery, and web UI
- macOS/Windows/Linux (non-Pi): hub + MQTT + web UI mode (no local GPIO/direct sensor wiring)
Choose one setup path:
All shell setup scripts deploy the runtime app under the user's home directory,
for example /home/<user>/Sensorius on Linux or /Users/<user>/Sensorius on
macOS.
- Raspberry Pi, macOS, Linux:
./install.sh(auto-select)
Manual Setup
- Raspberry Pi Bookworm:
deploy_scripts/setup_bookworm.sh/deploy_scripts/setup_bookwork_uv.sh - Raspberry Pi Trixie:
deploy_scripts/setup_trixie.shordeploy_scripts/setup_trixie_uv.sh - macOS:
deploy_scripts/setup_mac.shordeploy_scripts/setup_mac_uv.sh - Linux (Debian/Ubuntu):
deploy_scripts/setup_linux.sh - Windows:
deploy_scripts/setup_win.ps1ordeploy_scripts/setup_win_uv.ps1
Native .deb, macOS .pkg, and Windows .exe installer build projects can
be generated with python platform_installers/installer_generator.py generate.
See platform_installers/README.md for the supported architecture matrix,
native build commands, signing, and support-log locations.
Then run:
.venv/bin/python Sensorius.pyThe setup scripts install the sensorius package into that virtual
environment while preserving Sensorius.py as the root launcher. The package
directory is sensorius/ at repository/runtime root; installers and direct
deployments remove the superseded flat Python module layout after verifying
the replacement package was copied successfully.
Default UI URL: http://127.0.0.1:8000
For source-development and test tooling, install the platform runtime
requirements plus deploy_scripts/setup_reqs_dev.txt. Deployment installers
intentionally omit pytest and coverage packages. Before opening a pull request,
run pytest -q and the host browser gate with npm run validate:pr.
CI enforces a 55% whole-package coverage floor and a 45% floor for the
biodynamic calculation core; both are intended to be raised incrementally.
Sensorius is intended for a trusted private LAN. The default HTTP bind is
0.0.0.0, so permitted devices on that LAN can reach the UI, and the
application does not provide complete login/session protection for every
state-changing route. Do not expose Sensorius HTTP or MQTT ports directly to
the Internet. Use firewall or VLAN controls and a VPN for remote access; set
SENSORIUS_HTTP_HOST=127.0.0.1 when access should remain on the host. See
SECURITY.md for the complete deployment boundary and secret-storage limits.
For Raspberry Pi deployments that will onboard Nodus devices over Wi-Fi, best practice is to have the Raspberry Pi use a 2.4 GHz network path.
- Best practice: configure the Raspberry Pi to use a 2.4 GHz Wi-Fi network before running Sensorius setup or onboarding Nodus devices.
- If your router provides separate SSIDs for 2.4 GHz and 5 GHz, connect the Raspberry Pi to the 2.4 GHz SSID.
- If the Raspberry Pi is not headless, you can configure Wi-Fi locally on the Pi before starting Sensorius setup.
Some routers use one SSID for both 2.4 GHz and 5 GHz bands. In that case, a headless Raspberry Pi may join the 5 GHz band, while Nodus devices remain limited to 2.4 GHz.
- On single-SSID multi-frequency routers, the recommended Sensorius setup is to connect the Raspberry Pi to the router by ethernet.
- With ethernet connected, the Raspberry Pi can still communicate with Nodus devices on the router's 2.4 GHz Wi-Fi network.
- If ethernet is not available, configure the Raspberry Pi locally so its Wi-Fi connection uses the router's 2.4 GHz radio before running headless.
- Router-specific band steering, isolation, or roaming behavior is outside the scope of Sensorius setup.
Home Assistant option:
+------------------------+ +------------------+
| Sensorius Hub |<---->| Home Assistant |
| (FastAPI + MQTT + DB) | | (optional) |
+------------------------+ +------------------+
^ ^
| |
+-------+ +-------+
| |
v v
+---------------+ +----------------+
| Nodus Sensor | | Nodus Switch |
+---------------+ +----------------+
farmOS export option:
+------------------------+ +------------------+
| Sensorius Hub |----->| farmOS |
| (FastAPI + MQTT + DB) | | (optional) |
+------------------------+ +------------------+
^ ^
| |
+-------+ +-------+
| |
v v
+---------------+ +----------------+
| Nodus Sensor | | Nodus Switch |
+---------------+ +----------------+
- Setup:
docs/setup.md - Operations:
docs/operations.md - Architecture:
docs/architecture.md - Configuration and
.env:docs/configuration.md - MQTT and Nodus runtime:
docs/mqtt.md - Home Assistant integration:
docs/homeassistant.md - FarmOS integration:
docs/farmos.md - Sensors and metrics:
docs/sensors.md - Hardware and GPIO mapping:
docs/hardware.md - Switch automations:
docs/automations.md - Third-party and binary notices:
THIRD_PARTY_NOTICES.md
For a fuller narrative overview of system behavior and design goals, see ABOUT.md.
Copyright (c) 2026 T.W. Farley, dba Peace Hill Studios.
Sensorius is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License, version 3 only
(GPL-3.0-only), as published by the Free Software Foundation.
Sensorius is distributed without any warranty, including the implied warranties of merchantability or fitness for a particular purpose. See LICENSE for the full terms.
This change applies to revisions distributed with this GPLv3 notice. Versions previously distributed under the BSD 2-Clause License remain available under those terms; the change does not revoke permissions already granted for those versions. Updating an existing clone to a GPLv3 revision brings in code covered by the new license.
Third-party components and assets retain their own licenses and notices; see THIRD_PARTY_NOTICES.md.
- System Architecture: TW Farley
- Implementation and Coding: TW Farley and ChatGPT/Codex