eisbaeeer / co2light Goto Github PK
View Code? Open in Web Editor NEWCO2 traffic light
License: Other
CO2 traffic light
License: Other
Hi,
After doing the OTA update from 2.71 I noticed that my CO2light appears to be left disfunctional. I then disassembled it and manually flashed version 2.71. Eventually the CO2light came back to live. I did some tests with all the following versions and it turned out that I can flash my way up to version 3.0 without any problem. Manually flashing 3.1 again left me with a dead light. I have erased the flash prior to flashing a new version every time.
There have been no errors during the flashing process, so I guess there is something wrong with the firmware.
`
%esptool.py -p /dev/tty.usbserial-44140 write_flash -fm dio 0x00000 nodemcuv2_firmware_31.bin
esptool.py v4.7.0
Serial port /dev/tty.usbserial-44140
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: bc:ff:4d:19:c1:5e
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000bcfff...
Compressed 773536 bytes to 586764...
Wrote 773536 bytes (586764 compressed) at 0x00000000 in 56.8 seconds (effective 109.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
`
Hello,
i just updated to 2.9 and now i got on the startpage:
null null null 192.168.178.xxx
Also on page Humidity, Temp, and pressure i got first line null and other Line the measured data. Only on pge CO2 there is CO2 and the Data.
Running on Nodemcu v2
Changing from random client.-id to MAC-Address
The MQTT password is visible in configuration.
Supporting different types of displays would be nice.
SH110X displays are pin compatible with the used SSD1306 displays.
Changes made (substituted, not yet configurable):
-#include <Adafruit_SSD1306.h>
+#include <Adafruit_SH110X.h>
-Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
+Adafruit_SH1106G display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
-if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
- Serial.println(F("SSD1306 allocation failed"));
+if(!display.begin(0x3C, true)) {
+ Serial.println(F("SH1106G allocation failed"));
-display.setTextColor(WHITE);
+display.setTextColor(SH110X_WHITE);
Adding support for SHT3x sensor for Humidity & Temperature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.