I have now set up the particle counter and a NUC to run the software I made to view and display the current data coming from the counter. We will however need to continue to turn the counter back on to keep counting if it stops running. We should be able to tell via the interface i made if it stopped (past 6 hours or other plots are blank).
Anyone on the subnet can access this page if it is running, see the pdf's below for how it should look.
Access particle counter page: http://192.168.56.1:8050
Access the particle counter data page: http://192.168.248.101/
(Both are only available on the subnet)
Notes:
- Hitting Stop on the top left of the screen stops the entire server. ONLY Press this if you intend to turn off the server completely!
- To restart the server please go to the NUC machine in the EE lab, find a terminal, and run
- open VScode and a PowerShell terminal (preferred for now)
- python particle_server.py
- Open a PowerShell terminal on Windows (may give errors)
- cd Documents/particle_bot
- python particle_server.py
- To switch to light theme please go into particle_server.py and change dark_theme to False
- monitor = ParticleMonitor("192.168.248.101", dark_theme=False)
- If you think new data is available and the server hasn't refreshed yet, please hit refresh at the top right corner.
- The tab you have open will say "updating" once this is finished you may need to refresh the page for new data manually
- The Auto-Update Interval can be changed accordingly. It adjusts how frequently the data thread pulls new data from the particle counter
- It auto-sets to 1 minute when the whole server is restarted so please set it back to 5 minutes if you need to restart
- There are Mattermost notifications if particles exceed a set threshold but this must still be tested further.
- To adjust alarm values go to particle_server.py and adjust the values
- monitor.alarm_03_um = 40
- monitor.alarm_05_um = 40
- monitor.alarm_1_um = 40