Skip to content

Latest commit

 

History

History
41 lines (21 loc) · 1.89 KB

README.md

File metadata and controls

41 lines (21 loc) · 1.89 KB

Home DAS

Home Das Bar Chart

home_das is a rasberry pi based data acquisition system (DAS). This version focuses on monitoring and visualizing usage of a dosing tank pump.

Data Collection

Data is collected via a Pi-Plates DAQC2plate connected to a Raspberry Pi Model 4 B w/2GB of RAM.

In practice the max data rate of one channel of the DAQC2 is ~1000hz. With all 8 channels collecting, the data rate is ~250hz. It is possible to tweak the pi-plates DAQC2 python lib to increase the data rate, but this increases the chance that a data sample is garbage. For this application, the stock software is stable and the data rate is good enough. Looking further, these lines may offer insight into higher data rates and less cpu usage, although those data rates are high for the current use case.

UI Features

Pay Period Usage Statistics

Home Das Pay Period Usage

Total Usage by Weekday

Home Das Total Usage Bar Chart

Usage by Calendar Day

Home Das Usage By Calendar Day

Usage Logs

Home Das Usage Logs

UI Stack:

React based with nextjs backend

Files are is dashboard/pages

UI is run with systemd. Service is called home_das_server. Pages can be reloaded with sudo service restart home_das_server. systemd config file is in /lib/systemd/system/home_das_server.service

UI Server Structure

nextjs server is run on port 8000. nginx is used as a proxy and serves port 80 and static files from the nextjs server. nginx config lives in /etc/sites-enabled/home_das_server.com.conf