GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Cambridge-PAM/labsense: LabSENSE Project

BranchesTags
Open more actions menu

Latest commit

 

History

293 Commits
293 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
Analytics
Analytics
 
 
Balance
Balance
 
 
Consumables
Consumables
 
 
Labsense_Excel
Labsense_Excel
 
 
Labsense_SQL
Labsense_SQL
 
 
Labsense_Sensors
Labsense_Sensors
 
 
Waste
Waste
 
 
docs
docs
 
 
site
site
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.micropico
.micropico
 
 
.pylintrc
.pylintrc
 
 
.readthedocs.yml
.readthedocs.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
conftest.py
conftest.py
 
 
create_main_dashboard.py
create_main_dashboard.py
 
 
environment.yml
environment.yml
 
 
labsense_logo.png
labsense_logo.png
 
 
mkdocs.yml
mkdocs.yml
 
 

Repository files navigation

LabSense

Documentation Status

LabSense is a laboratory IoT monitoring and analytics platform for chemistry lab environments. It ingests live sensor streams, processes ChemInventory and waste data, and generates HTML dashboards for operations and reporting.

Architecture

[Raspberry Pi sensors]    -> MQTT/serial -> ingestion scripts         -> SQL Server (labsense)
[ChemInventory API]       -> HTTP        -> Labsense_SQL + Balance    -> SQL Server
[Waste Master workbook]   -> file        -> Waste processing           -> dashboard outputs
[Dashboard generators]    -> SQL/files   -> plots/*.html + plots/*.png/pdf

Repository Layout

Path Purpose
Labsense_SQL/ SQL Server ingestion and analytics dashboards (ChemInventory, consumption, fumehood, water, sen66)
Labsense_Sensors/ Raspberry Pi sensor publishers and helpers (fumehood, SEN66, water flow, device email/IP utilities)
Waste/ Waste normalization and hazard-code allocation workflow plus waste dashboards
Balance/ Balance integration scripts (serial weighing and ChemInventory update workflow)
Consumables/ Consumables and strain-calibration scripts
Labsense_Excel/ Legacy Excel-driven operational scripts
Analytics/ Analysis notebooks and case study notebooks/scripts
docs/ MkDocs documentation source
tests/ Project-level pytest suite
create_main_dashboard.py Generates plots/index.html linking discovered *dashboard.html files

Environment and Dependencies

The project is managed with Conda via environment.yml.

Core dependencies currently include:

  • Data and analytics: pandas, numpy, scipy, scikit-learn, matplotlib
  • Database/connectivity: pyodbc, sqlite
  • Integrations: paho-mqtt, requests, openpyxl, python-dotenv
  • Testing: pytest

Install:

git clone https://github.com/Cambridge-PAM/labsense.git
cd labsense
conda env create -f environment.yml
conda activate labsense

Configuration

Most SQL/processing scripts load variables from Labsense_SQL/.env.

Typical variables:

EMONCMS_API_KEY=your_emoncms_api_key
EMONCMS_BASE_URL=https://your_emoncms_host

CHEMINVENTORY_CONNECTION_STRING=your_cheminventory_api_token
CHEMINVENTORY_INSERT_TO_SQL=True

MQTT_SERVER=your_mqtt_broker_ip

SQL_SERVER=your_sql_server_instance
SQL_DATABASE=labsense
SQL_TRUSTED_CONNECTION=yes
SQL_ENCRYPTION=Optional

PLOTS_DIR=plots
LOG_LEVEL=INFO

Raspberry Pi sensor scripts use Labsense_Sensors/.env for hardware-specific settings.

Generating Dashboards

Run the dashboard generators:

python Labsense_SQL/ChemInventory_dashboard.py
python Labsense_SQL/consumption_dashboard.py
python Labsense_SQL/Fumehood_dashboard.py
python Labsense_SQL/water_dashboard.py
python Labsense_SQL/sen66_dashboard.py
python Waste/processWasteMaster.py
python create_main_dashboard.py

Outputs are written to plots/. Open plots/index.html to access the dashboard landing page.

Testing

pytest

Documentation

Build docs locally:

pip install -r docs/requirements.txt
mkdocs serve

Then open the local MkDocs URL (usually http://127.0.0.1:8000).

About

LabSENSE Project

Resources

Readme
CC0-1.0 license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.