Skip to content

Commit 219dfb5

Browse files
committedMar 2, 2023
Improved m5stick client.
1 parent 9e35f0c commit 219dfb5

7 files changed

+27
-2
lines changed
 

‎README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Monitor / shut off your dive compressor with an ESP32 board.
44

5-
![Assembled Front](assets/front.png)
5+
![Assembled Front](assets/front.jpg)
66

77
## Parts list:
88

@@ -21,3 +21,10 @@ A detailed schematic will follow once I get around to it.
2121
I have now added web monitoring: Add your WiFi SSID / password into src/config.h, and the monitor will connect to the wireless network on startup. Then enter the IP address displayed on the screen into your mobile / desktop browser, and the monitoring page will load:
2222

2323
![Web Based Monitoring](assets/compressor_monitor_web.png)
24+
25+
## Update 2 March 2023
26+
27+
My experience is showing that monitoring and in particularly alerting works badly for the web based UI due to the monitoring thread being killed by the browser if the tab the UI is running is not active. The same goes for attempts to implement monitoring in an Android application - the power usage optimiser on modern phones tends to kill any background monitoring threads.
28+
For this reason I have implemented a [simple UI client on an inexpensive M5Stick development kit](m5_client/).
29+
30+
In addition to this I have added a crude estimation of the time left until the currently filling tank reaches the configured pressure limit. This is also used to start warning at a set time interval before the tank is full (default: 2 minutes).

‎assets/front.jpg

730 KB
Loading

‎assets/m5stick_api_url.png

59.1 KB
Loading

‎assets/m5stick_ui.jpg

233 KB
Loading

‎assets/m5stick_ui_warning.jpg

330 KB
Loading

‎m5_client/README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# M5Stick Client
2+
3+
Simple and inexpensive way to remotely monitor the status of the compressor:
4+
5+
![M5Stick UI](../assets/m5stick_ui.jpg)
6+
7+
![M5Stick UI with warning](../assets/m5stick_ui_warning.jpg)
8+
9+
10+
Runs on a [M5StickC](https://shop.m5stack.com/products/stick-c) ESP32 development kit.
11+
12+
It shows the status of the main components of the system as 4 green / red fields: pressure close to full / purge needed / battery low / ignition off. In addition to this it shows the current pressure and time until purge is needed / estimated time until full (whichever is shorter) in numerical values.
13+
14+
Use https://flow.m5stack.com/ to edit / upload. The current version seems to have problems running in Chrome, but Firefox is working.
15+
16+
Needs a WiFi network setup on the m5stick, and the URL for the compressor monitor's API to be edited in the program:
17+
18+
![API URL location](../assets/m5stick_api_url.png)

‎m5_client/compressor-monitor-client.m5f

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.