Skip to content

Commit d2f1e1a

Browse files
committed
reorganize project
1 parent 43dc56f commit d2f1e1a

27 files changed

Lines changed: 3096 additions & 99 deletions

README.md

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,10 @@ The small screen switches automatically between displayed pages.
1919
- Water temperature
2020

2121
## Monitor programm on host system
22-
Deamon programm constantly checking system vitals with
23-
24-
`$ nvidia-smi --query-gpu=temperature.gpu,utilization.gpu,power.draw --format=csv -l 5`
25-
`$ sensors -A -u`
26-
`$ liquidctl status`
27-
28-
### Compile
29-
`$ make monitor`
30-
31-
### Run watchdog
32-
`$ ./monitor`
33-
34-
Monitor programm can also runned in background with `$ ./monitor &`.
35-
For developing or debugging `$ ./monitor -D`.
36-
If the monitor programm can't find the device, check for /dev/ttyUSB0. It's
37-
used as an default value. Changes with `$ ./monitor -p {device-path}`.
38-
22+
Deamon programm constantly checking system vitals. Check host folder for more
23+
infos.
3924

4025

4126
## nodemcu
42-
Simple solution for showing system vitals. An nodemcu would be an overkill, but
43-
an Arduino should do the same thing. (with some code changes)
44-
45-
### Connecting the display
46-
- D1 => SDA
47-
- D2 => SCK
48-
- 3V => VCC
49-
- G => GND
50-
51-
### Compile
52-
`$ make pio`
53-
54-
## Upload to nodemcu
55-
`$ make upload`
56-
57-
## Libaries used:
58-
- u8g2 Display libary - https://github.com/olikraus/u8g2
27+
Simple solution for showing system vitals. Check arduino folder for more
28+
infos.

Doxyfile renamed to arduino/Doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ OUTPUT_DIRECTORY = doxy
8585
# control the number of sub-directories.
8686
# The default value is: NO.
8787

88-
CREATE_SUBDIRS = NO
88+
CREATE_SUBDIRS = YES
8989

9090
# Controls the number of sub-directories that will be created when
9191
# CREATE_SUBDIRS tag is set to YES. Level 0 represents 16 directories, and every
@@ -96,7 +96,7 @@ CREATE_SUBDIRS = NO
9696
# Minimum value: 0, maximum value: 8, default value: 8.
9797
# This tag requires that the tag CREATE_SUBDIRS is set to YES.
9898

99-
CREATE_SUBDIRS_LEVEL = 8
99+
CREATE_SUBDIRS_LEVEL = 0
100100

101101
# If the ALLOW_UNICODE_NAMES tag is set to YES, Doxygen will allow non-ASCII
102102
# characters to appear in the names of generated files. If set to NO, non-ASCII

arduino/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: clean
2+
3+
all: pio
4+
5+
pio:
6+
pio run -e nodemcuv2
7+
8+
upload:
9+
pio run --target upload -e nodemcuv2
10+
11+
ci-check:
12+
test:
13+
local_test:
14+
pio test -e native
15+
16+
clean:
17+
pio run --target clean

arduino/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# nodemcu
2+
Simple solution for showing system vitals. An nodemcu would be an overkill, but
3+
an Arduino should do the same thing. (with some code changes)
4+
5+
## Connecting the display
6+
- D1 => SDA
7+
- D2 => SCK
8+
- 3V => VCC
9+
- G => GND
10+
11+
## Compile
12+
`$ make pio`
13+
14+
## Upload to nodemcu
15+
`$ make upload`
16+
17+
## Libaries used:
18+
- u8g2 Display libary - https://github.com/olikraus/u8g2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
#include <string>
1313

14-
#include "s_buffer.h"
14+
#include "../../lib/serial_protocol.h"
1515

1616
class SerialPort {
1717
private:
18-
s_buffer::buffer *received;
18+
serial_protocol::buffer *received;
1919
std::string err;
2020

2121
protected:

0 commit comments

Comments
 (0)