Pieter De Mil
5bd075e078
Add check on CO2 levels (<330, <400, >400)
2022-04-20 17:47:43 +02:00
Pieter De Mil
49d05af75e
Merge branch 'main' of https://github.com/controlco2/operame
2022-04-20 17:36:08 +02:00
Pieter De Mil
6da553be6f
add "first boot" check
2022-04-20 17:34:54 +02:00
Ronny Lam
b280f8de4b
Changed presentation in display of Temp and Hum.
2022-03-25 12:55:06 +01:00
Sander Vanhove
02888d3c54
Fix header file name
2021-10-06 15:22:21 +02:00
Sander Vanhove
56a53b0a1c
Add temp and humidity to rest message
2021-09-01 16:09:03 +02:00
ControlCO2.space
b1766c1b3f
Merge pull request #8 from SanderVanhove/feat/add-rest
...
Extend rest cert length
2021-08-27 15:06:57 +02:00
Sander Vanhove
31bab2ce25
Extend rest cert length
2021-08-26 16:35:14 +02:00
Pieter De Mil
4dbff9156d
bugfix: publish temperature and humidity to their own topics
2021-07-26 15:51:11 +02:00
Pieter De Mil
b6c24d252a
bugfix: check if the user wants to send temperature and humidity via MQTT
2021-07-26 15:41:51 +02:00
Pieter De Mil
d4dd03590e
Changed MQTT message template to fixed JSON payload, added temperature and humidity
2021-07-08 12:53:11 +02:00
Pieter De Mil
fee6d067e9
Fix MQTT
2021-07-06 17:59:48 +02:00
ControlCO2.space
f7de85e785
Merge branch 'main' into main
2021-06-26 10:41:51 +02:00
tomderyck
b467bda9eb
Added DHT22 sensor code
...
If DHT22 humidity sensor is connected, temp and hum is displayed.
2021-06-16 09:52:10 +02:00
ControlCO2.space
44867dc781
Merge pull request #1 from tomderyck/main
...
Logo update and Excel Data Streamer
2021-06-07 17:26:30 +02:00
SanderVanhove
441e494844
Add rest post functionality
2021-06-04 16:44:24 +02:00
tomderyck
de55b35627
Logo updated
...
ControlCO2 logo used
2021-06-03 10:57:59 +02:00
tomderyck
57860a9429
Modification for Excel Data Streamer
...
Modified the serial communication of CO2 values
2021-06-03 10:53:13 +02:00
Juerd Waalboer
b84a6d8b19
Flush serial buffers before sending 0x87
2021-03-13 19:04:19 +01:00
Juerd Waalboer
2807ee2647
Implement manual calibration (command 0x87)
2021-03-11 03:54:36 +01:00
Juerd Waalboer
29d873d268
Show message during SPIFFS format
...
Also moved startup order around so module error message can be localized
with user language.
2021-01-26 07:18:16 +01:00
Juerd Waalboer
69ddf8054a
Add basic i18n support and English translations
2021-01-26 06:28:14 +01:00
Juerd Waalboer
f76e092998
Use Dutch translation of WiFiSettings
2021-01-26 05:09:52 +01:00
Juerd Waalboer
d1942fcaa0
More bits to support >1 minute MQTT intervals
...
Oops, overlooked that 16 when copy/pasting the macro.
2021-01-02 19:19:25 +01:00
Juerd Waalboer
216534d105
Fix bug: OTA not enabled in portal
...
Thanks, Bertrik!
2020-12-30 16:45:52 +01:00
Juerd Waalboer
320bff7393
Bugfix: use portal uptime instead of MCU uptime for portal timeout
2020-12-27 22:25:41 +01:00
Juerd Waalboer
94c39eaf0d
Don't catch up with missed intervals
2020-12-27 21:10:38 +01:00
Juerd Waalboer
f4fe6e3a1e
Code cleanup
...
- Removed unused #define and 'using namespace'
- Moved magic literals to global const
- Reordered functions
- Changed timers in main loop to simple macro instead of Timer class
- Changed several identifiers
- Reformatted global variable assignments
2020-12-27 20:57:53 +01:00
Juerd Waalboer
a9242b549b
Remove useless line
...
Was visible for only 50 ms...
2020-12-27 20:25:29 +01:00
Juerd Waalboer
d2177e450f
Tiny refactor
2020-12-27 19:56:22 +01:00
Juerd Waalboer
5889fcdaa5
Smarter debouncing; act after key release
2020-12-27 19:37:39 +01:00
Juerd Waalboer
e70efe35d7
Display message before restarting
2020-12-26 18:09:11 +01:00
Juerd Waalboer
663816223b
Avoid possibility of using char* without initialization
2020-12-26 17:44:49 +01:00
Juerd Waalboer
fe392acfbd
Change type for consistency
...
(Now it's inconsistent with the char* in readBytes, but at least it's
consistent in this file...)
Thanks, supakeen!
Also changed the type for the returned value.
2020-12-26 17:39:10 +01:00
Juerd Waalboer
14f917b84f
Document special-case return values
...
Thanks, supakeen!
Additional thought: should maybe be an enum
2020-12-26 17:35:20 +01:00
Juerd Waalboer
7be2c6368c
Remove redundant check.
...
Thanks, supakeen!
2020-12-26 17:23:53 +01:00
Juerd Waalboer
7b989eda31
More detailed on-screen portal instructions
2020-12-26 03:42:57 +01:00
Juerd Waalboer
e9c6cd49ec
Portal instructions on screen
2020-12-23 23:15:14 +01:00
Juerd Waalboer
5687e04440
Don't publish invalid sensor readings to MQTT
2020-12-22 05:19:51 +01:00
Juerd Waalboer
e5167278ee
Ignore unknown response from AQC
...
Haven't seen any non-0x86 responses yet, but who knows...
2020-12-22 05:19:40 +01:00
Juerd Waalboer
8a3efb3061
Whitespace
2020-12-22 05:12:08 +01:00
Juerd Waalboer
c3671a07ad
Exit demo with demo button
2020-12-22 05:11:33 +01:00
Juerd Waalboer
7f0bb70a93
Refactor timed events
...
Also, I learned that empty () after [] are optional; reduces linenoise a little.
2020-12-22 03:48:41 +01:00
Juerd Waalboer
f4d1271109
Exit portal with portal button
2020-12-22 01:56:52 +01:00
Juerd Waalboer
468961e94c
Use lowercase variable name
...
There was no good technical reason for using an allcaps identifier for CO2.
2020-12-20 05:17:51 +01:00
Juerd Waalboer
49a624d358
Remove debug printf
2020-12-20 03:56:25 +01:00
Juerd Waalboer
420868585d
Support both AQC and MH-Z19B
2020-12-20 03:53:43 +01:00
Juerd Waalboer
6f4ac2b01b
Experimental support for mystery sensor
2020-12-15 02:25:24 +01:00
Juerd Waalboer
6c7bb2c4a3
Deal with weird MH-Z19(B?) version
...
This one, with version number 0436, has a magic "I'm still booting" value
of 436 PPM instead of 410 PPM.
Interestingly, another sensor with version 0430 returns 430 for an instant,
but then goes to 410. During the short 430-phase the clamped CO2 value is
actually 0, so it doesn't require checking.
2020-11-27 05:33:15 +01:00
Juerd Waalboer
0ab1ea28e6
Add logo
2020-11-25 01:55:40 +01:00