Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.8.1 #146

Merged
merged 79 commits into from
Nov 26, 2021
Merged

2.8.1 #146

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
0c17482
Update README.md
bfaliszek May 3, 2020
7d805e0
added SENDING_FREQUENCY_AIRMONITOR_interval
bfaliszek Jun 16, 2020
d121be1
Update Smogomierz.ino
bfaliszek Jun 16, 2020
8bb10e9
added SECOND_THP_MODEL and EMAIL
bfaliszek Jun 16, 2020
0284e1d
Update README.md
bfaliszek Jun 20, 2020
fc78f2d
Update webserver.h
bfaliszek Jun 20, 2020
bb3354d
added SECOND_THP - BME280
bfaliszek Jun 20, 2020
baa47da
added prerelease .bin - PMS/BME280
bfaliszek Jun 20, 2020
0505921
added SPS30 support at aqieco.cpp
bfaliszek Jun 22, 2020
4530e08
new AIRMONITORFORM_LINK
bfaliszek Jun 30, 2020
1d5ab93
fixed SPS30 issue?
bfaliszek Jun 30, 2020
6d08c6e
new prerelease_ESP8266_Smogomierz_2.8.0_SPS30 bin file
bfaliszek Jun 30, 2020
3e78e8e
Update Smogomierz.ino
bfaliszek Oct 12, 2020
0754c9c
Update Smogomierz.ino
KrystianWit Oct 12, 2020
c8614d5
Merge pull request #106 from KrystianWit/patch-1
bfaliszek Oct 13, 2020
aa134de
fix: metrics port is no longer 3000
galuszkak Nov 27, 2020
1790aaf
Merge pull request #108 from hackerspace-silesia/feature/fix-metrics
bfaliszek Nov 28, 2020
f1ddfd7
Update .gitignore
bfaliszek Dec 2, 2020
39db75c
default AIRMONITOR_GRAPH_ON = off
bfaliszek Dec 2, 2020
f8d698c
updated prerelease .bin files
bfaliszek Dec 2, 2020
c9297f6
01.2021 - libs update!
bfaliszek Jan 4, 2021
bb21c2a
Update README.md
bfaliszek Jan 4, 2021
a939773
Update README.md
bfaliszek Jan 4, 2021
ee90ad8
2.8.0 prerelease ESP8266 .bin's
bfaliszek Jan 4, 2021
1478b36
minor fix for ESP32 2.8.0
bfaliszek Jan 4, 2021
1a50a9e
HOMEKIT_SUPPORT init
bfaliszek Jan 4, 2021
27ffcd8
new cert!
bfaliszek Jan 27, 2021
a70cce5
Update WiFiManager.cpp
bfaliszek Jan 27, 2021
9ae788b
fixed fixed compilation issue on ESP32 issue on ESP32
bfaliszek Jan 27, 2021
b1f7685
init Apple HomeKit Support for ESP32!
bfaliszek Jan 27, 2021
a497937
added saving HomeKit pairing keys in ESP memory
bfaliszek Jan 28, 2021
59f1e2d
translation for TEXT_HOMEKIT_SUPPORT
bfaliszek Jan 28, 2021
62b2c78
Update prerelease_ESP32_Smogomierz_2.8.0_PMS_build_28.01.2021.bin
bfaliszek Jan 28, 2021
102d013
ESP32: use HTTP if HTTPS connection fails [for autoupdate options]
bfaliszek Jan 29, 2021
860f5b2
added TEXT_HOMEKIT_IS_PAIRED and TEXT_PAGE_HOMEKIT_RESET
bfaliszek Jan 29, 2021
f2e05da
Update Smogomierz.ino
bfaliszek Jan 29, 2021
6aab4a6
Update Smogomierz.ino
bfaliszek Feb 16, 2021
0bb2ede
ASYNC WEBSERVER - major update!
bfaliszek Feb 22, 2021
6e7e9a0
another async webserver update
bfaliszek Feb 22, 2021
bda1b3e
2.8.1 - full async webserver support - for ESP32 and ESP8266
bfaliszek Feb 23, 2021
1362fa6
Update README.md
bfaliszek Feb 23, 2021
441cad7
fixed issue with UART devices and AsyncWebServer
bfaliszek Feb 24, 2021
1183df0
init async adv mqtt page
bfaliszek Feb 25, 2021
5490ece
adv_mqtt_config for esp8266 update
bfaliszek Feb 25, 2021
cf5e356
2.8.1 build 26.02.2021
bfaliszek Feb 26, 2021
ed85019
Update autoupdate.cpp
bfaliszek Mar 2, 2021
d6b5fdd
added WiFi.hostname/setHostname(device_name)
bfaliszek Mar 9, 2021
f6f78de
Temporarily disable authentication
bfaliszek Mar 9, 2021
b8f2d21
Temporarily Disable Authentication
bfaliszek Mar 9, 2021
2ed3ba6
enable authentication!
bfaliszek Mar 10, 2021
3a3c3f7
transfer html and intl folders to the main folder
bfaliszek Apr 8, 2021
0afc98b
added airmonitor api-key support!
bfaliszek Apr 8, 2021
a6af8f8
Update default_intl.h
bfaliszek Apr 8, 2021
5ab8bc8
moved old .bin files to different folder
bfaliszek Apr 19, 2021
6b35d62
fixed airmonitor api key support?
bfaliszek Apr 19, 2021
19f8a3a
INFLUXDB_TOKEN max 128 chars
bfaliszek May 7, 2021
c17359f
19.07.2021 - 2.8.1 update
bfaliszek Jul 19, 2021
13cebdf
Optimization of heap memory usage. Down from 67% to 57% (or even 49%)
bfaliszek Jul 20, 2021
3d7d6d6
memory usage optimization
bfaliszek Sep 13, 2021
7bee540
added esp32 .bin file
bfaliszek Sep 13, 2021
3538c5a
Update .gitignore
bfaliszek Nov 5, 2021
1e538ce
renaming the webserver files
bfaliszek Nov 5, 2021
2f07f0a
.pio/
bfaliszek Nov 5, 2021
a234a53
Delete .pio/libdeps/esp32 directory
bfaliszek Nov 5, 2021
ee7a327
Delete .vscode directory
bfaliszek Nov 5, 2021
72f8ce2
libs update
bfaliszek Nov 5, 2021
a7fda1d
Merge branch 'dev' of https://github.com/hackerspace-silesia/Smogomie…
bfaliszek Nov 5, 2021
a8426fe
Update .gitignore
bfaliszek Nov 5, 2021
bd37859
fixed esp32 support
bfaliszek Nov 5, 2021
19ce267
Create SmoglyLogoTopMenu.png
bfaliszek Nov 5, 2021
7557fd2
fixed esp32 support
bfaliszek Nov 5, 2021
60d0450
Update airmonitor.cpp
bfaliszek Nov 6, 2021
37193f8
Update Smogomierz.ino
bfaliszek Nov 6, 2021
640fadd
prerelease 2.8.1
bfaliszek Nov 6, 2021
354c543
fixed LUFTDATEN support
bfaliszek Nov 22, 2021
630381b
file cleanup - 24.11.2021
bfaliszek Nov 24, 2021
ba55c5f
fixed issue with config services site and added DISABLE_SMOGLIST
bfaliszek Nov 26, 2021
3f69ef0
Update Smogomierz.ino
bfaliszek Nov 26, 2021
003ada4
2.8.1 bin files
bfaliszek Nov 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,12 @@ ENV/

