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 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.
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
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