make some Reame

This commit is contained in:
Myk 2024-04-05 19:24:13 +03:00
parent 90fde56762
commit 05bfa40e4f
4 changed files with 67 additions and 6 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.clang_complete .clang_complete
.ccls .ccls
/logs/ /logs/
/src/http_static.cpp

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
# Default target
all: build
flash: precompile_static pio_upload
build: precompile_static pio_build
precompile_static:
./populate_static.py
pio_build:
pio run
pio_upload:
pio run -t upload

View File

@ -5,7 +5,52 @@
+ https://github.com/bfaliszek/CJMCU-8118_InfluxDB + https://github.com/bfaliszek/CJMCU-8118_InfluxDB
** Levels ** Installation
It requires [[https://platformio.org/][platformio]] and =gnu make=, obviously.
#+NAME: build
#+BEGIN_SRC sh :eval never
make # or `make build`
#+END_SRC
#+NAME: flash the firmware
#+BEGIN_SRC sh :eval never
make flash
#+END_SRC
** Usefull info for future
*** Levels
#+BEGIN_EXAMPLE #+BEGIN_EXAMPLE
In the event of TVOC issues, inspections should be carried out to find the root cause of the problem and address it as exposure to the VOCs may harm health. Indoor VOC levels up to 350 ppb are acceptable. However they should not exceed 500ppb. CO2 ppm range of 450 to 2000 ppm (parts per million). In the event of TVOC issues, inspections should be carried out to find
the root cause of the problem and address it as exposure to the VOCs
may harm health. Indoor VOC levels up to 350 ppb are
acceptable. However they should not exceed 500ppb. CO2 ppm range of
450 to 2000 ppm (parts per million).
#+END_EXAMPLE #+END_EXAMPLE
*** Particulate matter
+ PM1 :: are extremely fine particulates with a diameter of fewer than 1 microns.
+ PM2.5 :: (also known as fine particles) have a diameter of less than 2.5 microns.
+ PM10 :: means the particles have a diameter less than 10 microns, or 100 times smaller than a millimeter.
** TODO
In gneral I want the stack to be pluggable as much as possible. The current scope of wanted readings is not including any plans on it's implementations.
+ [X] Thermometer :: provided by HDC1080
+ [X] Humidity sensor :: provided by HDC1080
+ [-] Particulate matter
- [ ] PM2.5 :: i'd to start with it
- [ ] PM10
- [ ] PM1 :: I might need it to indoor mod
+ [ ] Preasure sensor
+ [ ] Seismograph
+ [ ] Ionising radiation sensor
+ [ ] UV-sensor
+ [-] Gas sensors:
- [X] CO2 :: eCO2 provided by CCS811
- [X] TVOC :: eTVOC provided by CCS811
- [ ] CO
- [ ] H2S
- [ ] NH3
- [ ] O2
- [ ] LEL
- [ ] smoke and fire

View File

@ -2,9 +2,9 @@
namespace http_static { namespace http_static {
const char index_html[] PROGMEM = R"rawliteral( const char index_html[] PROGMEM = R"rawliteral(
#include "./static/index.html" %index.html%
)rawliteral"; )rawliteral";
const char sensor_things_resp[] PROGMEM = R"rawliteral( const char sensor_things_resp[] PROGMEM = R"rawliteral(
#include "./static/sensor_things_tmpl.json"%" %sensor_things_tmpl.json%
)rawliteral"; )rawliteral";
} }