# mypy
.mypy_cache/
.DS_Store
.vscode/arduino.json
.vscode/c_cpp_properties.json
.pio/
.vscode/
.pio/libdeps/esp32/Adafruit Unified Sensor/.github/workflows/githubci.yml
.pio/libdeps/esp32/Adafruit Unified Sensor/.piopm
.pio/libdeps/esp32/Adafruit_Sensor/.github/workflows/githubci.yml
.pio/libdeps/esp32/Adafruit_Sensor/.piopm
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,4 @@ Gotowe zestawy części potrzebnych do zbudowania własnego Smogly, dostępne s

## Roadmap

Główne zmiany planowane w kolejnych aktualizacjach. Poza wymienionymi poniżej zmianami, przy każdej aktualizacji staram się aktualizować wsyzstkie biblioteki i eliminować znalezione błędy.

+ [x] 2.7.6 - Aktualizacja bibliotek, drobne poprawki w działaniu, ekstremalna optymalizacja wykorzystywanej pamięci oraz dodanie wsparcia dla miernika temperatury - DS18b20
+ [x] 2.7.8 - Dodanie możliwości zmiany pinów dla mierników temperatury oraz poziomu pyłu
+ [ ] 2.8.0 - Jednoczesna obsługa dla dwóch mierników temperatury/wilgotności/ciśneinia oraz możliwość wyboru które dane mają być wykorzystywane
+ [ ] 2.8.5 - Możliwość wysyłania wszystkich danych z obu mierników temperatury/wilgotności/ciśneinia do zewnętrznych baz danych
Lista z głównymi zmianami planowanymi w kolejnych wersjach oprogramowania znajduje się [TUTAJ](https://docs.google.com/spreadsheets/d/1rpeKPuAakPwytqsNge7glb-UtNLumsx8-7kQvhxXOng/edit?usp=sharing). Poza wymienionymi w linkowanym arkuszu funkcjami, przy każdej aktualizacji staram się uaktualnić wsyzstkie wykorzystywane biblioteki i eliminować znalezione błędy.
Binary file added Smogly_Logo/SmoglyLogoTopMenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,687 changes: 1,451 additions & 236 deletions Smogomierz.ino

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
#pragma once

extern bool DEVICENAME_AUTO;
extern char DEVICENAME[32];
extern bool DISPLAY_PM1;
extern char LANGUAGE[12];
extern unsigned char SELECTED_LANGUAGE;

extern char THP_MODEL[12];
extern char DUST_MODEL[12];
extern bool FREQUENTMEASUREMENT;

extern bool SECOND_THP;
extern char SECOND_THP_MODEL[12];

extern char CONFIG_FIRST_THP_SDA[4];
extern char CONFIG_FIRST_THP_SCL[4];
extern unsigned char FIRST_THP_SDA;
extern unsigned char FIRST_THP_SCL;

extern char CONFIG_SECOND_THP_SDA[4];
extern char CONFIG_SECOND_THP_SCL[4];
extern unsigned char SECOND_THP_SDA;
extern unsigned char SECOND_THP_SCL;

extern char CONFIG_DUST_TX[4];
extern char CONFIG_DUST_RX[4];
extern unsigned char DUST_TX;
extern unsigned char DUST_RX;

extern unsigned char DUST_TIME;
extern unsigned char NUMBEROFMEASUREMENTS;

extern bool LUFTDATEN_ON;
extern bool SMOGLIST_ON;

extern bool AIRMONITOR_ON;
extern bool AIRMONITOR_GRAPH_ON;
extern char AIRMONITOR_API_KEY[48];
extern char LATITUDE[16];
extern char LONGITUDE[16];
extern char EMAIL[64];
extern short MYALTITUDE;

extern bool THINGSPEAK_ON;
extern bool THINGSPEAK_GRAPH_ON;
extern char THINGSPEAK_API_KEY[32];
extern unsigned short THINGSPEAK_CHANNEL_ID;
extern char THINGSPEAK_READ_API_KEY[32];

extern bool INFLUXDB_ON;
extern char INFLUXDB_VERSION[4];
extern char INFLUXDB_HOST[128];
extern uint16_t INFLUXDB_PORT;
extern char INFLUXDB_DATABASE[32];
extern char INFLUXDB_USER[32];
extern char INFLUXDB_PASSWORD[64];
extern char INFLUXDB_ORG[32];
extern char INFLUXDB_BUCKET[32];
extern char INFLUXDB_TOKEN[128];

extern bool MQTT_ON;
extern char MQTT_HOST[128];
extern uint16_t MQTT_PORT;
extern char MQTT_USER[32];
extern char MQTT_PASSWORD[64];

extern bool MQTT_IP_IN_TOPIC;
extern bool MQTT_DEVICENAME_IN_TOPIC;
extern bool MQTT_SLASH_AT_THE_BEGINNING;
extern bool MQTT_SLASH_AT_THE_END;

extern char MQTT_TOPIC_TEMP[64];
extern char MQTT_TOPIC_HUMI[64];
extern char MQTT_TOPIC_PRESS[64];
extern char MQTT_TOPIC_PM1[64];
extern char MQTT_TOPIC_PM25[64];
extern char MQTT_TOPIC_PM10[64];
extern char MQTT_TOPIC_AIRQUALITY[32];

extern bool AQI_ECO_ON;
extern char AQI_ECO_HOST[64];
extern char AQI_ECO_PATH[64];

extern unsigned char SENDING_FREQUENCY;
extern unsigned char SENDING_DB_FREQUENCY;
extern bool DEEPSLEEP_ON;

extern bool DEBUG;
extern bool AUTOUPDATE_ON;

extern bool CONFIG_AUTH;
extern char CONFIG_USERNAME[64];
extern char CONFIG_PASSWORD[128];

extern char MODEL[12];


extern bool HOMEKIT_SUPPORT;

const char HOMEKIT_PASSWORD[16] PROGMEM = "111-11-111";


#ifdef DUSTSENSOR_PMS5003_7003_BME280_0x76 || DUSTSENSOR_PMS5003_7003_BME280_0x77
const char PMSENSORVERSION[] PROGMEM = "PMS";
#elif defined DUSTSENSOR_SDS011_21
const char PMSENSORVERSION[] PROGMEM = "SDS";
#elif defined DUSTSENSOR_HPMA115S0
const char PMSENSORVERSION[] PROGMEM = "HPMA115S0";
#elif defined DUSTSENSOR_SPS30
const char PMSENSORVERSION[] PROGMEM = "SPS30";
#else // If no dust sensor has been defined - use DUSTSENSOR_PMS5003_7003_BME280_0x76
const char PMSENSORVERSION[] PROGMEM = "PMS";
#endif

extern char SERVERSOFTWAREVERSION[32];
extern char CURRENTSOFTWAREVERSION[32];
#if defined(ARDUINO_ARCH_ESP8266)
const char SOFTWAREVERSION[] PROGMEM = "2.8.1 build " __TIME__ " " __DATE__;
const char HARDWAREVERSION[] PROGMEM = "1.0 - ESP8266";
#elif defined(ARDUINO_ARCH_ESP32)
const char SOFTWAREVERSION[] PROGMEM = "2.8.1 build " __TIME__ " " __DATE__;
const char HARDWAREVERSION[] PROGMEM = "2.0 - ESP32";

#endif
File renamed without changes.
109 changes: 64 additions & 45 deletions defaultConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,110 +3,129 @@
bool DEVICENAME_AUTO = true;
char DEVICENAME[32] = "Smogly1"; // Bez polskich znakow!! // Without Polish letters!!
bool DISPLAY_PM1 = false;
char LANGUAGE[32] = "english"; // english or polish
int SELECTED_LANGUAGE = 1; // en - 1; pl - 2
char LANGUAGE[12] = "english"; // english or polish
unsigned char SELECTED_LANGUAGE = 1; // en - 1; pl - 2

char THP_MODEL[32] = "Non";
char DUST_MODEL[32] = "Non";
char THP_MODEL[12] = "Non";
char DUST_MODEL[12] = "Non";
bool FREQUENTMEASUREMENT = false;

bool SECOND_THP = false;
char SECOND_THP_MODEL[12] = "Non";

#ifdef ARDUINO_ARCH_ESP8266
char CONFIG_FIRST_THP_SDA[8] = "D3";
char CONFIG_FIRST_THP_SCL[8] = "D4";
int FIRST_THP_SDA = 0; // D3
int FIRST_THP_SCL = 2; // D4
char CONFIG_FIRST_THP_SDA[4] = "D3";
char CONFIG_FIRST_THP_SCL[4] = "D4";
unsigned char FIRST_THP_SDA = 0; // D3
unsigned char FIRST_THP_SCL = 2; // D4
#elif defined ARDUINO_ARCH_ESP32
char CONFIG_FIRST_THP_SDA[8] = "D16";
char CONFIG_FIRST_THP_SCL[8] = "D17";
int FIRST_THP_SDA = 16; // D16
int FIRST_THP_SCL = 17; // D17
char CONFIG_FIRST_THP_SDA[4] = "D4";
char CONFIG_FIRST_THP_SCL[4] = "D5";
unsigned char FIRST_THP_SDA = 4; // D16
unsigned char FIRST_THP_SCL = 5; // D17
#endif

char CONFIG_SECOND_THP_SDA[8] = "D5";
char CONFIG_SECOND_THP_SCL[8] = "D6";
int SECOND_THP_SDA = 14; // D5
int SECOND_THP_SCL = 12; // D6
#ifdef ARDUINO_ARCH_ESP8266
char CONFIG_SECOND_THP_SDA[4] = "D5";
char CONFIG_SECOND_THP_SCL[4] = "D6";
unsigned char SECOND_THP_SDA = 14; // D5
unsigned char SECOND_THP_SCL = 12; // D6
#elif defined ARDUINO_ARCH_ESP32
char CONFIG_SECOND_THP_SDA[4] = "D22";
char CONFIG_SECOND_THP_SCL[4] = "D23";
unsigned char SECOND_THP_SDA = 22; // D5
unsigned char SECOND_THP_SCL = 23; // D6
#endif

char CONFIG_DUST_TX[8] = "D1";
char CONFIG_DUST_RX[8] = "D2";
int DUST_TX = 5; // D1
int DUST_RX = 4; // D2
#ifdef ARDUINO_ARCH_ESP8266
char CONFIG_DUST_TX[4] = "D1";
char CONFIG_DUST_RX[4] = "D2";
unsigned char DUST_TX = 5; // D1
unsigned char DUST_RX = 4; // D2
#elif defined ARDUINO_ARCH_ESP32
char CONFIG_DUST_TX[4] = "D18";
char CONFIG_DUST_RX[4] = "D19";
unsigned char DUST_TX = 18; // D1
unsigned char DUST_RX = 19; // D2
#endif

/*
ESP8266
13 - D7
15 - D8
*/

int DUST_TIME = 1;
int NUMBEROFMEASUREMENTS = 10;
unsigned char DUST_TIME = 1;
unsigned char NUMBEROFMEASUREMENTS = 10;

bool LUFTDATEN_ON = false;
bool SMOGLIST_ON = true;

bool AIRMONITOR_ON = false;
bool AIRMONITOR_GRAPH_ON = true;
bool AIRMONITOR_GRAPH_ON = false;
char AIRMONITOR_API_KEY[48] = "";
char LATITUDE[16] = "50.263911";
char LONGITUDE[16] = "18.995711";
int MYALTITUDE = 271;
char EMAIL[64] = "email@mail.pl";
short MYALTITUDE = 271;

bool THINGSPEAK_ON = false;
bool THINGSPEAK_GRAPH_ON = false;
char THINGSPEAK_API_KEY[32] = "WRITE_API_KEY";
int THINGSPEAK_CHANNEL_ID = 0;
unsigned short THINGSPEAK_CHANNEL_ID = 0;
char THINGSPEAK_READ_API_KEY[32] = "READ_API_KEY";

bool INFLUXDB_ON = false;
char INFLUXDB_VERSION[16] = "1"; // 1 (for 1.x version) or 2 for 2.0 or later
char INFLUXDB_VERSION[4] = "1"; // 1 (for 1.x version) or 2 for 2.0 or later
char INFLUXDB_HOST[128] = "INFLUXDB_ADRESS";
uint16_t INFLUXDB_PORT = 8086;
char INFLUXDB_DATABASE[64] = "mydb";
char INFLUXDB_USER[64] = "username";
char INFLUXDB_DATABASE[32] = "mydb";
char INFLUXDB_USER[32] = "username";
char INFLUXDB_PASSWORD[64] = "password";
char INFLUXDB_ORG[64] = "myOrg";
char INFLUXDB_BUCKET[64] = "myBucket";
char INFLUXDB_TOKEN[64] = "myToken";
char INFLUXDB_ORG[32] = "myOrg";
char INFLUXDB_BUCKET[32] = "myBucket";
char INFLUXDB_TOKEN[128] = "myToken";

bool MQTT_ON = false;
char MQTT_HOST[128] = "MQTT_ADRESS";
uint16_t MQTT_PORT = 1883;
char MQTT_USER[64] = "username";
char MQTT_USER[32] = "username";
char MQTT_PASSWORD[64] = "password";

bool MQTT_IP_IN_TOPIC = false;
bool MQTT_DEVICENAME_IN_TOPIC = true;
bool MQTT_SLASH_AT_THE_BEGINNING = true;
bool MQTT_SLASH_AT_THE_END = true;

char MQTT_TOPIC_TEMP[128] = "sensor/temperature";
char MQTT_TOPIC_HUMI[128] = "sensor/humidity";
char MQTT_TOPIC_PRESS[128] = "sensor/pressure";
char MQTT_TOPIC_PM1[128] = "sensor/PM1";
char MQTT_TOPIC_PM25[128] = "sensor/PM2.5";
char MQTT_TOPIC_PM10[128] = "sensor/PM10";
char MQTT_TOPIC_AIRQUALITY[128] = "airquality";
char MQTT_TOPIC_TEMP[64] = "sensor/temperature";
char MQTT_TOPIC_HUMI[64] = "sensor/humidity";
char MQTT_TOPIC_PRESS[64] = "sensor/pressure";
char MQTT_TOPIC_PM1[64] = "sensor/PM1";
char MQTT_TOPIC_PM25[64] = "sensor/PM2.5";
char MQTT_TOPIC_PM10[64] = "sensor/PM10";
char MQTT_TOPIC_AIRQUALITY[32] = "airquality";

bool AQI_ECO_ON = false;
char AQI_ECO_HOST[128] = "???.aqi.eco";
char AQI_ECO_HOST[64] = "???.aqi.eco";
char AQI_ECO_PATH[64] = "/u/???";

int SENDING_FREQUENCY = 3;
int SENDING_DB_FREQUENCY = 3;
unsigned char SENDING_FREQUENCY = 3;
unsigned char SENDING_DB_FREQUENCY = 3;
bool DEEPSLEEP_ON = false;

bool DEBUG = false;
#ifdef ARDUINO_ARCH_ESP8266
bool AUTOUPDATE_ON = false;
bool AUTOUPDATE_ON = true;
#elif defined ARDUINO_ARCH_ESP32
bool AUTOUPDATE_ON = true;
#endif

bool CONFIG_AUTH = false;
char CONFIG_USERNAME[64] = "admin";
char CONFIG_PASSWORD[256] = "password";
char CONFIG_PASSWORD[128] = "password";

char MODEL[32] = "white";
char MODEL[12] = "white";
float calib1 = 1.0;
float calib2 = 1.0;

bool HOMEKIT_SUPPORT = false;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading