Compare commits

...
Author SHA1 Message Date
TD-er fe6e911f6f automatically updated release notes for mega-20200913 2020-09-13 00:11:35 +02:00
TD-erandGitHub 681048d39f Merge pull request #2959 from TD-er/feature/gitpod-setup
Add gitpod config
2020-09-12 19:21:00 +02:00
TD-erandGitHub 5aa76d5d8a Merge branch 'mega' into feature/gitpod-setup 2020-09-12 19:09:12 +02:00
TD-erandGitHub ecb4bf90c2 Merge pull request #3250 from TD-er/bugfix/controller_http_advanced
[HTTP Advanced] Do not percent-encode body (#1306)
2020-09-12 18:04:00 +02:00
TD-er 3fea6bfe92 [Gitpod] Apparently Gitpod still uses Python 2.7
pip install -U platformio to make it Python version independent.
2020-09-12 18:03:09 +02:00
TD-er e49e221c19 [Gitpod] Change init: into before: 2020-09-12 16:18:40 +02:00
TD-er 50f0b28a96 [Gitpod] Use pip3 as we need Python3 2020-09-12 16:08:52 +02:00
TD-er 713bb44733 Restore Requirements.txt after merge 2020-09-12 15:51:33 +02:00
TD-erandGitHub b8339b4795 Merge branch 'mega' into feature/gitpod-setup 2020-09-12 15:47:14 +02:00
TD-er a341cd2f25 [PIO] Set minimum PlatformIO library to 5.0.1
Does save extra update step, as ESP32 already demands PIO 5 as minimum version.
2020-09-12 15:14:21 +02:00
TD-erandGitHub b8495a5e26 Merge branch 'mega' into bugfix/controller_http_advanced 2020-09-12 14:08:30 +02:00
TD-er 5f3d5fda30 [ESP32] Core 2.0.0 released 2020-09-11 22:50:47 +02:00
Gijs Noorlander 45395a6bca [VCC Build] Strip Servo, Blynk and Zabbix from test build to make it fit. 2020-09-11 13:28:00 +02:00
Gijs Noorlander 52ecb96977 [Cleanup] Reduce memory usage when using ControllerSettings struct 2020-09-11 12:15:47 +02:00
Gijs Noorlander 9b4c796062 [C011] Split multiline headers + also parse url
Allowing to use variables in the URL
2020-09-11 12:14:36 +02:00
Gijs Noorlander fcc6063264 [C011] Improve logging + connection tracking. 2020-09-10 00:09:15 +02:00
Gijs Noorlander 6a616e3197 [Travis] Disable core 2.4.2 builds as Travis can't install it anymore
For some strange reason....

Build log:
```
$ PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e $ENV
Processing minimal_core_242_ESP8266_1M_OTA (platform: https://github.com/TD-er/platform-espressif8266.git#patch/v1.8.0_Puya; board: esp01_1m; framework: arduino)
--------------------------------------------------------------------------------
Platform Manager: Installing git+https://github.com/TD-er/platform-espressif8266.git#patch/v1.8.0_Puya
git version 2.27.0
Cloning into '/home/travis/.platformio/.cache/tmp/pkg-installing-aktun99x'...
Platform Manager: espressif8266 @ 1.8.0+sha.9ffc857 has been installed!
The platform 'https://github.com/TD-er/platform-espressif8266.git#patch/v1.8.0_Puya' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing toolchain-xtensa @ ~1.40802.0
Downloading...
Unpacking...
Tool Manager: toolchain-xtensa @ 1.40802.0 has been installed!
Tool Manager: Installing framework-arduinoespressif8266 @ 2.20402.4-puya
Tool Manager: Warning! More than one package has been found by framework-arduinoespressif8266 @ 2.20402.4-puya requirements:
 - platformio/framework-arduinoespressif8266 @ 3.20704.0
 - jason2866/framework-arduinoespressif8266 @ 2.7.4.1
Tool Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Error: Could not find the package with 'framework-arduinoespressif8266 @ 2.20402.4-puya' requirements for your system 'linux_x86_64'
The command "PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e $ENV" exited with 1.
```

Maybe @jason2866 does have an idea?
2020-09-09 16:55:43 +02:00
TD-erandGitHub 26aec8999a Document hardware bug on Wemos DHT shield (#2569) 2020-09-09 16:42:20 +02:00
Gijs Noorlander c33e98f8d8 [C011] Fix build issue for older ESP8266 core versions 2020-09-09 16:01:07 +02:00
Gijs Noorlander 63c4dfddc0 [C011] Use ESP8266HTTPClient library 2020-09-09 15:16:51 +02:00
Gijs Noorlander 95bef799c1 [RN2483] Call LoRaWAN module reset when LoRaWAN stack hangs (#3225 )
See #3225
2020-09-09 00:01:39 +02:00
Gijs Noorlander 79856d8da1 [Cleanup] Reduce memory usage on load/save C018 LoRaWAN RN2483 controller 2020-09-08 23:59:56 +02:00
Gijs Noorlander cf4ef0b172 Merge remote-tracking branch 'origin/bugfix/controller_http_advanced' into bugfix/controller_http_advanced 2020-09-08 17:44:11 +02:00
Gijs Noorlander 09cc6b4fb1 [HTTP Advanced] Optimize load/save settings + add send binary option. 2020-09-08 17:43:52 +02:00
TD-erandGitHub 1a0fece45a Merge pull request #3242 from ToniA/HeatpumpIR
HeatpumpIR support for ESP32
2020-09-08 13:55:28 +02:00
TD-erandGitHub 96c7f11473 Merge branch 'mega' into HeatpumpIR 2020-09-08 13:55:20 +02:00
TD-erandGitHub 89e848c576 Merge branch 'mega' into bugfix/controller_http_advanced 2020-09-08 13:23:44 +02:00
TD-erandGitHub 0e42226a46 Merge pull request #3249 from TD-er/bugfix/plugin_timer_in
[Scheduler] Fix PLUGIN_TIMER_IN not being called (#3247)
2020-09-08 13:23:30 +02:00
Gijs Noorlander 1ba290edc9 [HTTP Advanced] Do not percent-encode body (#1306)
The replaced values are percent-encoded, which causes issues like described here: https://github.com/letscontrolit/ESPEasy/issues/1306#
2020-09-08 13:21:27 +02:00
Gijs Noorlander da36ad7f2a [Docs] Add some documentation on C011 Generic HTTP Advanced 2020-09-08 09:40:53 +02:00
Gijs Noorlander 7cbe105eaf [Scheduler] Fix PLUGIN_TIMER_IN not being called (#3247)
Fixes: #3247

The wrong timer ID was scheduled, so it was never dealt with.
2020-09-07 15:52:32 +02:00
TD-erandGitHub 3b8b34586e Merge pull request #3243 from TD-er/feature/1M_serswitch_build
[build] Add build definition for 1M with Serial Switch.
2020-09-07 09:36:35 +02:00
TD-erandGitHub bf05fa4794 Merge branch 'mega' into feature/1M_serswitch_build 2020-09-07 09:36:23 +02:00
Gijs Noorlander 32beede7bf Include debug logs and other removed features to reduce size LC_TECH_1M 2020-09-06 22:33:47 +02:00
TD-erandGitHub 1bb3af165f [Arduino IDE] Fix relative path for includes
In NetworkState.h
As reported [on the forum](https://www.letscontrolit.com/forum/viewtopic.php?p=46531#p46531)
2020-09-06 17:07:55 +02:00
Gijs Noorlander 69d013b510 [build] Add Stable controller set to hard_LCtech_relay_x2_1M build 2020-09-05 14:30:24 +02:00
Gijs Noorlander 5ea6cb276e [build] Add build definition for 1M with Serial Switch.
As discussed [on the forum](https://www.letscontrolit.com/forum/viewtopic.php?p=46459#p46459)
2020-09-03 09:14:23 +02:00
Toni db69ca4267 Build definition for image test_ESP32_IRExt_4M316k:
platformio run -e test_ESP32_IRExt_4M316k
2020-09-02 15:22:02 +03:00
Toni cfc614c573 HeatpumpIR 1.0.16 update 2020-09-02 15:20:31 +03:00
TD-erandGitHub f8cabe4d1e Merge pull request #3239 from mcspr/patch-1
Don't use `x == INFINITY` or `x == NAN`
2020-08-30 21:18:57 +02:00
TD-erandGitHub 8d2c2bc151 Merge pull request #3240 from tonhuisman/feature/disallow_minus_in_name
[Checks] Disallow operators in tasknames
2020-08-30 21:18:37 +02:00
TD-erandGitHub 20ac09fb29 Merge pull request #3241 from TD-er/bugfix/new_nothrow
[new new] Prepare for upcoming changes of 'new' in esp8266/Arduino
2020-08-30 21:18:10 +02:00
Gijs Noorlander 6f1dcae5e1 [new new] Prepare for upcoming changes of 'new' in esp8266/Arduino
See https://github.com/esp8266/Arduino/pull/7536
2020-08-30 20:19:42 +02:00
Ton Huisman d85e901e77 [Checks] Update docs 2020-08-30 16:33:57 +02:00
Ton Huisman 1514ab8d43 [Checks] Disallow round braces too 2020-08-30 15:06:08 +02:00
Ton Huisman 6dc20c0ce9 [Checks] Update docs, disallow curly braces 2020-08-30 15:02:39 +02:00
Ton Huisman 32869e1c78 [Checks] Disallow all operators in tasknames 2020-08-30 14:42:00 +02:00
Ton HuismanandGitHub a57b3ef644 Merge branch 'mega' into feature/disallow_minus_in_name 2020-08-30 13:57:46 +02:00
Ton Huisman 016667c4f8 [Checks] Disallow - (dash) in tasknames
This may *feel* like a breaking change, but using names with dash(es) doesn't properly work
2020-08-30 13:56:20 +02:00
Max ProkhorovandGitHub 7d2689b80c typo 2020-08-30 14:24:38 +03:00
Max ProkhorovandGitHub d329e432da Update _P005_DHT.ino 2020-08-30 13:59:18 +03:00
Max ProkhorovandGitHub 0396f1b893 == INFINITY / NAN are bogus
https://godbolt.org/z/qff7fh

isinf & isnan are sufficient
2020-08-30 13:53:06 +03:00
TD-erandGitHub 6622ac8b29 Merge pull request #3216 from TD-er/build/core_2_7_4
[Build] Change to esp8266/Arduino core 2.7.4
2020-08-29 16:58:27 +02:00
TD-erandGitHub 321aef329c Merge branch 'mega' into build/core_2_7_4 2020-08-29 16:58:20 +02:00
TD-er c625d91b38 automatically updated release notes for mega-20200829 2020-08-29 15:58:42 +02:00
TD-erandGitHub 6911664bb8 Merge pull request #3232 from mobrembski/fix_no_compiletime_defines_in_esp32
Fixed compile-time defines not working in ESP32 platform
2020-08-29 11:30:47 +02:00
TD-erandGitHub 654b7fa8f9 Merge branch 'mega' into fix_no_compiletime_defines_in_esp32 2020-08-27 11:48:55 +02:00
TD-erandGitHub 175089d82a Merge pull request #3231 from TD-er/bugfix/esp32_p2p
[Ethernet] Cleanup settings + fix UDP p2p when using Ethernet
2020-08-27 11:48:17 +02:00
Gijs Noorlander d003740c1a [Ethernet] Switch to WiFi when Ethernet adapter is not found
It may be not present or not configured correctly.
2020-08-27 02:30:57 +02:00
Gijs Noorlander e0b4cad403 Only show matching factory default settings 2020-08-27 02:29:31 +02:00
Gijs Noorlander 5597b0a6db Fix default settings for I2C and ethernet 2020-08-27 02:29:08 +02:00
Gijs Noorlander 9b2b49dd74 [Factory Defaults] Add Olimex ESP32 GATEWAY definitions 2020-08-27 01:16:42 +02:00
Gijs Noorlander dc20398c18 [Cleanup] Try not using default: to let compiler find missing used enums 2020-08-27 00:03:14 +02:00
Michał ObrembskiandMichał Obrembski c204600c05 Fixed compile-time defines not working in ESP32 platform
Added short SHA id in SET_BUILD_GIT_HEAD, since just branch name is not very useful to inspect history
2020-08-25 21:53:32 +02:00
Gijs Noorlander 0cb028bdd5 [Ethernet] Fix UDP p2p when using ethernet. 2020-08-25 01:42:36 +02:00
Gijs Noorlander 08bc2e858b [Ethernet] Create enum class for EthPhyType 2020-08-25 01:13:44 +02:00
Gijs Noorlander 3c6db30afb [Ethernet] Create enum class for EthClockMode 2020-08-25 00:59:55 +02:00
Gijs Noorlander b35648816b [Ethernet] Create enum class for NetworkMedium 2020-08-25 00:48:31 +02:00
TD-erandGitHub ad4d6fb86d Fix C002 Domoticz dimmer switch set value (#3230)
Fixes: #3230
2020-08-24 10:40:13 +02:00
TD-erandGitHub a16cf58efc Fix build issue for P094 CUL reader 2020-08-23 13:53:28 +02:00
TD-erandGitHub 1e9348487d Merge pull request #3229 from TD-er/docs/ethernet
Document ESP32 ethernet + add Olimex ESP32-EVB factory defaults
2020-08-22 20:39:18 +02:00
TD-erandGitHub b4204d2fae Merge branch 'mega' into docs/ethernet 2020-08-22 19:51:54 +02:00
TD-erandGitHub 27c869db42 Merge pull request #3178 from uwekaditz/UweKaditz
[P092_DLBus] Move plugin data from lib to PluginStructs
2020-08-22 18:08:13 +02:00
Gijs Noorlander c027c7f11e [Docs] Updated DL-bus documentation as it was hard to find
Plus fixed some Sphinx errors.
2020-08-22 18:05:12 +02:00
Gijs Noorlander fc8b54d8db [Sphinx docs] Change deprecated add_stylesheet to add_css_file 2020-08-22 17:40:33 +02:00
Gijs Noorlander 80a1998ca2 [Docs] Fix images with .PNG instead of .png extension 2020-08-22 17:39:44 +02:00
TD-erandGitHub c99008ebeb Merge pull request #3228 from tonhuisman/feature/P1_gateway_flex
[P044] Accept '_' in meter ID (#3227)
2020-08-22 17:26:17 +02:00
Gijs Noorlander 8efff6f0a3 [ESP32 ETH] Fix JSON when Ethernet is enabled. 2020-08-22 17:24:26 +02:00
Gijs Noorlander c70055558f [ESP32 ETH] Add pre-defined Olimex ESP32-EVB config 2020-08-22 17:23:51 +02:00
Gijs Noorlander 06254089a5 [Docs] Add documentation for ESP32 ethernet + missing config page 2020-08-22 16:30:20 +02:00
uwekaditzandGitHub 07412e12e3 Merge branch 'mega' into UweKaditz 2020-08-22 15:48:22 +02:00
Ton Huisman c5e6ae37ff [P044] Accept '_' in meter ID 2020-08-22 11:16:21 +02:00
TD-erandGitHub 57ad06eac5 Merge branch 'mega' into build/core_2_7_4 2020-08-20 15:19:15 +02:00
TD-erandGitHub 7dada76f87 Merge pull request #3210 from tonhuisman/feature/I2C_multiplexer
[I2C] Implement I2C Multiplexer
2020-08-20 15:18:40 +02:00
Gijs Noorlander 18fcbac93a [Build] Fix build size exceeded for testing builds 2020-08-20 14:42:28 +02:00
Gijs Noorlander 1e5f464bcc [I2C multiplexer] Fix build issue on units not using I2C multiplexer 2020-08-20 13:01:01 +02:00
Gijs Noorlander 3cf3723ad5 Revert changes in P095 as they are already already covered by #3205 2020-08-20 12:36:55 +02:00
Gijs Noorlander 723cad1847 [Cleanup] Uncrustify all I2C plugins
When adding the new webform I2C params function, it struck me how inconsistent the formatting of our code is.
So how looks like a good moment to uncrustify all I2C plugins as their code is touched anyway.
2020-08-20 12:34:11 +02:00
Gijs Noorlander b3f3d8ecab [I2C] Move I2C address selector for all I2C plugins with address field 2020-08-20 12:22:07 +02:00
Gijs Noorlander 75d5e8113a Merge remote-tracking branch 'tonhuisman/feature/I2C_multiplexer' into feature/I2C_multiplexer 2020-08-20 11:52:05 +02:00
Gijs Noorlander f1d05a59af [I2C] Add PLUGIN_WEBFORM_SHOW_I2C_PARAMS to separate I2C address setup
Also made an example for P036 Framed OLED.
2020-08-20 11:51:45 +02:00
Ton HuismanandGitHub 2bec3dd85e Merge branch 'mega' into feature/I2C_multiplexer 2020-08-20 11:43:33 +02:00
TD-erandGitHub 8705cd20c1 Merge pull request #3223 from TD-er/doc/Domoticz_MQTT_helper
[Docs] Add some description for P029 Output Domoticz MQTT helper
2020-08-20 09:33:01 +02:00
Gijs Noorlander 4c9d62a74c [Docs] Add some description for P029 Output Domoticz MQTT helper 2020-08-20 09:32:25 +02:00
Ton Huisman ded06f6c50 [I2C Docs] Add note about multiplexer address 2020-08-19 17:42:17 +02:00
Ton Huisman 1e44f34495 [I2C Docs] Emphasize configuration with multiplexer 2020-08-19 16:07:56 +02:00
Ton Huisman d9d09c1239 [I2C] Add TCA9543a multiplexer, updated docs 2020-08-19 15:19:40 +02:00
Ton Huisman 7fc64d8f0c [I2C] Some fixes and improvements 2020-08-18 21:23:34 +02:00
TD-erandGitHub 4b7d287ff5 Merge branch 'mega' into feature/I2C_multiplexer 2020-08-18 09:45:19 +02:00
TD-erandGitHub 099b9dc6ec Merge pull request #3220 from TD-er/bugfix/bme280_i2c_multiplexer
[BME280] Allow to be used with I2C multiplexer
2020-08-18 09:42:32 +02:00
TD-erandGitHub c6c040fccb Merge pull request #3218 from TD-er/cleanup/queue_delay_handler_pointer
[Controller] Convert controller delay handler to pointer
2020-08-18 09:39:33 +02:00
TD-erandGitHub 56584f9ec5 Merge pull request #3193 from tonhuisman/feature/commands_doc
[Docs] Updated commands reference
2020-08-18 09:36:06 +02:00
Ton HuismanandGitHub ef0d1ddf68 Merge branch 'mega' into feature/commands_doc 2020-08-17 20:42:40 +02:00
Ton HuismanandGitHub f21c9c6bcc Merge branch 'mega' into feature/I2C_multiplexer 2020-08-17 20:26:12 +02:00
tonhuisman 4e2609ff89 [I2C/Doc] Add Hardware page documentation, RTD help button 2020-08-17 20:24:57 +02:00
Gijs Noorlander 135a26ebf3 [BME280] Allow to be used with I2C multiplexer
This plugin was using plugin data per I2C address, which no longer will work when used with I2C multiplexer.
2020-08-17 16:50:31 +02:00
TD-erandGitHub 25d1f7e79b Merge branch 'mega' into build/core_2_7_4 2020-08-17 14:43:39 +02:00
TD-erandGitHub 54292aa342 Merge pull request #3212 from TD-er/build/normal_4m_vcc
[Build] Add normal_ESP8266_4M1M_VCC env.
2020-08-17 14:43:13 +02:00
Gijs Noorlander 525347cd84 Merge remote-tracking branch 'origin/build/core_2_7_4' into build/core_2_7_4 2020-08-17 14:41:23 +02:00
Gijs Noorlander ae00e03b03 [Travis] Also update "core_273" to "core_274" in build names 2020-08-17 14:41:08 +02:00
TD-erandGitHub 72eb3afa22 Merge branch 'mega' into build/core_2_7_4 2020-08-17 14:32:56 +02:00
TD-erandGitHub 213d2a6559 Merge pull request #3217 from TD-er/cleanup/init_p2p_data
[ESPEasy p2p] Init node data to 0
2020-08-17 14:32:18 +02:00
Gijs Noorlander 1147a2b151 [Controller] Convert controller delay handler to pointer
To reduce memory usage when not used.
2020-08-17 14:15:53 +02:00
Ton HuismanandGitHub fdc6fa8563 Merge branch 'mega' into feature/I2C_multiplexer 2020-08-17 12:11:09 +02:00
Gijs Noorlander eae06e912c [Build size] Do not include I2C device names for minimal OTA builds
These are shown on I2C scan result page.
2020-08-17 11:31:11 +02:00
Gijs Noorlander e93013d6ba [ESPEasy p2p] Init node data to 0
Node struct data was not initialized to 0, so when adding new data to these packets, you could receive uninitialized data from older nodes.
2020-08-17 11:29:39 +02:00
TD-erandGitHub 6fd3a04d42 Merge branch 'mega' into UweKaditz 2020-08-17 11:09:32 +02:00
TD-erandGitHub e71bfbc343 Merge pull request #3213 from tonhuisman/bugfix/P008_settings
[P008] Fix saving/loading new setting
2020-08-17 11:08:51 +02:00
Gijs Noorlander e8ad0cc2e1 [Build] Change to esp8266/Arduino core 2.7.4 2020-08-17 10:47:52 +02:00
tonhuisman 0e68f3c9e1 [I2C] Optimizations and improvements 2020-08-16 17:38:59 +02:00
tonhuisman 102bc2c405 [I2C] Bugfixes and improvements for multiplexer implementation 2020-08-16 14:40:38 +02:00
tonhuisman a0f5a4d0d4 [P008] Fix saving/loading new setting 2020-08-15 20:19:18 +02:00
uwekaditzandGitHub 20181bbae7 Merge branch 'mega' into UweKaditz 2020-08-15 20:18:51 +02:00
tonhuisman 0c5ec877b7 [P008] Fix saving/loading new setting 2020-08-15 20:11:21 +02:00
tonhuisman 1578bf089d [I2C] Fix builderror on SettingsStructSize (again) 2020-08-15 19:59:46 +02:00
Ton HuismanandGitHub 0eb23e86d9 Merge branch 'mega' into feature/I2C_multiplexer 2020-08-15 17:42:15 +02:00
tonhuisman 6f11467b08 [I2C] Improve I2C Multiplexer support 2020-08-15 17:22:25 +02:00
Gijs Noorlander cfd52a2108 [Build] Add normal_ESP8266_4M1M_VCC env. 2020-08-15 14:20:49 +02:00
TD-erandGitHub 64205bc286 Merge pull request #3208 from tonhuisman/bugfix/OLed_dont_change_wirespeed
[OLED] Don't change shared bus speed
2020-08-15 00:26:22 +02:00
TD-erandGitHub 2f64dfc49c Merge pull request #3209 from TD-er/bugfix/si7021_stability
[SI7021] Add timeout + sensor reset when sensor reading stalls
2020-08-14 21:35:20 +02:00
TD-erandGitHub bbef7c8c5e Merge branch 'mega' into bugfix/si7021_stability 2020-08-14 20:40:36 +02:00
tonhuisman 777c397b89 [I2C] Implement I2C Multiplexer 2020-08-13 20:53:45 +02:00
TD-er c934f32a19 automatically updated release notes for mega-20200812 2020-08-12 23:29:35 +02:00
Gijs Noorlander 7d4943ad19 [SI7071] Add timeout for reading sensor (1 sec) 2020-08-12 16:08:14 +02:00
Gijs Noorlander 8cc59938bc [SI7071] Allow multiple instances of the same plugin 2020-08-12 15:35:57 +02:00
Gijs Noorlander ba9c7caf69 [SI7021] Convert state to enum class 2020-08-12 14:57:41 +02:00
Ton HuismanandGitHub 0f8fbdb531 Merge branch 'mega' into bugfix/OLed_dont_change_wirespeed 2020-08-12 11:36:09 +02:00
tonhuisman 667d15e90c [OLED] Don't change shared bus speed 2020-08-12 11:33:36 +02:00
TD-erandGitHub 33405ee92f Merge branch 'mega' into UweKaditz 2020-08-12 01:33:48 +02:00
TD-erandGitHub cfe2f12a58 Merge branch 'mega' into feature/commands_doc 2020-08-12 01:33:25 +02:00
TD-erandGitHub 481435f862 Merge pull request #3206 from letscontrolit/bugfix/dallas_esp32
[Dallas] Enable interrupts when no sensor found
2020-08-12 01:26:44 +02:00
TD-erandGitHub 55e73f0559 Merge branch 'mega' into bugfix/dallas_esp32 2020-08-12 01:05:18 +02:00
TD-erandGitHub 1ce536ca8c Merge pull request #3204 from TD-er/feature/msec_timers
[Timers] Add msec rules timer + loop timer
2020-08-12 01:02:56 +02:00
Gijs Noorlander fc3a08f07e [Docs] Update mentioned dates of introduced feature
... to expected build date
2020-08-11 22:50:00 +02:00
Gijs Noorlander d664659df8 [Dallas] Add warning about the need for a pull up 2020-08-11 22:37:33 +02:00
Gijs Noorlander 656559eda4 [Dallas] Make sure function forward declaration is on one line
Arduino code may not recognize a forward declaration when it is split over multiple lines.
2020-08-11 14:47:05 +02:00
Gijs Noorlander 6b344b3cde Uncrustify both Dallas plugins 2020-08-11 14:41:29 +02:00
Gijs Noorlander 5a75cd3904 [Dallas] Fix NoInterrupt calls for ESP32 2020-08-11 14:40:42 +02:00
Gijs Noorlander 534e9965e3 [Dallas iButton] Enable interrupts when no sensor found 2020-08-11 14:23:00 +02:00
TD-erandGitHub 7e46235a59 [Dallas] Enable interrupts when no sensor found 2020-08-11 13:55:39 +02:00
Gijs Noorlander 526fd429ef [Scheduler] Change plugin pointer type into enum class 2020-08-10 17:07:07 +02:00
Gijs Noorlander 9ab5261171 [Timers] Change interval timer defines into enum class 2020-08-10 16:53:09 +02:00
Gijs Noorlander 01aeb9bc8f [Scheduler] Move global scheduler functions into C++ class
This does make the compilation more predictive and lowers resource usage slightly.  (global functions and objects use slightly more space)
2020-08-10 15:13:24 +02:00
Ton HuismanandGitHub 7cac600b46 Merge branch 'mega' into feature/commands_doc 2020-08-10 10:27:32 +02:00
TD-erandGitHub 2f10ae094c Merge branch 'mega' into UweKaditz 2020-08-10 00:33:59 +02:00
Gijs Noorlander fbcfb153c1 [Timers] Cleanup of timer code. 2020-08-10 00:25:11 +02:00
Gijs Noorlander 53f161df05 [Docs] Add documentation for msec timers and loop timers 2020-08-10 00:25:11 +02:00
Gijs Noorlander 1184339cfc [Timers] Make loop timers with fixed interval and nr of loops 2020-08-10 00:25:11 +02:00
Gijs Noorlander e2ef91088e [Rules Timer] Use scheduler for rules timer
This does remove the limit of number of timers.
Also it makes scheduled intervals a lot more accurate.
2020-08-10 00:25:11 +02:00
TD-erandGitHub 072efe41b7 Merge pull request #3203 from TD-er/bugfix/GPS_sanity_check
[GPS] Apply sanity check on received data.
2020-08-10 00:24:45 +02:00
Gijs Noorlander 1616b8df1d [GPS] Apply sanity check on received data. 2020-08-09 09:55:21 +02:00
uwekaditzandGitHub c69abf66aa Merge branch 'mega' into UweKaditz 2020-08-07 20:55:13 +02:00
TD-erandGitHub d1a6deade4 Merge pull request #3201 from tonhuisman/bugfix/P010_correct_i2c
[P010] Correction in I2C handing, and fix for old issue
2020-08-07 19:39:39 +02:00
tonhuisman bafb00d56a [P010] Correction in I2C handing, and fix for old issue 2020-08-07 11:48:51 +02:00
TD-erandGitHub 92c27bc326 Merge pull request #3189 from TD-er/update/Python_packages_update
[Python] Update of python packages in requirements.txt
2020-08-07 00:17:30 +02:00
TD-erandGitHub 4978237055 Merge pull request #3200 from tonhuisman/feature/P010_compile_ESP32
[P010] Changes to enable use on ESP32 (#3175)
2020-08-07 00:16:12 +02:00
tonhuisman 64cb557c97 [P010] Remove some left-overs from testing 2020-08-06 20:28:23 +02:00
tonhuisman 00313b4c38 [P010] Changes to enable use on ESP32 (#3175) 2020-08-06 20:23:33 +02:00
Ton HuismanandGitHub 55b0538111 Merge branch 'mega' into feature/commands_doc 2020-08-05 17:31:36 +02:00
TD-erandGitHub 0ff5878c8f Merge pull request #3199 from tonhuisman/feature/P036_docs
[Docs] Update [P036] documentation that went missing
2020-08-05 15:55:38 +02:00
TD-erandGitHub 7144d8d200 Merge pull request #3197 from TD-er/bugfix/C015_Blynk_compile
[Blynk] Make C015 Blynk controller compile again
2020-08-05 15:54:29 +02:00
tonhuisman 4516641932 [Docs] Update [P036] documentation that went missing 2020-08-05 13:30:22 +02:00
Gijs Noorlander 98a2cac61c Include C015 in the custom build for testing 2020-08-05 00:57:34 +02:00
Gijs Noorlander 5f459c6c86 [Blynk] Make C015 Blynk controller compile again 2020-08-05 00:57:05 +02:00
Ton HuismanandGitHub 410de576d2 Merge branch 'mega' into feature/commands_doc 2020-08-04 15:03:06 +02:00
Gijs Noorlander bede949bef [docs] Replace code-block:: html with code-block:: none
The HTML parser does not parse our own rules which is where it is used.
So until we have a rules highlighter, we use the ``none`` highlighter.
2020-08-04 13:18:36 +02:00
Gijs Noorlander e86736a423 [docs] Fix table for P095 2020-08-04 13:16:55 +02:00
TD-erandGitHub 3bbc959a59 Merge pull request #3191 from TD-er/bugfix/C011_correct_load_settings
[C011] Fix incorrect load/save settings
2020-08-04 12:14:51 +02:00
tonhuisman 0629084b47 [Docs] Fixed some typos and Sphinx syntax errors 2020-08-03 10:54:57 +02:00
tonhuisman 965d9bb4e8 [Docs] Updated commands reference 2020-08-02 22:33:20 +02:00
Gijs Noorlander 4b0f471318 [Uncrustify] Clean up C011 code using Uncrustify. 2020-08-02 12:19:52 +02:00
Gijs Noorlander 66ca99c031 [C011] Fix incorrect load/save settings.
As mentioned here: https://github.com/letscontrolit/ESPEasy/issues/3123#issuecomment-667340970
2020-08-02 11:58:56 +02:00
TD-erandGitHub 8dc61518b2 Merge pull request #3190 from Wiki591/patch-1
Update URLs.rst
2020-08-02 11:17:12 +02:00
Wiki591andGitHub 43831953d5 Update URLs.rst
Fixed dewcription of the different /csv urls
2020-08-02 09:58:22 +02:00
TD-erandGitHub 59077845a9 Merge pull request #3187 from jimmys01/irupdate
[IR] Update Library
2020-08-02 00:10:23 +02:00
Gijs Noorlander c31010a7d5 [Python] Update of python packages in requirements.txt 2020-08-01 22:20:12 +02:00
TD-erandGitHub a22e03cb99 Merge branch 'mega' into irupdate 2020-08-01 22:02:52 +02:00
uwekaditz aa2e872d4d Merge tag 'mega-20200801' into UweKaditz 2020-08-01 18:07:56 +02:00
TD-er 8a9b04ae9f automatically updated release notes for mega-20200801 2020-08-01 16:27:55 +02:00
jimmys01 8377a8991d [IR] Update Library 2020-08-01 11:51:53 +03:00
TD-erandGitHub c40410fda4 Merge pull request #3185 from TD-er/bugfix/build_gcc10.1
[Build] Fix using GCC 10.1 toolchain
2020-08-01 01:23:25 +02:00
Gijs Noorlander 874cddf176 [Travis] Enable some core 3.0.0 alpha (*_beta_*) builds 2020-08-01 00:39:52 +02:00
Gijs Noorlander ed065ebadd Fix build issue on ESP32 finding SPIFFS.h 2020-08-01 00:32:44 +02:00
Gijs Noorlander d202f70fc5 [core_3.0.0 alpha] Fix build issue analog PWMRANGE
See https://github.com/esp8266/Arduino/commit/a67986915512c5304bd7c161cf0d9c65f66e0892
2020-08-01 00:02:38 +02:00
Gijs Noorlander a6947f5eee [Build] Fix using GCC 10.1 toolchain 2020-07-31 17:49:08 +02:00
TD-erandGitHub d7a1e3145d Merge pull request #3177 from Micha-he/LongPress_Min
Change P001_Switch-LongPress min to 500ms
2020-07-31 02:09:12 +02:00
TD-erandGitHub 78b4558a56 Merge branch 'mega' into UweKaditz 2020-07-31 02:08:42 +02:00
TD-erandGitHub 140d17afef Merge pull request #3179 from TD-er/build/alt_wifi_builds
[Alt WiFi] Use different SDK build for nodes with WiFi issues (#2931)
2020-07-31 02:07:45 +02:00
Gijs Noorlander e945dbfd71 [Build] Disable custom_alt_wifi_ESP8266_1M as it is too large 2020-07-31 01:13:11 +02:00
Gijs Noorlander 00def40abe [Build] Revert back to SDK22x_190703 + alt_wifi build 2020-07-30 23:20:09 +02:00
Gijs Noorlander 234bf3a902 [Build] Do not generate .bin.gz for 1M builds as no support 2-step OTA 2020-07-30 16:18:13 +02:00
Gijs Noorlander 6ca544f192 [Travis] Split builds in several jobs
We ran it all in one job before, which may exceed time limit.
2020-07-30 15:27:29 +02:00
Gijs Noorlander 4806e12c09 [SDK] Disable alt_wifi and use SDK22x_191122 for all builds
Use PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_191122 for all builds, unless mentioned otherwise.

This does seem to work just fine and reduces the number of bin files.
2020-07-30 13:18:33 +02:00
Gijs Noorlander 1e7076cf6f [Arduino] Update to core 2.7.3 2020-07-30 13:15:06 +02:00
Gijs Noorlander 2294476d5f [Docs] Document /json and /csv URLs 2020-07-28 21:02:41 +02:00
Gijs Noorlander 309415bdf8 [ESP32 build] Fix build issues with lots of lib_ignore set (#3083)
See: https://github.com/letscontrolit/ESPEasy/issues/3083#issuecomment-664071971
2020-07-27 11:54:03 +02:00
uwekaditzandGitHub 2bd02df68f Merge branch 'mega' into UweKaditz 2020-07-26 15:33:51 +02:00
TD-erandGitHub 241daf4422 Merge pull request #3181 from tonhuisman/feature/shelly_power
[Build] Add P029 to PLUGIN_SET_ONLY_SWITCH
2020-07-26 14:27:24 +02:00
tonhuisman 739b12cbaa [Build] Remove superfluous #defines 2020-07-26 13:31:11 +02:00
tonhuisman 721a99a70b [Build] Move USES_DOMOTICZ logic together and in a more useful order 2020-07-26 13:28:16 +02:00
tonhuisman be536d0241 [Build] Enable P029 for hard_shelly builds 2020-07-26 10:39:38 +02:00
Gijs Noorlander c5c2150c0f [ESP32] Fix build issue (spiffs.h vs SPIFFS.h)
Tested only on Windows, which does not have issues with capitalization of file names
2020-07-26 00:06:56 +02:00
Gijs Noorlander ed0fcabeba Fix build errors 2020-07-25 20:14:12 +02:00
tonhuisman 1f8eb4a5db [Build] Add P029 to PLUGIN_SET_ONLY_SWITCH 2020-07-25 14:33:17 +02:00
Gijs Noorlander 72fc4f671c [Build] Remove test VCC MDNS SD build from Travis build 2020-07-25 01:36:01 +02:00
Gijs Noorlander 8a96e715a7 [Cleanup] Move RTC struct code to .h/.cpp
As these structs were initialized by memset to 0, which gives a warning on gcc10.1
2020-07-25 01:35:03 +02:00
Gijs Noorlander 8a36206731 [GCC 10] Fix compile issues with GCC 10.1 2020-07-25 00:44:54 +02:00
Gijs Noorlander ec8a0e204c [Alternate WiFi] Use different SDK build for nodes with WiFi issues (#2931)
Fixes: #2931
2020-07-24 23:15:10 +02:00
uwekaditz 96fc31a03c Update _P092_DLbus.ino
FIX: Correct include
2020-07-24 22:04:48 +02:00
uwekaditzandGitHub d2c1a8f982 Merge branch 'mega' into UweKaditz 2020-07-24 21:58:52 +02:00
uwekaditz 112991cd03 [P092_DLBus] Move plugin data from lib to PluginStructs
Move plugin data from lib\DLBus to src\PluginStructs\P092_data_struct in PluginStructs
(similar to P036_data_struct)
2020-07-24 21:57:00 +02:00
TD-erandGitHub 394d23c0ca Merge branch 'mega' into LongPress_Min 2020-07-24 12:40:10 +02:00
TD-erandGitHub 80fdbff696 Merge pull request #3033 from jano42/mega
Add eInk plugin
2020-07-23 15:33:16 +02:00
TD-erandGitHub 32e31db024 Merge pull request #3050 from uwekaditz/UweKaditz
[P036] Memory optimization (issue #2799) and other improvements
2020-07-23 14:34:57 +02:00
TD-erandGitHub 57067f1c2b Merge branch 'mega' into mega 2020-07-23 14:34:02 +02:00
Gijs Noorlander db375a6f84 [e-ink] Include LOLIN_EPD in the lib_deps to make it compile 2020-07-23 14:32:58 +02:00
TD-erandGitHub 3338430aa7 Merge pull request #3110 from Chris-1965/mega
P095 Plugin: ili9341 font support
2020-07-23 13:33:13 +02:00
Gijs Noorlander 82c2829020 [Framed OLED] Clean up code + use temp. object for load/save lines
Loading and saving of display lines must be done using a temporary object and not via the task data object in memory as that may have been changed via write commands.
2020-07-22 22:01:06 +02:00
Gijs Noorlander 15639b1886 [Framed OLED] Move plugin data to separate .h/.cpp 2020-07-22 17:32:41 +02:00
BesterquesterandGitHub 9202006236 Merge branch 'mega' into mega 2020-07-22 15:48:30 +02:00
Chris-1965 05c7de2f73 Merge branch 'mega' of https://github.com/Chris-1965/ESPEasy into mega 2020-07-22 15:45:52 +02:00
Chris-1965 d535327a04 Changed naming as proposed 2020-07-22 15:44:37 +02:00
Gijs Noorlander f7618941e8 [P036_FramedOLED] Uncrustify source code 2020-07-22 15:39:27 +02:00
Gijs Noorlander 81379d81aa [Web form] Force value in number field within given range
For example the Framed OLED plugin has a default number of lines per page of 0, but the limits of the field only allows 1 .. 4.
This makes it impossible to save the default settings without changing something.

There may be other settings which may have similar issues.
2020-07-22 15:18:45 +02:00
Gijs Noorlander 6b7ac1e4b0 [P036_FramedOLED] Reduce stack and heap memory usage
During load, the (large) task data struct was allocated on the heap, regardless whether it was already present in memory when the task was initialized.

During save, the (large) task data struct was allocated on the stack.

Both load and save now check whether there is already an instance present and use that instance.
If not, it creates a temporary instance for loading and saving of the settings.

Also the scrolling variable was not initialized, so it could happen the display would not start to show the pages as it was marked as "still being scrolling"
2020-07-22 15:07:56 +02:00
Michael SchröderandGitHub 8cabcd1490 Decrease the longpress min interval to 500ms 2020-07-22 11:17:25 +02:00
Michael SchröderandGitHub e727651c22 Merge pull request #5 from letscontrolit/mega
Merge upstream repository
2020-07-22 11:02:33 +02:00
TD-erandGitHub ca369655d8 Merge branch 'mega' into UweKaditz 2020-07-22 09:00:59 +02:00
TD-er 4e7fd26f2d automatically updated release notes for mega-20200721 2020-07-21 11:23:15 +02:00
TD-erandGitHub 112902c6d1 Merge branch 'mega' into UweKaditz 2020-07-20 23:49:59 +02:00
TD-erandGitHub 665239992c Merge pull request #3148 from TD-er/bugfix/wifi_reset
[WiFi] Reduce wifi reset calls and call full wifi init at reset (#3147)
2020-07-20 23:42:52 +02:00
TD-er fa7233c864 automatically updated release notes for mega-20200720 2020-07-20 23:35:58 +02:00
Gijs Noorlander 4128de9d9d [WiFi] Copy DNS servers from DHCP when using fixed last octet (#3111) 2020-07-20 21:29:27 +02:00
Gijs Noorlander 6cf00dcc05 [Docs] Document Tools => Advanced Settings 2020-07-20 20:57:16 +02:00
Gijs Noorlander 3b42935a8a [TimeZone] Move timezone configuration line to location settings (#3141)
Fixes: #3141
2020-07-20 20:56:48 +02:00
Gijs Noorlander aa0e548fa7 [ESP32] Recognize last boot state as Deepsleep (#3155)
Fixes: #3155

For the ESP8266, we keep things like the last boot cause in RTC memory.
Currently that's not supported on ESP32 (in our code) so the last boot cause is never read and stored.
2020-07-20 17:13:17 +02:00
Gijs Noorlander 829f257593 [UDP p2p] Fix crash on ESP32 where UDP is started before connected 2020-07-20 00:32:59 +02:00
Gijs Noorlander 1b26282d74 [Docs] Update docs related to p2p UDP port no longer need reboot 2020-07-19 15:48:03 +02:00
Gijs Noorlander eff8fd4847 [Syslog] Add custom port to the syslog IP (#1258)
Fixes: #1258
2020-07-19 15:04:04 +02:00
Gijs Noorlander 1c76e978b5 [NTP] After timeout or receiving invalid packet, port could be held
This could lead to extra memory usage until the next (valid) NTP packet was processed.
Also the UDP port could be held.
2020-07-19 14:40:36 +02:00
Gijs Noorlander cf3c2b0104 [UDP] Reduce max UDP packet size
The max. UDP packet size could allow for a large memory allocation when a large packet was received.
No matter if this was a valid packet to process anyway.
2020-07-19 14:37:43 +02:00
Gijs Noorlander 40f9454f00 [ESPEasy p2p] Reload UDP port settings when changed
No need to reboot after changing UDP port setting.
2020-07-19 14:35:51 +02:00
TD-erandGitHub b742574732 Merge branch 'mega' into mega 2020-07-19 13:25:12 +02:00
TD-erandGitHub 70ba44da92 Merge branch 'mega' into UweKaditz 2020-07-19 13:24:42 +02:00
TD-erandGitHub 2d0dad235e Merge pull request #3149 from tonhuisman/feature/P008_hex_to_dec
[P008] Add option to convert value to 'hex' (#3068), and updated docs
2020-07-19 13:23:49 +02:00
TD-erandGitHub 9e969a0cdd Merge branch 'mega' into mega 2020-07-19 13:13:53 +02:00
TD-erandGitHub c9cc98e6c8 Merge pull request #3150 from llevet/patch-1
Update _P095_ILI9341.ino
2020-07-19 13:13:13 +02:00
TD-erandGitHub b338129237 Merge pull request #3166 from tonhuisman/feature/improve_P076
[P076] fix: Custom Pin settings in same order as Sensor pins, improved label, improved cast
2020-07-19 13:11:18 +02:00
TD-erandGitHub b20e51bb5f Merge pull request #3173 from letscontrolit/bugfix/3159_ADS1115
Fix ADS1115 mixing input signals (#3159)
2020-07-19 13:09:45 +02:00
TD-erandGitHub 1c7ba000c9 Fix ADS1115 mixing input signals (#3159)
Fixes: #3159 

See: https://github.com/letscontrolit/ESPEasy/issues/3159#issuecomment-660546091
2020-07-19 00:00:37 +02:00
Gijs Noorlander 711eaf60bd [PIO ESP32] Update to latest Platformio espressif32@1.12.4 2020-07-18 15:30:09 +02:00
Gijs Noorlander cc4543603e [PIO] revert custom_beta env to stage core lib 2020-07-18 15:29:03 +02:00
Gijs Noorlander 12a3f91a6f [WiFi] Clear event callback on ESP32 + correct order of log/disconnect 2020-07-18 15:28:01 +02:00
TD-erandGitHub 1e2d49f167 Merge branch 'mega' into bugfix/wifi_reset 2020-07-18 11:16:01 +02:00
Gijs Noorlander 2c92d59101 [ESP32] Fix build error on ESP32 2020-07-16 20:05:08 +02:00
BesterquesterandGitHub cd1a2c866e Merge branch 'mega' into mega 2020-07-16 19:27:30 +02:00
Gijs Noorlander b5c20b066b [WiFi] Small fixes for WiFi related code 2020-07-16 19:27:20 +02:00
Gijs Noorlander 95fefdd921 Reduce minimal OTA build slightly 2020-07-16 19:26:00 +02:00
Gijs Noorlander 2256b8b19b Fix issue where task name / task var name was incorrect 2020-07-16 19:22:16 +02:00
Gijs Noorlander edb8d065a1 [WiFi] Detect and work around missing events
The code is still way too complex, but at least it is working now on all tests I could throw at it.
2020-07-16 19:21:19 +02:00
tonhuisman ffb113c292 [P076] fix: Custom pin settings in same order as Sensor pins, improved label, improved cast 2020-07-12 21:06:18 +02:00
uwekaditzandGitHub b53e0c09ec Merge branch 'mega' into UweKaditz 2020-07-12 17:51:45 +02:00
llevetandGitHub 3139aa31b9 Merge branch 'mega' into patch-1 2020-07-12 15:19:57 +02:00
TD-erandGitHub 866fc88f92 Merge pull request #3165 from jimmys01/jsonlib
arduinoJSON library update
2020-07-11 14:35:02 +02:00
Gijs Noorlander 33d377b723 [WiFi] No longer rely on WiFi.isConnected() 2020-07-11 13:18:01 +02:00
jimmys01 6ee79cfe14 arduJSON library update 2020-07-11 13:11:44 +03:00
Gijs Noorlander 9f0b066b93 [WiFi] Convert bit-wise operations to use bitSet/bitClear/bitRead 2020-07-09 21:37:54 +02:00
Gijs Noorlander 7ab9f9377d [WiFi] Add timeout to get out of incorrect WiFi.connected() state
The WiFi.connected() call sometimes returns `WL_DISCONNECTED` even though it is connected and serving web pages etc.

Added a timeout of 15 seconds to get out of this or else the WiFi state is reset to try again fresh.
2020-07-09 21:37:54 +02:00
Gijs Noorlander db869fcb19 [WiFi] Reduce wifi reset calls and call full wifi init at reset 2020-07-09 21:37:54 +02:00
TD-erandGitHub 30eb0bccb8 Merge pull request #3145 from TD-er/bugfix/3144_submitted
[Frontend] Only show "Submitted" message when pressing submit (#3144)
2020-07-09 21:36:46 +02:00
TD-erandGitHub ffb1f10c44 Merge pull request #3163 from TD-er/bugfix/syslog_crash
[Syslog] Fix crash with syslog enabled on wifi (re)connect (#3147 #3072)
2020-07-09 20:46:36 +02:00
TD-erandGitHub 241f21e777 Merge pull request #3162 from TD-er/bugfix/IR_TX_ArduinoIDE
[Arduino IDE] Fix build issues with P035_IRTX and some controllers
2020-07-09 20:31:08 +02:00
TD-erandGitHub 6d33ea4a9c Merge branch 'mega' into bugfix/3144_submitted 2020-07-09 20:30:29 +02:00
Gijs Noorlander e012de2a2c [Syslog] Fix crash with syslog enabled on wifi (re)connect (#3147 #3072)
It appeared the log handling function was sometimes processing flash strings or progmem strings and thus crashing with an exception.

Crashes like these:
```
 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

0x40275929 in String::operator=(char const*) at ??:?
0x4022cab9 in process_serialWriteBuffer() at ??:?
0x4023532b in addToSerialBuffer(char const*) at ??:?
0x402756a0 in String::copy(char const*, unsigned int) at ??:?
0x40238bd3 in addToLog(unsigned char, char const*) at ??:?
0x40275cac in String::concat(String const&) at ??:?
0x402b3849 in wifi_station_get_rssi at ??:?
0x402754bd in String::invalidate() at ??:?
0x40238c88 in addToLog(unsigned char, String const&) at ??:?
0x4025be2a in WiFiConnected() at ??:?
0x4025a500 in NetworkConnected() at ??:?
0x402cd8b0 in chip_v6_unset_chanfreq at ??:?
0x40238a9e in syslog(unsigned char, char const*) at ??:?
0x4021ebd3 in getMaxFreeBlock() at ??:?
0x4022cab9 in process_serialWriteBuffer() at ??:?
0x402754bd in String::invalidate() at ??:?
0x40238c25 in addToLog(unsigned12484 : Info  : EVENT: Clock#Time=Mon,11:27
```
2020-07-09 19:50:20 +02:00
Gijs Noorlander a7d517afd5 [Arduino IDE] Fix compile issues when selecting specific controllers 2020-07-09 16:22:22 +02:00
Gijs Noorlander 0a7dade612 [Arduino IDE] Fix build issue for P035_IRTX.ino 2020-07-09 15:08:21 +02:00
TD-erandGitHub 3657a1f203 Merge pull request #3151 from llevet/patch-2
P095 Plugin: Fix bug #3047
2020-07-07 22:38:44 +02:00
TD-erandGitHub db74836d5f Merge pull request #3154 from tonhuisman/bugfix/taskdisable
[TaskDisable] Bugfix for plugins without PLUGIN_EXIT implementation
2020-07-07 22:35:41 +02:00
TD-erandGitHub 5655e72064 Merge pull request #3152 from TD-er/bugfix/Build_ArduinoIDE
[Arduino IDE] Fix build issue with Arduino IDE
2020-07-07 22:34:35 +02:00
tonhuisman c49e7a85d4 [TaskDisable] Remove unneeded else & return 2020-07-06 21:06:38 +02:00
Gijs Noorlander b62c0004d1 [Arduino IDE] Make P076 compile again on Arduino IDE 2020-07-06 17:20:17 +02:00
tonhuisman e0fbf0e6be [TaskDisable] Improve readability of code after bugfix 2020-07-05 21:54:49 +02:00
tonhuisman 729c70afd6 [TaskDisable] Bugfix for plugins without PLUGIN_EXIT implementation 2020-07-05 20:48:37 +02:00
BesterquesterandGitHub 17cb8e4f0a Merge branch 'mega' into mega 2020-07-05 17:16:40 +02:00
Gijs Noorlander 703563914c Fix typo in filename for P044 data struct 2020-07-05 01:53:06 +02:00
Gijs Noorlander f97bd77c5d [Arduino IDE] Fix build issue with Arduino IDE 2020-07-05 01:02:29 +02:00
llevetandGitHub e696853928 P095 Plugin: Fix bug #3047
Part of patch from Chris-1965  who resolve the bug #3047 (P095 ILI9341 does interact with sending commands of other plugins)
2020-07-04 22:59:25 +02:00
llevetandGitHub 4f54dd7c95 Update _P095_ILI9341.ino
Corrected variable TS_CS in form
2020-07-04 20:11:52 +02:00
tonhuisman 02c2bdbfc7 [P008] Add option to convert value to 'hex' (#3068), and updated documentation 2020-07-04 18:22:22 +02:00
TD-erandGitHub 44707bd6c3 Merge branch 'mega' into bugfix/3144_submitted 2020-07-04 00:14:49 +02:00
Gijs Noorlander 67e729e4b5 [ESP32 ETH] Fix build issue due to recent changes 2020-07-03 15:19:35 +02:00
TD-erandGitHub 5ae9038982 Merge pull request #3139 from TD-er/bugfix/ModbusRTU_h_cpp
Convert code from .ino to .cpp/.h
2020-07-03 14:02:17 +02:00
Gijs Noorlander a513f97a03 [Frontend] Only show "Submitted" message when pressing submit (#3144)
See: #3144
2020-07-03 13:56:43 +02:00
TD-erandGitHub 18bd6f5692 Merge branch 'mega' into bugfix/ModbusRTU_h_cpp 2020-07-03 13:16:55 +02:00
TD-er 904f72bdc5 automatically updated release notes for mega-20200703 2020-07-03 13:15:58 +02:00
TD-erandGitHub 79a1352baa Merge branch 'mega' into mega 2020-07-03 12:12:14 +02:00
TD-erandGitHub 75b6412464 Merge branch 'mega' into mega 2020-07-03 12:11:42 +02:00
TD-erandGitHub cb0ff5a9c1 Merge pull request #3037 from tonhuisman/feature/apds_9960_parameters
[P064] Gesture - APDS-9960 plugin: Added switching plugin mode and se…
2020-07-03 12:10:55 +02:00
TD-erandGitHub 873ad51e2c Merge branch 'mega' into UweKaditz 2020-07-03 12:10:08 +02:00
TD-erandGitHub d907dcf9b0 Merge pull request #3137 from tonhuisman/feature/transformation_password2
[Transformation] Optimizations for Password transformation
2020-07-03 12:09:18 +02:00
TD-erandGitHub 70d41e5631 Merge pull request #3142 from pm-cz/mega-IP-fix
Fixed IP address range checking
2020-07-03 12:07:52 +02:00
TD-erandGitHub ac42e4fe9d Merge pull request #3143 from Beziu/mega
Update _P047_i2c-soil-moisture-sensor.ino
2020-07-03 12:07:29 +02:00
Grzegorz DziubakandGitHub 78fbe22c23 Merge branch 'mega' into mega 2020-07-03 11:23:07 +02:00
Pavel Moravec 3b147fc08e Fixed IP address range checking 2020-07-03 10:09:19 +02:00
Gijs Noorlander 7fba7f07eb Make delay queue macro a bit more logical 2020-07-01 09:15:02 +02:00
Gijs Noorlander 0e7e54c8f9 [Build] Fix build error for C018, due to removed forward declaration 2020-06-30 12:08:51 +02:00
Gijs Noorlander fac54d6e54 [Build] Fix missing include building ESP32 2020-06-30 10:33:03 +02:00
Gijs Noorlander 07efc9d078 Convert scheduler from .ino to .cpp/.h
Also converted:
- StringConverter.ino
- Scheduler.ino
- ESPEasyStorage.ino
- Hardware.ino
- ESPEasy_checks.ino
- Convert.ino


Plus some clean up of now made obsolete forward declarations in ESPEasy_fwddelcs.h
2020-06-30 00:10:52 +02:00
Gijs Noorlander a4b384fcae [Modbus RTU] Move Modbus code to .h/.cpp file to reduce size 2020-06-29 10:51:03 +02:00
TD-erandGitHub 0205d8d3ae Merge branch 'mega' into mega 2020-06-28 23:25:03 +02:00
TD-erandGitHub 2da0835893 Merge pull request #3132 from TD-er/bugfix/syslog_stackusage
[Syslog] Fix high stack usage for Syslog (#3128)
2020-06-28 23:17:53 +02:00
Gijs Noorlander ac129d128a [Documentation] Add documentation on the log settings. 2020-06-28 23:17:22 +02:00
Gijs Noorlander 1bfffd931b [Syslog] Fix high stack usage for Syslog (#3128)
Fixes: #3128
2020-06-28 20:00:21 +02:00
TD-erandGitHub 2ea6b4c426 Merge pull request #3138 from TD-er/bugfix/3113_rules_login
[Rules] Fix rules handling of set 2...4 when using admin login (#3113)
2020-06-28 19:51:13 +02:00
Gijs Noorlander db94b4c6fd [Rules] Fix rules handling of set 2...4 when using admin login (#3113)
Fixes #3113
2020-06-28 17:33:14 +02:00
tonhuisman 16318a74b1 [Transformation] Optimizations for Password transformation 2020-06-28 13:45:38 +02:00
TD-erandGitHub ce317f7207 Merge pull request #3134 from TD-er/bugfix/c011_advhttp_stack
[C011] Generic HTTP Advanced Reduce stack usage (#3123)
2020-06-27 16:43:08 +02:00
Chris-1965 e3588c71c9 Merge branch 'mega' of https://github.com/Chris-1965/ESPEasy into mega 2020-06-27 15:55:28 +02:00
Chris-1965 d84b8f0d56 platformio changed 2020-06-27 15:53:14 +02:00
Gijs Noorlander 81a870821c [Web interface] Fix bug in I2C address selector 2020-06-27 14:29:20 +02:00
Gijs Noorlander c1f21d1eba [Domoticz HTTP] Make sending slightly more efficient 2020-06-27 12:39:20 +02:00
Gijs Noorlander c978db2aef [Frontend] Use stringProvider on some more strings 2020-06-27 12:38:16 +02:00
Gijs Noorlander a6f029793f [Build] Allow building using SD support for special debug builds 2020-06-27 12:37:31 +02:00
Grzegorz Dziubak 65c138f97a Update _P047_i2c-soil-moisture-sensor.ino
added new version; tested on 0x26
2020-06-27 08:52:28 +02:00
Ton HuismanandGitHub 8e8edce5b0 Merge branch 'mega' into feature/apds_9960_parameters 2020-06-25 20:32:58 +02:00
Gijs Noorlander af86858495 [HTTP controller] Memory optimization, prevent copy queue element 2020-06-25 19:39:31 +02:00
Gijs Noorlander aa5634bf78 [Controller] Check success of controller settings allocation processing queue 2020-06-25 19:39:31 +02:00
Gijs Noorlander 93ad416834 [C011] Generic HTTP Advanced Reduce stack usage (#3123)
Fixes: #3123 

ControllerSettings and (large) struct for the controller config were active at the same time while it is not needed.

Also the host to send data to was connected twice, which may also lead to strange results.
2020-06-25 19:39:31 +02:00
TD-erandGitHub 775a961fe6 Merge pull request #3133 from TD-er/bugfix/stackusage_i2cformselector
addFormSelectorI2C Fix high stack usage (#3130)
2020-06-25 19:38:31 +02:00
Gijs Noorlander 53d6d5cc8a [build] Exclude function from build for minimal OTA 2020-06-25 11:40:25 +02:00
Gijs Noorlander 9362371552 [Build] Add LittleFS to lib_ignore 2020-06-25 11:39:39 +02:00
Gijs Noorlander e1640546a3 Minimize stack allocation in plugins 2020-06-25 11:38:43 +02:00
Gijs Noorlander 50b032881f addFormSelectorI2C Fix high stack usage (#3130)
Fixes: #3130
2020-06-24 13:37:17 +02:00
TD-erandGitHub f1b2f16d1c Merge pull request #3122 from TD-er/bugfix/memory_optimizatons
Reduce RAM usage considerably on controllers
2020-06-23 13:42:42 +02:00
TD-erandGitHub cd9edd6c6f Merge branch 'mega' into bugfix/memory_optimizatons 2020-06-23 12:05:54 +02:00
BesterquesterandGitHub 678d2ba561 Merge branch 'mega' into mega 2020-06-23 11:54:53 +02:00
Gijs Noorlander 586d956ab8 [Python] Update package versions in requirements.txt 2020-06-23 09:11:38 +02:00
TD-erandGitHub ec0db49820 Merge branch 'mega' into UweKaditz 2020-06-23 08:31:16 +02:00
Gijs Noorlander 41666156d6 [Web Frontend] Reduce stack usage on DST configuration 2020-06-23 00:57:43 +02:00
Gijs Noorlander 6408849967 [Blynk] Reduce stack usage on Blynk_get
There is still room for improvement as we still try to create the entire string in a fixed size buffer.
Maybe we can also send out the data in chunks?
Or determine the needed array size at runtime.
2020-06-23 00:56:57 +02:00
Gijs Noorlander 71dc108eda [P001 Switch] Reduce stack usage on PLUGIN_WEBFORM_LOAD 2020-06-23 00:55:05 +02:00
uwekaditz 3829892574 [P036] Fixed: display_indicator() crashed
BUG: MaxFramesToDisplay was not updated if all display lines were empty -> display_indicator() crashed due to memory overflow
CHG: MaxFramesToDisplay will be updated after receiving command with new line content
CHG: Added some checks if P036_data are valid and if P036_data->isInitialized()
2020-06-22 20:04:18 +02:00
Gijs Noorlander 2fe22afd3b Fix merge issue WiFiConnected changed to NetworkConnected 2020-06-22 15:50:00 +02:00
Gijs Noorlander b3574a7706 [MQTT import] Check if MakeControllerSettings failed due to out of RAM 2020-06-22 15:49:43 +02:00
Gijs Noorlander 21f0cb7fe9 [Controller] Check if MakeControllerSettings failed due to low RAM
Add checks to see if allocating the relative large ControllerSettingsStruct failed.
This can be caused by either running out of memory or when memory gets fragmented.
2020-06-22 15:49:43 +02:00
Gijs Noorlander 6fc8642e04 [MQTT] More efficient MQTT copy incoming messages 2020-06-22 15:49:43 +02:00
Gijs Noorlander 15af201bb9 [Controller] Cache needed controller info to reduce memory usage 2020-06-22 15:49:43 +02:00
Gijs Noorlander 33291eac11 [Cleanup] Try to use move constructor when adding to controller queue
Still to do: create a proper move operator for queue_element_single_value_base
2020-06-22 15:49:43 +02:00
Gijs Noorlander 08dc4a81df [Cleanup] Free ControllerSettings as soon as possible to free memory
Quote often the ControllerSettings are only used to get one or two values.
No need to keep this ~800 bytes large object allocated for more than absolutely needed.
2020-06-22 15:49:43 +02:00
Gijs Noorlander c03329228f [MQTT] Add function to check MQTT queue full state 2020-06-22 15:49:43 +02:00
Gijs Noorlander affd20418d [Controller] Check if controller host/IP is set before MQTT connect 2020-06-22 15:49:33 +02:00
Gijs Noorlander af48436770 [Controller] Memory optimization for sending SENSOR_TYPE_STRING
String was copied before sending to the MQTT publish.
Plus copied another time for the log if LOG_LEVEL_DEBUG was active.
2020-06-22 15:48:56 +02:00
Gijs Noorlander 124a9976b6 [PIO] Use espressif8266@2.5.2 with fixed esp8266_stack_decoder 2020-06-22 15:47:51 +02:00
Gijs Noorlander 094d1171b8 [Framed OLED] Add checks for display initialized 2020-06-22 15:09:06 +02:00
TD-erandGitHub d74821fc95 Merge branch 'mega' into feature/apds_9960_parameters 2020-06-22 14:06:09 +02:00
TD-erandGitHub 257826de8b Merge branch 'mega' into mega 2020-06-22 13:44:09 +02:00
TD-erandGitHub 03e76a7254 Merge branch 'mega' into UweKaditz 2020-06-22 13:40:13 +02:00
TD-erandGitHub 0384f8dbbe Merge branch 'mega' into mega 2020-06-22 13:38:55 +02:00
Gijs Noorlander 70ffd6bb4a [Build] Disable test_beta_ESP8266_4M1M for now as it is too big 2020-06-22 13:25:13 +02:00
TD-erandGitHub dbd5481980 Merge pull request #3040 from kretzp/feature/ethernet_or_wifi_support
Feature/ethernet or wifi support
2020-06-22 13:07:28 +02:00
TD-erandGitHub f8fe078343 Merge pull request #3120 from tonhuisman/feature/transformation_password
[Transformation] Add P/p (Password display)
2020-06-22 13:05:55 +02:00
TD-erandGitHub 701eac3f87 Merge branch 'mega' into feature/apds_9960_parameters 2020-06-22 13:03:19 +02:00
TD-erandGitHub 2dff2a48ad Merge pull request #3089 from fmuntean/ESP32_ARDUINO_OTA
ESP32: Disable Arduino OTA by default
2020-06-22 13:01:11 +02:00
Gijs Noorlander 6c396a7975 Merge remote-tracking branch 'fmuntean/ESP32_ARDUINO_OTA' into ESP32_ARDUINO_OTA 2020-06-22 12:03:04 +02:00
Gijs Noorlander 1b55ddc84a [ESP32] Only define FEATURE_ARDUINO_OTA in build config, not in .h files 2020-06-22 12:02:37 +02:00
TD-erandGitHub 8a5f89dc0b Merge branch 'mega' into ESP32_ARDUINO_OTA 2020-06-22 11:07:25 +02:00
tonhuisman 9a17df2aeb [Transformation] Add P/p (Password display) 2020-06-21 18:42:06 +02:00
BesterquesterandGitHub d740cb85a6 Merge branch 'mega' into mega 2020-06-21 13:39:45 +02:00
Chris-1965 0077375ce1 resolved a bug : commands other than tft were all sucussfull. Also the output log moved in else otherwise message appears for all commands 2020-06-21 13:37:10 +02:00
Peter KretzandGitHub b2581c1d83 Merge branch 'mega' into feature/ethernet_or_wifi_support 2020-06-18 12:45:44 +02:00
TD-erandGitHub 1ec8a56abd Merge pull request #3119 from tonhuisman/bugfix/taskdisable_3118
[Tasks] Call PLUGIN_INIT/PLUGIN_EXIT using TaskEnable/TaskDisable from rules
2020-06-18 12:17:59 +02:00
Ton HuismanandGitHub 1d70abb46f Merge branch 'mega' into bugfix/taskdisable_3118 2020-06-17 21:34:27 +02:00
tonhuisman 5b93121a20 [Tasks] Call PLUGIN_INIT/PLUGIN_EXIT using TaskEnable/TaskDisable from rules 2020-06-17 20:58:10 +02:00
Ton HuismanandGitHub 4b99a9c4fb Merge branch 'mega' into feature/apds_9960_parameters 2020-06-15 20:08:59 +02:00
uwekaditzandGitHub 27ca9e21e2 Merge branch 'mega' into UweKaditz 2020-06-15 14:37:32 +02:00
TD-erandGitHub 7524b8af89 Merge branch 'mega' into ESP32_ARDUINO_OTA 2020-06-13 10:53:32 +02:00
Peter KretzandGitHub 281a088c24 Merge pull request #1 from bccrew/patch-1
Change FormSubHeader to distinguish settings between IP of LAN or WiFi
2020-06-10 10:36:48 +02:00
bccrewandGitHub 58413c219b Change FormSubHeader to clarify difference between IP settings of LAN or WiFi 2020-06-09 20:41:21 +02:00
Peter Kretz 3d83696ae6 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support 2020-06-09 18:32:59 +02:00
Chris-1965 ec159e8865 changed fonts can disabled by define, font names instead of numbers 2020-06-09 15:25:13 +02:00
Chris-1965 6196f24559 new update 2020-06-09 12:10:28 +02:00
Chris-1965 db297b2af3 also in ino file -> docs adapted 2020-06-09 12:08:00 +02:00
Chris-1965 e8d3b63501 updated doc files 2020-06-09 11:59:17 +02:00
Chris-1965 6b7a461932 added cusrom-sample-h file to repository 2020-06-09 11:12:52 +02:00
Chris-1965 e02caaedc6 comment on pins added 2020-06-09 10:50:42 +02:00
Chris-1965 38060e32e4 chneged requested items from last pull request 2020-06-09 10:33:25 +02:00
Chris-1965 e771d49c48 Merge branch 'mega' of https://github.com/Chris-1965/ESPEasy into mega 2020-06-09 09:45:37 +02:00
Chris-1965 89ec530660 updated suggested requests 2020-06-09 09:45:25 +02:00
BesterquesterandGitHub 78aefa78d5 Merge branch 'mega' into mega 2020-06-09 08:09:30 +02:00
Chris-1965 572cade415 minor 2020-06-09 07:57:13 +02:00
Chris-1965 e1dff07c3c minor formatting 2020-06-09 07:54:32 +02:00
TD-er 7fa3ffa105 automatically updated release notes for mega-20200608 2020-06-08 22:51:44 +02:00
Chris-1965 f491366e7b Merge branch 'mega' of https://github.com/Chris-1965/ESPEasy into mega 2020-06-08 20:59:56 +02:00
Chris-1965 d70ef8135f Fonts usage added
added the use of seven segment font on the display. fonts must be available in the adafruitGFX/Fonts directory.
2020-06-08 20:57:58 +02:00
TD-erandGitHub 344accf61a Merge branch 'mega' into UweKaditz 2020-06-08 20:50:48 +02:00
Gijs Noorlander 92f01e6a26 [Build] Disable diagnostics in test/dev build to reduce build size 2020-06-08 20:49:13 +02:00
TD-erandGitHub 4403478e07 Merge pull request #3108 from TD-er/feature/EventValueSource
[Cleanup] Transform defines in EventValueSource into enum
2020-06-08 15:21:35 +02:00
TD-erandGitHub 8899c236f1 Merge pull request #3103 from TD-er/feature/GPS_traveled
[GPS] Add GPS#travelled=... event  (#3099)
2020-06-08 14:29:02 +02:00
TD-erandGitHub 4ba5b0c214 Merge branch 'mega' into UweKaditz 2020-06-08 14:25:55 +02:00
TD-erandGitHub cdf813287c Merge pull request #3107 from TD-er/update/esp32_core_pio1.12.2
Update/esp32 core pio1.12.2
2020-06-08 14:19:35 +02:00
Gijs Noorlander 94abb74c25 Transform defines in EventValueSource into enum 2020-06-08 14:17:06 +02:00
TD-erandGitHub f47fd87f4c Merge pull request #3091 from sakinit/P1WifiGateway-30cbb4c
P1 wifi gateway 30cbb4c
2020-06-08 13:42:29 +02:00
Gijs Noorlander ff6a918b7c [GPS] Add sanity check for reporting distance travelled event 2020-06-08 13:41:12 +02:00
TD-erandGitHub 71697fc5c1 Merge branch 'mega' into feature/GPS_traveled 2020-06-08 13:10:58 +02:00
Gijs Noorlander deb6128e26 [WiFi] Reduce excessive logs WIFI : Disconnected: WiFi.status()
Only report it when something has to be reported.
2020-06-08 13:05:10 +02:00
Gijs Noorlander 87c0136385 [PIO] Add exception_decoder as serial monitor filter 2020-06-08 13:03:49 +02:00
Gijs Noorlander b59bcee79b [ESP32] Update to platform-espressif32@1.12.2 2020-06-08 13:02:53 +02:00
TD-erandGitHub 3118f5d702 Merge pull request #3052 from TD-er/feature/deprecate_SPIFFS
[LittleFS] Make switching between SPIFFS and LittleFS easy to do
2020-06-08 13:00:24 +02:00
Gijs Noorlander 1d97bb91c8 [ESP32 build] Fix capitalization error in #include <esp_partition.h>
Linux checks for case sensitive file names, Windows doesn't.
2020-06-08 12:10:56 +02:00
Gijs Noorlander 25459bb4e5 [ESP32] Fix Disabling ARDUINO_OTA fails the build (#3083)
Fixes: #3083
2020-06-08 11:49:36 +02:00
Gijs Noorlander 4aeb762634 [Notifiers] switch from NOTIFIER_SET_NONE to USES_NOTIFIER in code
`NOTIFIER_SET_NONE` should only be used for not adding default selection of plugins.
The positive define (USES_NOTIFIER) should be used in the code to determine whether the notifier page should be displayed.  (and included in the code)
2020-06-08 11:19:06 +02:00
Gijs Noorlander fe3b1e73a2 Merge remote-tracking branch 'origin/feature/deprecate_SPIFFS' into feature/deprecate_SPIFFS 2020-06-08 10:46:07 +02:00
Gijs Noorlander e633cf81b2 [Notifications] Show notification tab when notifiers set via Custom.h 2020-06-08 10:45:59 +02:00
TD-erandGitHub f7f592e84b Merge branch 'mega' into feature/GPS_traveled 2020-06-08 10:03:08 +02:00
TD-erandGitHub 997dfccd61 Merge branch 'mega' into feature/deprecate_SPIFFS 2020-06-08 08:51:51 +02:00
Gijs Noorlander 4b756a5b35 [Build] Limit build size (no diagnostics) for test_beta_ESP8266_4M1M 2020-06-07 12:25:53 +02:00
TD-erandGitHub 7a353b1278 Merge pull request #3104 from TD-er/issue/3100_extend_custombuild
[Build] Add ina219 and mpu6050 to custom build (#3100)
2020-06-07 02:41:44 +02:00
Gijs Noorlander 5a5045c299 [Commands] Split commands.ino to .h/.cpp to overcome build/link issues 2020-06-07 02:39:35 +02:00
Gijs Noorlander 73df4a8295 [Build] Disabling timing stats results in build errors for ESP32
Still something that needs to be investigated further.
Probably something related to how .ino files (Webserver code) are compiled
2020-06-07 00:43:45 +02:00
TD-erandGitHub efde7af5ea Merge branch 'mega' into feature/GPS_traveled 2020-06-06 20:20:37 +02:00
TD-erandGitHub d4464b55cf Merge branch 'mega' into P1WifiGateway-30cbb4c 2020-06-06 20:19:30 +02:00
Gijs Noorlander ea7713dd79 [Build] Disable diagnostics code for test_ESP8266_4M1M_VCC to fit size 2020-06-06 20:18:02 +02:00
TD-erandGitHub 15c34eea02 Merge pull request #3007 from denisfrench/connect_msg_lwt_settings
[MQTT] Connect message honors LWT settings (#3006)
2020-06-06 17:12:11 +02:00
TD-erandGitHub 193d4c9217 Merge branch 'mega' into feature/deprecate_SPIFFS 2020-06-06 16:57:23 +02:00
TD-erandGitHub 158d7aa50a Merge branch 'mega' into issue/3100_extend_custombuild 2020-06-06 16:54:17 +02:00
Gijs Noorlander ac3c46c227 [Build] Add ina219 and mpu6050 to custom build (#3100)
Fixes: #3100
2020-06-06 16:53:46 +02:00
TD-erandGitHub e029b9cb76 Merge pull request #3102 from TD-er/bugfix/Vagrant_build
[Vagrant] Fix building issues with Python 3.8 on Vagrant
2020-06-06 16:40:34 +02:00
Gijs Noorlander b0a7825a2e [GPS] Add GPS#travelled=... event (#3099)
Fixes: #3099
2020-06-06 16:17:54 +02:00
TD-erandGitHub 6a7fde52d1 Merge pull request #3008 from uzi18/rfid_events
rfid events update for P008/P017/P040, plus send event after log line, #2982 #3002
2020-06-06 15:58:49 +02:00
TD-erandGitHub 0daff9aba9 Merge branch 'mega' into ESP32_ARDUINO_OTA 2020-06-06 15:58:06 +02:00
TD-erandGitHub 9cf7cc6a73 Merge branch 'mega' into connect_msg_lwt_settings 2020-06-06 15:56:56 +02:00
TD-erandGitHub f918e3fe7c Merge branch 'mega' into feature/deprecate_SPIFFS 2020-06-06 15:55:30 +02:00
TD-erandGitHub df35054c12 Merge pull request #3096 from letscontrolit/bugfix/cplugin_init_all
[Bug] ControllerIndex not set when calling CPLUGIN calls
2020-06-06 15:52:33 +02:00
TD-erandGitHub c95bd7c831 Merge pull request #3090 from tonhuisman/feature/rules_page
[Rules page] Add RTD help button and fix page layout issue ('Old Engi…
2020-06-06 15:50:36 +02:00
TD-erandGitHub bb17cb8487 Merge branch 'mega' into P1WifiGateway-30cbb4c 2020-06-06 15:49:48 +02:00
Gijs Noorlander 39a10b0741 [Build] Fix Python 3.8 build when no .git dir or pygit2 not installed 2020-06-06 15:37:06 +02:00
Gijs Noorlander 6a8156e854 [Travis] Fix deploy multiple ZIP files + split ESP82xx and ESP32 files 2020-06-06 14:37:39 +02:00
Gijs Noorlander fd35ce7bf3 [Notifications] Make sure all custom defines are set at compile time 2020-06-06 13:58:39 +02:00
Gijs Noorlander 7cd26bdf90 [Vagrant] Fix vagrant build installing all required Python packages 2020-06-06 13:41:02 +02:00
Gijs Noorlander d485a5b785 [PIO] Hide deprecated warning for SPIFFS 2020-06-06 12:43:54 +02:00
TD-erandGitHub f96c8ee980 Merge pull request #3097 from workgroupengineering/bugfix/cron_parse_uint
Fix  ccronexpr parse_uint
2020-06-03 20:53:47 +02:00
Saverio Cisternino 5eb94adedc Fix parse_uint ref https://github.com/staticlibs/ccronexpr/pull/30 2020-06-03 17:48:13 +02:00
TD-erandGitHub 268c259f1b Merge pull request #3094 from tonhuisman/feature/value_formattings
[Transformation] Add L/l and c transformations (LEFT/RIGHT, L/R and OPEN/CLOSED)
2020-06-02 21:20:43 +02:00
Peter Kretz c01e8fdfc9 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support 2020-05-31 22:54:43 +02:00
TD-erandGitHub 4c7e1b9926 [Bug] ControllerIndex not set when calling CPLUGIN calls
As reported by @sakinit
2020-05-31 21:40:35 +02:00
Ton HuismanandGitHub dd252ff17d Merge branch 'mega' into feature/value_formattings 2020-05-31 15:21:20 +02:00
TD-erandGitHub d82163a98a Merge pull request #3095 from tonhuisman/feature/3093_elsif_documentation
[Docs] Describe 'elseif' with some examples
2020-05-31 15:08:08 +02:00
Ton HuismanandGitHub 28f1fcec8f Merge branch 'mega' into feature/3093_elsif_documentation 2020-05-31 14:16:24 +02:00
tonhuisman f0597082a5 [Docs] Describe 'elseif' with some examples 2020-05-31 14:14:38 +02:00
tonhuisman 4ba9e2575e [Justifications] Added u/l for upper/lowercasing the value, removed dash-check from C justificaion 2020-05-31 13:07:26 +02:00
tonhuisman a7a09b2917 [Justifications] Add 'C' (Capitalize, OPEN -> Open) option 2020-05-31 11:51:23 +02:00
tonhuisman 209f9da365 Merge branch 'feature/value_formattings' of https://github.com/tonhuisman/ESPEasy-1 into feature/value_formattings 2020-05-31 10:33:10 +02:00
tonhuisman 700e6babd6 [Transformations] Adjusted R/r to L/l and added c 2020-05-31 10:31:31 +02:00
sakinit c4182026e8 Update based on review comments 2020-05-30 16:41:24 +02:00
sakinit e96c3772e8 Discard data received from WiFi client due to review comment 2020-05-30 14:47:18 +02:00
sakinit a65d1a6c51 Add sanity checks based on review comments 2020-05-30 14:20:12 +02:00
TD-erandGitHub 12b7a005f8 Merge branch 'mega' into feature/value_formattings 2020-05-30 10:01:43 +02:00
tonhuisman fdc6ce70d2 [Transformation] Add R/r transformations (LEFT/RIGHT and L/R) 2020-05-29 20:01:32 +02:00
sakinit d7a91aba60 Update due to review comments 2020-05-29 18:57:19 +02:00
sakinit 6fcd00252f Optimize serial in duration 2020-05-29 14:10:50 +02:00
sakinit 6a79dbe0da Fix ESP32 reboot cause at boot/setup 2020-05-29 08:34:24 +02:00
sakinit 5d8f6f4924 Optimize serial reading algorithm and move client from plugin into task 2020-05-29 08:33:52 +02:00
sakinit 86de58403e Restart P1WifiGateway if webserver start failed
Needed for ESP32 as the WiFiServer needs to time-out before it can
reuse the address as its platform implementation does not use REUSEADDR
2020-05-29 08:32:17 +02:00
sakinit 7d877accba Use ESPeasySerial 2020-05-29 08:32:07 +02:00
uwekaditz 794c40ea7c Merge tag 'mega-20200515' into UweKaditz 2020-05-25 11:59:22 +02:00
Peter Kretz da09f9e1bf Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support 2020-05-24 09:33:46 +02:00
TD-erandGitHub 9fe0bccc78 Merge pull request #3053 from uzi18/webserver_port
Webserver port + P2P information exchange
2020-05-23 23:36:33 +02:00
sakinit 87570b676a Remove temporary comments 2020-05-23 22:35:32 +02:00
sakinit f46b260414 Fix P1WifiGateway webserver start
When the plugin task data is initialized, the execution order is:
 - construct new data (and previously: start webserver)
 - destroy existing data
As the webserver is stopped at destruction of the existing data,
start the webserver after the existing data is destroyed ( and no
longer at construction).
2020-05-23 20:46:03 +02:00
sakinit e055f401da Fix the serial reading algorithm
The serial data reading algorithm is 'reverted' to commit 1de1350 to
handle the parsing results within reading loop again.
E.g. the 'start detected' error is logged again.
2020-05-23 19:48:09 +02:00
sakinit 792656938b Fix the datagram check to be able to send valid messages again
Tested for DSMR version 4, CRC on, with Domoticz as client
2020-05-23 19:47:36 +02:00
sakinit f4589662c0 Cherry-pick relevant P1WifiGateway updates since 30cbb4c
Cherry-picked from commits 591988c, 5fe5121, 9c384ee, 1de1350
2020-05-23 19:46:56 +02:00
sakinit e25fd0551c Revert P1WifiGateway to 30cbb4c to bugfix this more generic code 2020-05-23 19:46:28 +02:00
Gijs Noorlander 717ff99524 [PIO] Move to esp8266/Arduino core 2.7.1 2020-05-23 16:47:08 +02:00
Gijs Noorlander c36f4d250d [Build] Fix merge error 2020-05-23 16:45:06 +02:00
Ton HuismanandGitHub b73b077ea9 Merge branch 'mega' into feature/rules_page 2020-05-23 14:57:35 +02:00
tonhuisman 749c335bf1 [Rules page] Add RTD help button and fix page layout issue ('Old Engine') 2020-05-23 14:42:16 +02:00
Florin dbb5522f30 Disable Arduino OTA by default for ESP32 2020-05-23 00:35:07 -04:00
TD-erandGitHub dcfc3b2462 Merge branch 'mega' into webserver_port 2020-05-22 16:36:47 +02:00
TD-erandGitHub 516358be2c Merge branch 'mega' into feature/ethernet_or_wifi_support 2020-05-22 13:32:50 +02:00
TD-erandGitHub 129db32427 Merge pull request #3086 from fmuntean/NOTIFIER_SET_NONE
Clean up code and variables when NOTIFIER_SET_NONE is defined.
2020-05-22 13:15:46 +02:00
TD-erandGitHub e3bc9b2888 Merge pull request #3087 from fmuntean/ESP32_SPI
ESP32: Allow to select one of the two available SPI ports
2020-05-22 10:19:45 +02:00
TD-erandGitHub 65ecd4f164 Merge pull request #3088 from fmuntean/TimeOffset
Fix for allowing negative timeOffset from UTC in constructor
2020-05-22 10:19:27 +02:00
TD-erandGitHub 5aa9307b5d Merge branch 'mega' into NOTIFIER_SET_NONE 2020-05-22 10:18:55 +02:00
TD-erandGitHub 4aeec07180 Merge pull request #3085 from fmuntean/DEFAULT_LAT_LONG
Allow to set the Latitude and longitude
2020-05-22 10:18:35 +02:00
TD-erandGitHub 6aaed3cfb3 Merge pull request #3063 from sakinit/Fix-ESP32-undefined-pin-initialisation
Fix ESP32 undefined pin initialisation
2020-05-22 10:18:14 +02:00
TD-erandGitHub 2765225905 Merge pull request #3062 from sakinit/Fix-ESP32-Webbrowser-Rules-page
Show for ESP32 also the first rule on the webserver rules page
2020-05-22 10:17:49 +02:00
TD-erandGitHub ccce3a9bab Merge pull request #3084 from fmuntean/ESP32_TONE
Adding buzzer capabilities back to ESP32.
2020-05-22 10:17:22 +02:00
Ton HuismanandGitHub 535879f2ec Merge branch 'mega' into feature/apds_9960_parameters 2020-05-22 08:49:56 +02:00
Florin 9e4c518d6f rename the tone to toneESP32 to be more specific 2020-05-21 22:22:56 -04:00
TD-erandGitHub 2fe82840a6 Merge branch 'mega' into Fix-ESP32-undefined-pin-initialisation 2020-05-21 23:27:32 +02:00
TD-erandGitHub 46fb0ae056 Merge branch 'mega' into feature/deprecate_SPIFFS 2020-05-21 23:23:51 +02:00
TD-erandGitHub 962a25a70e Merge pull request #3060 from TD-er/bugfix/ESP32_serialport_selection
[ESPEasySerial] Update to v2.0.3 adding I2C UART to ESP32 + fix ESP32
2020-05-21 23:23:27 +02:00
TD-erandGitHub 992a3e4218 Merge branch 'mega' into Fix-ESP32-Webbrowser-Rules-page 2020-05-21 23:22:23 +02:00
TD-erandGitHub b0452df6cb Merge pull request #3076 from jimmys01/Ir-updates
[IR] Update Library
2020-05-21 23:21:24 +02:00
TD-erandGitHub e16df36571 Merge branch 'mega' into DEFAULT_LAT_LONG 2020-05-21 23:04:54 +02:00
TD-erandGitHub 267db2b94e Merge pull request #2956 from mobrembski/feature/add_raw_value_http
Added /raw endpoint which gives an easy access to raw value of sensor
2020-05-21 22:28:36 +02:00
Florin 90dc0386b9 Fix for allowing negative timeOffset from UTC in constructor 2020-05-21 00:53:29 -04:00
Florin 61eab3ec74 Merge branch 'NOTIFIER_SET_NONE' of github.com:fmuntean/ESPEasy into NOTIFIER_SET_NONE 2020-05-20 23:55:15 -04:00
Florin d8d2296c01 clean up code and variables when NOTIFIER_SET_NONE is defined. 2020-05-20 23:53:38 -04:00
Florin f33736b60f ESP32: Allow to select one of the two available SPI ports 2020-05-20 23:46:44 -04:00
Florin 45504c8f55 clean up code and variables when NOTIFIER_SET_NONE is defined. 2020-05-20 22:23:56 -04:00
Florin f952489f2d Allow to set the Latitude and longitude when resetting the firmware from custom.h or using the build_flags 2020-05-20 22:15:27 -04:00
Florin 6675d0b2d0 Adding buzzer capabilities back to ESP32. 2020-05-20 20:26:38 -04:00
Michał ObrembskiandMichał Obrembski a6616d4c4f Removed usage of String.clear()
It is not available in minimal_core_242_ESP8266_1M_OTA env
2020-05-19 13:39:27 +02:00
Michał ObrembskiandMichał Obrembski 0e03e2fda8 Renamed RAW to CSV, added printing of header 2020-05-19 10:19:16 +02:00
Michał ObrembskiandMichał Obrembski e2161521ae Fixed invalid check of valnr validity in CSV output mode 2020-05-19 10:19:16 +02:00
Michał ObrembskiandMichał Obrembski 60ddda946e Changed format of RAW to CSV, added ability to filter values 2020-05-19 10:19:16 +02:00
Michał ObrembskiandMichał Obrembski a33fef3974 Added /raw endpoint which gives an easy access to raw value of sensor
This will give you ability to get easy-parseable values for small embedded devices results
using only simple busybox tools such as awk or sed.
2020-05-19 10:19:16 +02:00
Ton HuismanandGitHub ff857ae97f Merge branch 'mega' into feature/apds_9960_parameters 2020-05-18 21:12:25 +02:00
jimmys01 6b6d65a38a [IR] Update Library 2020-05-18 20:44:43 +03:00
TD-er 241a3aeda0 automatically updated release notes for mega-20200515 2020-05-15 23:10:38 +02:00
Bartłomiej ZimońandGitHub 6a028c3e42 Merge branch 'mega' into webserver_port 2020-05-12 22:52:02 +02:00
uwekaditz fc33911c9f [P036] clearing window for scrolling lines was 1pix too large in y direction
CHG: clearing window for scrolling lines was 1pix too large in y direction
CHG: font settings for 64x48 updated
2020-05-11 18:50:36 +02:00
sakinit 9faeaf236c Don't repeat the last rule on the next webserver page 2020-05-10 16:31:48 +02:00
sakinit 4c65136cb0 Fix ESP32 undefined pin initialisation 2020-05-10 14:07:47 +02:00
sakinit 58366e5e6d Show for ESP32 also the first rule on the webserver rules page
Also mimic the behaviour of the ESP8266 implementation showing 26 rules
on a page duplicating the last rule as the first one on the next page.
2020-05-09 23:43:12 +02:00
Gijs Noorlander c320adef9c [ESPEasySerial] Update to v2.0.3 adding I2C UART to ESP32 + fix bug ESP32 2020-05-09 00:58:27 +02:00
Bartlomiej Zimon c32d82cc95 P2P: respect also build number in condition 2020-05-06 21:29:20 +00:00
Peter Kretz ca034db1ad - Error in Network Name fpr WiFi fixed
- logging improvements
2020-05-06 21:27:22 +02:00
uwekaditzandGitHub d7d4c32ba0 Merge branch 'mega' into UweKaditz 2020-05-06 21:06:12 +02:00
Peter Kretz 47fea79c24 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support
- Adaption from PullRequest #3055 to Ethernet: needsWiFi --> needsNetwork
2020-05-06 19:35:33 +02:00
TD-erandGitHub f222544a2f Merge branch 'mega' into mega 2020-05-06 16:20:24 +02:00
TD-erandGitHub d42d8daba3 Merge branch 'mega' into feature/deprecate_SPIFFS 2020-05-06 16:19:58 +02:00
TD-erandGitHub 586959fb71 Merge branch 'mega' into connect_msg_lwt_settings 2020-05-06 16:19:36 +02:00
TD-erandGitHub dd4ac70c11 Merge pull request #3055 from TD-er/bugfix/RN2483_send_without_wifi
[RN2483] Controller should also send to TTN when not connected to WiFi
2020-05-06 16:09:10 +02:00
Gijs Noorlander 75261097ba [RN2483] Controller should also send to TTN when not connected to WiFi 2020-05-06 11:52:07 +02:00
Bartlomiej Zimon f7e4867157 MDNS - send service with actual webserver port 2020-05-06 00:54:16 +00:00
Bartlomiej Zimon 6c3a687a22 Webserver port setting - add reboot note 2020-05-06 00:53:31 +00:00
uwekaditz 844183025c [P036] re-schedule Settings.TaskDeviceTimer after JumpToPage
CHG: re-schedule Settings.TaskDeviceTimer after JumpToPage to avoid any scheduled page change while jumping to pages
CHG: correct calculation of the page indicator counts
2020-05-05 22:11:55 +02:00
Ton HuismanandGitHub 8ecc28ff82 Merge branch 'mega' into feature/apds_9960_parameters 2020-05-05 09:23:55 +02:00
Bartlomiej Zimon 6730106bc0 Webserver - increase BUILD number and set default value for port number 2020-05-05 01:14:22 +00:00
Bartlomiej Zimon 8b71f68abc p2p infopacket - use low/highByte 2020-05-05 00:32:30 +00:00
Bartlomiej Zimon 6e4683b712 NodeStruct: init webgui_portnumber value 2020-05-04 23:49:48 +00:00
Bartlomiej Zimon b6069c3ee5 P2P: send and receive webserver port number, add port to link on rootpage #2252 2020-05-04 22:59:40 +00:00
Bartlomiej Zimon e2da5c26dd Webserver - add port number setting into Advanced options, resolves #3031 and #573 2020-05-04 22:48:39 +00:00
Gijs Noorlander 2faf88fd23 [LittleFS] Make switching between SPIFFS and LittleFS easy to do
Just add "_LittleFS" to the PIO env label and it will compile with LittleFS instead of SPIFFS.

First impression:
- Load speed of web page is just WOW! (average 170 msec)
- Saving settings is terribly slow (1...2 seconds)
2020-05-05 00:40:41 +02:00
Peter Kretz fac68514ac Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support
Conflicts resolved
2020-05-04 21:54:25 +02:00
uwekaditz 106be9348e [P036] merged with Tonis PR #3026
CHG merged with Tonis PR #3026
CHG: Jump to any page (Display button or command) is always without page scrolling
CHG: Jump to next page (Display button) is not allowed while page scrolling is running
2020-05-04 21:28:24 +02:00
uwekaditz 794d5f9b8b Merge branch 'UweKaditz' of https://github.com/uwekaditz/ESPEasy into UweKaditz 2020-05-04 19:16:35 +02:00
uwekaditz cf7f78a5b0 Merge remote-tracking branch 'upstream/mega' into UweKaditz 2020-05-04 19:12:23 +02:00
TD-erandGitHub a572fa3fde Merge pull request #3048 from TD-er/feature/PIO_generate_defines
[PIO] Generate filename at build, not in post processing
2020-05-04 18:52:28 +02:00
Gijs Noorlander 41d9db797a [Docs] Describe files in nightly builds 2020-05-04 18:09:00 +02:00
Gijs Noorlander 180af6a674 [PIO] Upgrade to platformio / platform-espressif8266 @2.5.0 2020-05-04 18:08:16 +02:00
uwekaditz cb945a5f89 [P036] temporary pointer to P036_data_struct was not deleted
BUG: temporary pointer to P036_data_struct was not deleted in PLUGIN_WEBFORM_LOAD
CHG: PLUGIN_WEBFORM_SAVE does not use a temporary pointer to P036_data_struct
CHG: Comments
2020-05-04 18:00:16 +02:00
Gijs Noorlander f7c5f0e88a [Shelly PLUG-S] Add template + build definition for Shelly PLUG-S
As mentioned a few times on the forum.
[one topic](https://www.letscontrolit.com/forum/viewtopic.php?f=5&t=7699)
2020-05-04 16:48:23 +02:00
Gijs Noorlander 932ffa9adb [Vagrant] Show Vagrant build as build origin on sysinfo page 2020-05-04 15:27:34 +02:00
Gijs Noorlander 8bf79a60f4 [Vagrant] Fix issue where update fails due to Grub interactive update 2020-05-04 15:18:28 +02:00
Gijs Noorlander 6182dd62ed [PIO] Add missing parts in the included source dir in the build ZIP file 2020-05-04 14:35:38 +02:00
Gijs Noorlander e47511c1a8 [PIO] Zip docs dir recursive 2020-05-04 00:52:00 +02:00
Gijs Noorlander 6253e4b2f4 [PIO] Split zip files in before_deploy
Split into a standard one containing the build, one for docs and one for .elf files and rejected files.
2020-05-04 00:44:32 +02:00
Gijs Noorlander c6a3da1785 [PIO] Adopt deploy scripts to new situation where Python scripts do all 2020-05-04 00:32:53 +02:00
Gijs Noorlander 568cf00f93 [PIO] Compare build sizes when copying the build files. 2020-05-04 00:31:55 +02:00
Gijs Noorlander 1dd23fb9cd [PIO] Update docs/requirements.txt 2020-05-04 00:31:04 +02:00
uwekaditzandGitHub a3d6d2d13d Merge branch 'mega' into UweKaditz 2020-05-03 23:46:55 +02:00
uwekaditz 061fe5a0a2 [P036] Memory optimization (issue #2799)
CHG: Memory optimization (issue #2799)
CHG: Added setting for 'Disable scrolling while WiFi is not connected', scrolling is not smooth as long as the ESP tries to connect Wifi (Load 100%!)
BUG: Wifi-Bars not fully right for 128 pixel wide displays
BUG: clearing window for scrolling lines was too high and to narrow
BUG: content of lines with pixel width > 255 had to be shortened
CHG: scrolling lines improved
CHG: variables renamed for better understanding
2020-05-03 23:30:41 +02:00
Peter Kretz 95609364ef Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support 2020-05-03 21:09:07 +02:00
Gijs Noorlander ea77edd48d [PIO] Include PlatformIO env dump in build output for diagnostics 2020-05-03 20:17:08 +02:00
Gijs Noorlander 0c7d0969ac [PIO] GZip and copy files to build_output directory 2020-05-03 18:34:53 +02:00
Gijs Noorlander ad0d775f65 [PIO] Use Python 3.8 on Vagrant/Ubuntu builds 2020-05-03 14:11:14 +02:00
Gijs Noorlander 35939785e2 [PIO] Relax PlatformIO version in requirements.txt to >= 4.3.3 2020-05-03 13:13:15 +02:00
Gijs Noorlander fa425224d0 [PIO] Updated packages in Python 3.8 requirements.txt list
Updated all packages we use to their latest version.

At least the latest Sphinx does seem to squish the documentation a bit, so we may need to update the template of our documentation.
2020-05-03 13:09:08 +02:00
Gijs Noorlander 3d3c3d5fe4 [PIO] Python 3.8 requirements.txt list
The pip freeze I used on my Windows PC to build
2020-05-03 13:07:40 +02:00
Gijs Noorlander 54a4e29016 [PIO] Move build environment to Python 3.8 as 2.7 is no longer supported 2020-05-03 12:53:08 +02:00
Gijs Noorlander 3be16b2186 [PIO] Add Git branch description to build info 2020-05-03 12:22:47 +02:00
Gijs Noorlander da27bfd13c [PIO] Final fix for proper quote level per OS + store build platform 2020-05-03 11:50:14 +02:00
Ton HuismanandGitHub c11235a494 Merge branch 'mega' into feature/apds_9960_parameters 2020-05-03 11:40:54 +02:00
Gijs Noorlander f05be9569f [PIO] Fix Windows/Linux detection in number of quote levels 2020-05-03 11:07:10 +02:00
Gijs Noorlander 3a62514576 [PIO] Attempt to fix missing quote level in Linux 2020-05-03 02:00:05 +02:00
Gijs Noorlander 2afbd0f3ee [PIO] Fix showing binary file name in sysinfo page 2020-05-03 01:45:15 +02:00
Gijs Noorlander 784404792c [PIO] Generate filename at build, not in post processing
Generate filename, included in the build
Use post Python scripts to move files to the right directory
Use post Python scripts to generate .bin.gz files.
2020-05-03 01:05:20 +02:00
TD-erandGitHub 9538a7198a Merge pull request #3042 from TD-er/bugfix/PVS_studio_issues
[Bugfix] PVS Studio issues
2020-05-02 16:11:05 +02:00
Gijs Noorlander 9016e37fbe [Build] Rename PIO environments referring core_263 to core_270 2020-05-02 15:28:37 +02:00
Gijs Noorlander b42672adb1 [Build] Add custom_beta_1M build
Beta:
- Core stage
- `PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_191105`

Regular:
- Released core
- `PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703`
2020-05-02 14:50:37 +02:00
Gijs Noorlander 4260efb3bd [Core 2.7.0] Switch to esp8266/Arduino 2.7.0 2020-05-02 14:47:57 +02:00
Gijs Noorlander 2704214f51 [ILI9341] Fix build error when building for 1M units 2020-05-02 14:46:37 +02:00
TD-erandGitHub 73ff639f8c Merge pull request #3043 from sakinit/Fix-ESP32-build-without-P001
Fix ESP32 build if P001 is not included
2020-05-01 22:29:36 +02:00
sakinit 75b7556d90 Fix ESP32 build if P001 is not included 2020-05-01 16:29:51 +02:00
Peter Kretz b0577f3447 _P124_Atlas_EZO_pH.ino and _P222_Atlas_EZO_ORP.ino deleted since ther are not in ESPEasy but in Playground. There is another Issu, to put them in ESPEasy mega 2020-05-01 13:43:47 +02:00
Peter Kretz efebcc8d01 removede personal upload flags 2020-04-30 21:27:12 +02:00
Peter Kretz d6a14cf9a5 Merge branch 'feature/ethernet_or_wifi_support' of https://github.com/kretzp/ESPEasy into feature/ethernet_or_wifi_support 2020-04-30 21:24:42 +02:00
Peter Kretz 7f1b359c31 addFormNote(F("Be aware with ESPEasyP2P Network, since IP Address will change. There could be conflicts.")); not used anymore because P2P UDP works good 2020-04-30 21:24:20 +02:00
Peter Kretz d326264c37 Check changed as requested by TD-er 2020-04-30 11:26:05 +02:00
Gijs Noorlander 64f15fb0c7 [PVS-Studio] Use correct array index in Plugin_Helper_serial.ino
May have been out of bound error on ESP32.
2020-04-30 01:08:41 +02:00
Gijs Noorlander 58c4a0c403 [PVS-Studio] Remove unused variable in SenseAir plugin 2020-04-30 01:07:38 +02:00
Gijs Noorlander d60e8dfcc1 [PVS-Studio] Use implicit cast to float in scheduler idle time stats 2020-04-30 01:07:07 +02:00
Gijs Noorlander 2e1366bf93 [PVS-Studio] Merge duplicate case statements 2020-04-30 01:05:25 +02:00
Gijs Noorlander a0af39cf10 [PVS-studio] Suppress char out of range warning in static data 2020-04-30 01:04:02 +02:00
Gijs Noorlander 875459f26b [PVS-studio] Fix possible out of range array access 2020-04-30 01:03:16 +02:00
Gijs Noorlander 0455d47744 [PVS-Studio] Fix 'dangerous' macro by using braces. 2020-04-30 01:02:08 +02:00
Gijs Noorlander 62679022cb [PVS-Studio] Suppress char out of range warning in static data 2020-04-30 01:01:20 +02:00
Gijs Noorlander 8907d5544e [PVS Studio] Framed OLED: Simplify check for turning on display
An excessive check can be simplified. The '(A && !B) || (!A && B)' expression is equivalent to the 'bool(A) != bool(B)' expression.
2020-04-29 23:46:47 +02:00
Gijs Noorlander 000399ba86 [PVS-Studio] SSDP Specify printf format
[CWE-134](https://cwe.mitre.org/data/definitions/134.html?utm_source=platformio&utm_medium=piohome):It's dangerous to call the 'printf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
2020-04-29 22:53:02 +02:00
Gijs Noorlander 703a344cc9 [PVS-Studio] ESPEasy p2p incorrect check for binary data
[CWE-571](https://cwe.mitre.org/data/definitions/571.html?utm_source=platformio&utm_medium=piohome):Expression 'packetBuffer[0] != 255' is always true. The value range of char type: [-128, 127].
2020-04-29 22:49:14 +02:00
Peter Kretz 0a2896a0f3 This String function is not needed, because there is a
ETH.macAddress()
which returns a String.
I changed it to the byte version of the function and now
uint8_t * NetworkMacAddressAsBytes(uint8_t* mac)
returns either this in Ethernet mode or
WiFi.macAddress(mac)
in Wifi mode.
2020-04-29 22:12:09 +02:00
Gijs Noorlander fffb5facde [PVS-Studio] CWE-1164:The 'note' variable was assigned the same value. 2020-04-29 22:08:27 +02:00
Gijs Noorlander 832e6e37ef [PVS-Studio] Redundant check in rules conditionMatchExtended
[CWE-571](https://cwe.mitre.org/data/definitions/571.html?utm_source=platformio&utm_medium=piohome):A part of conditional expression is always true: (condOr < condAnd).
2020-04-29 21:53:52 +02:00
Gijs Noorlander 99517ba012 [PVS-Studio] File info struct in webserver rules not all initialized 2020-04-29 21:48:44 +02:00
Gijs Noorlander cc092cfad7 [PVS-Studio] Error log in rules not complete 2020-04-29 21:47:50 +02:00
Gijs Noorlander ec136c7263 [PVS-Studio] FrasmedOLED display pointer dereference before check !NULL 2020-04-29 21:44:01 +02:00
Gijs Noorlander 710eb7d3fc [PVS-Studio] Missing break; in switch statement (C018 RN2483 TTN) 2020-04-29 21:42:48 +02:00
Gijs Noorlander 5ba0dc4608 [PVS-Studio] Not all members of a class are initialized 2020-04-29 21:41:55 +02:00
Gijs Noorlander ff4c9a20e9 [PVS-Studio] EventStruct has no operator= 2020-04-29 21:41:07 +02:00
Gijs Noorlander abf6ffd292 [PVS-Studio] sizeof(Device) -> Device.size()
The 'sizeof (Device)' expression returns the size of the container type, not the number of elements. Consider using the 'size()' function.
2020-04-29 21:39:48 +02:00
Peter Kretz 509a662521 Merge branch 'feature/ethernet_or_wifi_support' of https://github.com/kretzp/ESPEasy into feature/ethernet_or_wifi_support 2020-04-29 19:10:04 +02:00
Peter Kretz c0bdea0941 - UDP / ESPEasyP2P now works for ETHERNET
- Hostname Handling refactored for better overview:
  - String NetworkGetHostNameFromSettings() returns Settings.getHostname()
  - String NetworkCreateRFCCompliantHostname() creates a RFCcompliant Hostname from Settings.cpp
  - String NetworkGetHostname() returns the Hostname prevoiusly set in ETH or Wifi dependong on Mode
- MacAddress Handling refactored
  - String NetworkMacAddress() returns the Mac addres of ETH or Wifi depending on Mode
  - String WifiSoftAPmacAddress() returns WiFi.softAPmacAddress(mac) as String
2020-04-29 19:03:31 +02:00
Peter Kretz 250a345e33 Fixed bug reported by mobremski 2020-04-29 12:21:20 +02:00
Peter Kretz cde9052283 Fixed ci compile bug
https://travis-ci.org/github/letscontrolit/ESPEasy/builds/680724129
2020-04-28 23:28:45 +02:00
Peter Kretz b1a3d747c0 Fixed
https://travis-ci.org/github/letscontrolit/ESPEasy/builds/680698472
ci build error
2020-04-28 21:48:59 +02:00
Peter Kretz 691824477f - New events: ETHERNET#Connected and ETHERNET#Disconnected 2020-04-28 21:18:59 +02:00
Peter Kretz db94e1668c removed upload flags 2020-04-28 20:18:20 +02:00
Peter Kretz 8244e0ecf2 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support 2020-04-28 20:14:38 +02:00
Peter Kretz e68e6eca3c Network.h/cpp --> ESPEasyNetwork.h/cpp 2020-04-28 20:13:49 +02:00
Peter Kretz a489b41230 ESPEasyWiFi_credentials.ino --> cpp/h
ESPEasyWiFi_ProcessEvent.ino --> cpp/h
ESPEasyWiFi.ino --> cpp/h
2020-04-28 19:44:26 +02:00
Jean-Michel DECORET 17bdacd51a Fix documentation typo 2020-04-28 13:41:59 +02:00
Jean-Michel DECORET 6080c264e4 Merge branch 'mega' of https://github.com/jano42/ESPEasy into mega 2020-04-28 09:23:40 +02:00
Jean-Michel DECORET 72f7b9776f Fix documentation typo 2020-04-28 09:23:18 +02:00
Peter Kretz 6585a48f39 ESPEasyEth.ino --> ESPEasyEth.cpp/h
Network.ino --> Network.cpp/h
2020-04-27 22:56:26 +02:00
Peter Kretz 24d9dc19a4 - ETHEvents moved to WifiEvents, because they are the same type 2020-04-27 22:18:55 +02:00
TD-erandGitHub fe5d65997f Merge branch 'mega' into mega 2020-04-27 22:02:50 +02:00
Peter Kretz a6f75806f0 - Ethernet Commands
- remove useless comments
- ETH.config moved after ETH.begin
- Added note: Be aware with ESPEasyP2P Network, since IP Address will change. There could be conflicts.
- Ethernet JSON
- Ethernet Variables
2020-04-27 21:59:21 +02:00
Ton HuismanandGitHub 1daae7f90a Merge branch 'mega' into feature/apds_9960_parameters 2020-04-27 21:46:34 +02:00
tonhuisman 8f83091d04 [P064] Made code-readability and other improvements as TD-er suggested, fixed a swapped argument bug 2020-04-27 20:36:09 +02:00
TD-erandGitHub 637e14b5cb Merge pull request #3034 from TD-er/bugfix/ADC-zero
[ADC] Improve oversampling filtering + ESP32 support
2020-04-27 17:52:24 +02:00
Jean-Michel DECORET aa19657fe4 Remove useless comments
Use BUILD_NO_DEBUG define
Add display timings
Fix input text to handle degress and monetary symbols (specific for adafruit gfx lib with eink screen)
2020-04-27 15:20:21 +02:00
Jean-Michel DECORET 73a122657d Optimize code:
- remove unwanted output
- move http answer only in debug mode
- fix functions args to const
- optimize parsing color data
2020-04-27 13:41:21 +02:00
Jean-Michel DECORET 3b52fe1205 Add SPI device type 2020-04-27 13:39:36 +02:00
TD-erandGitHub 5c3d248139 Merge branch 'mega' into bugfix/ADC-zero 2020-04-27 13:37:40 +02:00
uwekaditz 256fe2401c Merge tag 'mega-20200426' into UweKaditz 2020-04-27 13:08:31 +02:00
Ton HuismanandGitHub 043afcecde Merge branch 'mega' into feature/apds_9960_parameters 2020-04-27 12:04:53 +02:00
tonhuisman 845d25621a [P064] Gesture - APDS-9960 plugin: Added switching plugin mode and settings to fine-tune without recompiling source
[APDS-9960 library] Added extensions and applied fixes from original Github project (including not merged yet improvements)
[P064] Added/updated documentation for Gesture - APDS-9960 plugin
[Documentation] Updated footer copyright notice to show 2018..2020
2020-04-27 11:26:48 +02:00
Peter Kretz 09a149e7c4 Removed some comments
Build now working with HAS_ETHERNET not defined
2020-04-26 23:16:33 +02:00
Peter Kretz fdfdd7fe73 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_or_wifi_support 2020-04-26 22:32:00 +02:00
Peter Kretz 6632dec482 ESP32 with Ethernet or Wifi, not both at the same time configurable via Hardware Page.
- ESP P2P is working
- Only ETH.beginPacket() with Standard Parameter is working at the moment, configuration will follow.
- Network.in not cpp/h files but this will be changed in future
- Some TODO: PKR: comments will be removed in the future, too
2020-04-26 22:29:56 +02:00
TD-er ecc96473c8 automatically updated release notes for mega-20200426 2020-04-26 01:27:18 +02:00
TD-erandGitHub 80a2907cec Merge branch 'mega' into rfid_events 2020-04-26 01:00:15 +02:00
TD-erandGitHub 23c3e2c180 Merge branch 'mega' into connect_msg_lwt_settings 2020-04-26 00:59:37 +02:00
Gijs Noorlander 254443d0fc [docs] Update docs for P002_ADC 2020-04-26 00:45:30 +02:00
Gijs Noorlander 31aa26a474 [Docs] Add documentation for P097_Touch and P095_ILI9341 2020-04-26 00:11:44 +02:00
Gijs Noorlander 8b552c26c8 [Touch] Split Touch Pad support into new plugin 2020-04-26 00:10:49 +02:00
Gijs Noorlander fb9c6e5972 [Bitset operators] Use Arduino macros instead of our own functions
@Uzi18 suggested it.
2020-04-25 16:01:04 +02:00
Peter Kretz 29cf32d6ad Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into feature/ethernet_support 2020-04-25 11:19:05 +02:00
Peter Kretz 64a4bbcb8a Change requested by TD-er review: clarification of build file
https://github.com/letscontrolit/ESPEasy/pull/2962/files/8ba2bb88eadb98c4691cbb1f40c4d5466cb7b5b8
2020-04-25 11:17:11 +02:00
TD-erandGitHub 9022fae50c Merge branch 'mega' into bugfix/ADC-zero 2020-04-25 02:11:27 +02:00
TD-erandGitHub 5e3b4448bf Merge pull request #3028 from TD-er/bugfix/RN2483_I2C_serial
[RN2483] Improve baudrate detection and I2C->UART link
2020-04-25 02:10:19 +02:00
TD-erandGitHub 923872a468 Merge pull request #3005 from TD-er/bugfix/2987_rules_if
[rules] Allow "if [" and "if[" in rules (#2987)
2020-04-25 02:09:37 +02:00
Gijs Noorlander 6a328e7b0f [ADC] Add Touch/Hall Effect for ESP32 + ADC pin selection
Can be configured to send an event when an ADC pin was touched.
2020-04-25 01:51:37 +02:00
Peter Kretz 32dfba3d86 - Moved ETHEvent from ESPEasy.ino to ESPEasyEthEvent.ino
- Corrected Hostname Setting
- ESPEasy P2P works now with some minor changes for IP-Address Handling in Network.ino
2020-04-25 00:52:33 +02:00
Jean-Michel DECORET 77d5d5bbfa Add eInk plugin
Allow to control eInk screen through HTTP API
2020-04-24 17:19:10 +02:00
Gijs Noorlander c6e021ce7d [ADC] Perform ADC read at boot + improve filtering for P002_ADC 2020-04-24 16:20:30 +02:00
Peter Kretz cba9b60097 Extended the great work from Michał Obrembski mobrembski, so that:
- mqtt works
- WifiConnected works as EthernetConnected
2020-04-24 13:16:54 +02:00
Peter Kretz b1878c7685 Merge branch 'feature/ethernet_support' of https://github.com/mobrembski/ESPEasy into mega 2020-04-24 13:08:31 +02:00
Peter Kretz 1de04294cc - Atlas EZO new webserver added
- Serial --> logging
- No [TESTING]
2020-04-24 12:32:35 +02:00
Peter Kretz d058dd56f1 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2020-04-24 12:29:21 +02:00
Gijs Noorlander 336c92f1ab [ADC] Format using uncrustify 2020-04-24 02:24:37 +02:00
Gijs Noorlander 693647a2f1 [ADC] Perform VCC read before starting any WiFi activity 2020-04-24 02:20:58 +02:00
Gijs Noorlander a272950d2f [ADC] Allow multiple instances of ADC plugin (ESP32) 2020-04-24 02:20:23 +02:00
TD-erandGitHub 11ce314db1 Merge branch 'mega' into bugfix/2987_rules_if 2020-04-24 01:30:06 +02:00
Gijs Noorlander 80e1129d20 [Rules] Clarify syntax error auto correct log entry 2020-04-24 00:43:58 +02:00
Gijs Noorlander 88df76bba5 [RN2483] Rename sendAutoBaud to sendWakeSequence 2020-04-24 00:29:58 +02:00
uwekaditz 51b1019796 Merge remote-tracking branch 'upstream/mega' into UweKaditz 2020-04-22 17:45:12 +02:00
Gijs Noorlander 1f93820ea5 Merge remote-tracking branch 'origin/bugfix/RN2483_I2C_serial' into bugfix/RN2483_I2C_serial 2020-04-20 01:09:41 +02:00
Gijs Noorlander 11909928ab [RN2483] Fix build error for ESP32 2020-04-20 01:09:25 +02:00
TD-erandGitHub b22bbe3ec6 Merge branch 'mega' into bugfix/RN2483_I2C_serial 2020-04-20 00:10:58 +02:00
Gijs Noorlander 0bff9358ee [RN2483] Improve Autobaud + unit detection at boot 2020-04-19 23:05:35 +02:00
TD-erandGitHub 4111f05d73 Merge pull request #3027 from sakinit/Fix-ESP32-serialwrite
Fix ESP32 serial write
2020-04-19 21:45:00 +02:00
sakinit b0b191cb7f Fix ESP32 serial write
Use availableForWrite for ESP32 as it is available
2020-04-19 20:28:20 +02:00
Gijs Noorlander e50a5956a7 [RN2483] Only alter set keys if either OTAA or ABP is set 2020-04-19 16:55:42 +02:00
Gijs Noorlander 1d3a22949d [RN2483] SWserial override as a define 2020-04-19 16:51:30 +02:00
Gijs Noorlander 3445cbee36 [ESPEasySerial] Update v2.0.1: Only use SWserial override on HW serial 2020-04-19 16:49:42 +02:00
Gijs Noorlander 719b571d75 [Controller] Make use extended credentials optional per controller 2020-04-19 16:46:03 +02:00
TD-erandGitHub e9b11c3a09 [HTTP command] Fix incorrect check for valid port
As reported by @sakinit via email
2020-04-18 13:58:14 +02:00
TD-erandGitHub 636435ffd7 Merge branch 'mega' into bugfix/2987_rules_if 2020-04-18 13:51:47 +02:00
TD-erandGitHub 159faac8f8 Merge branch 'mega' into connect_msg_lwt_settings 2020-04-18 13:51:32 +02:00
TD-erandGitHub eacb473b2f Merge pull request #3018 from Sprinterfreak/mega-feature-default-reset-pin
Make default reset button gpio configurable
2020-04-18 13:51:10 +02:00
TD-erandGitHub 1547ffd23e Merge pull request #3020 from TD-er/bugfix/3019_pulsecounter_set
[Pulse Counter] Call PLUGIN_READ after set counter (#3019)
2020-04-18 13:50:24 +02:00
TD-erandGitHub bc2fb78b45 Merge pull request #3017 from uzi18/esp32_crc_py
ESP32: fill binary filename, count MD5 only for esp8266
2020-04-18 13:49:51 +02:00
Gijs Noorlander bbbd3efe4d [Rules] Check for common mistakes and patch before parsing 2020-04-18 01:12:08 +02:00
uwekaditz 5258cecdce Merge branch 'UweKaditz' of https://github.com/uwekaditz/ESPEasy into UweKaditz 2020-04-16 19:43:42 +02:00
TD-erandGitHub a0374079eb Merge branch 'mega' into bugfix/2987_rules_if 2020-04-16 01:39:14 +02:00
TD-erandGitHub 515ba7b507 Merge pull request #3001 from uzi18/dallas_esp32
P004_dallas: esp32 optimisation - move bit read/write to IRAM
2020-04-15 23:30:13 +02:00
TD-erandGitHub 2161a16ed7 Merge branch 'mega' into dallas_esp32 2020-04-15 23:29:15 +02:00
TD-erandGitHub 89355b0c7e Merge pull request #3003 from uzi18/move_to_hashlib
crc2: move to hashlib
2020-04-15 22:28:25 +02:00
Gijs Noorlander 394ecfc455 [MQTT] Stop trying to send LWT connected when client disconnects 2020-04-15 14:36:13 +02:00
Gijs Noorlander 7238f7c23b [MQTT] Process publish LWT connect message asynchronous
If publish of LWT connect message fails during connect, retry later.
The connect state should not depend on it.
2020-04-15 14:23:54 +02:00
Gijs Noorlander 1cf4bb43dc [Pulse Counter] Use unused 4th UserVar to restore total pulse counter 2020-04-15 11:18:14 +02:00
Bartlomiej Zimon f133c2b759 PN532: update comment 2020-04-14 19:40:28 +00:00
Gijs Noorlander fc8c0b56a1 [Pulse Counter] Call PLUGIN_READ after set counter (#3019)
Fixes: #3019
Only setting the internal counter values is not enough.
The output values must also be set and a call to any optional formula must also be made.
A call to `PLUGIN_READ` will also store the values in RTC.
2020-04-14 21:21:50 +02:00
Bartlomiej Zimon 5c4952c575 PN532: remove hardcoded scl/sda pins reading and use hardware configuration instead 2020-04-14 16:30:15 +00:00
Bartlomiej Zimon f0d81c9150 ESP/ESP32: add id_tag for future proposes and use it to detect firmware.bin 2020-04-14 16:20:05 +00:00
Jan-Jonas Sämann 1944f563a4 Make default reset button gpio configurable
Especially on some custom devices wich need custom builds, the variable
is missing. This provides a new environment variable to customize the
default pin for the reset button.
2020-04-14 02:35:53 +02:00
Bartlomiej Zimon d2f276c135 ESP32: fill binary filename, count MD5 only for esp8266 2020-04-14 00:24:30 +00:00
TD-erandGitHub a0d66be8a5 Merge branch 'mega' into connect_msg_lwt_settings 2020-04-13 22:57:50 +02:00
TD-erandGitHub 3c1f993648 Merge branch 'mega' into bugfix/2987_rules_if 2020-04-13 22:57:08 +02:00
Michał ObrembskiandMichał Obrembski da1039e7f2 Added basic implementation of Ethernet Static IP 2020-04-13 15:13:16 +02:00
Michał ObrembskiandMichał Obrembski 6137da89f0 Moved WifiGetHostname into more generic createRFCCompliantHostname 2020-04-13 15:13:16 +02:00
Michał ObrembskiandMichał Obrembski 7584ce6cc9 Renamed functions in ESPEasyEth, added eth* prefix 2020-04-13 15:13:16 +02:00
Michał ObrembskiandMichał Obrembski 9314523c22 Remove ifdefs for Ethernet in settings 2020-04-13 15:13:14 +02:00
Michał ObrembskiandMichał Obrembski 5f15e98e5a Fix build on devices without Ethernet.
Forget to adjust size of GpioFactorySettingsStruct.
2020-04-13 15:11:54 +02:00
Michał ObrembskiandMichał Obrembski dffd7ebfc1 Increased BUILD number to 20107 2020-04-13 15:11:52 +02:00
Michał ObrembskiandMichał Obrembski c7b9f3f55e Added Olimex ESP32-PoE board to DeviceModel and default settings 2020-04-13 15:07:35 +02:00
Michał ObrembskiandMichał Obrembski b4f01b4b5a Added configuration of Eth Phy via Hardware settings web page 2020-04-13 15:07:35 +02:00
Michał ObrembskiandMichał Obrembski 14d91ccf10 Added displaying Ethernet parameter in sysinfo and root page 2020-04-13 15:07:35 +02:00
Michał ObrembskiandMichał Obrembski 137f4e4e37 Initial Ethernet support 2020-04-13 15:07:35 +02:00
TD-erandGitHub 9df28373f3 Merge pull request #3016 from TD-er/bugfix/3015_controller_pass_cleared
[Controller] Only update password when it is not "*****" (#3015)
2020-04-13 14:25:52 +02:00
TD-erandGitHub 40d79ba608 Merge pull request #3009 from TD-er/bugfix/clearUserVar_delete_task
[RTC task values] Clear last task values when adding new task
2020-04-13 14:12:12 +02:00
TD-erandGitHub b2a7071e0e Merge branch 'mega' into bugfix/clearUserVar_delete_task 2020-04-13 14:12:02 +02:00
TD-erandGitHub 8d1dc7fd97 Merge pull request #3013 from uzi18/webserver_update
ESP32: Add HTTP OTA functionality
2020-04-13 14:06:25 +02:00
TD-er 388de405e0 [Controller] Only update password when it is not "*****" (#3015)
Fixes: #3015
2020-04-13 13:44:58 +02:00
TD-erandGitHub 3592a53e78 Merge pull request #3014 from ToniA/HeatpumpIR
HeatpumpIR 1.0.15 update
2020-04-13 12:34:54 +02:00
Gijs Noorlander 1bfb6cd56f [ESP32 OTA] Exclude ESP32HTTPUpdateServer lib for ESP82xx builds 2020-04-13 10:23:54 +02:00
Toni 68fae61355 HeatpumpIR 1.0.15 update 2020-04-13 10:28:15 +03:00
TD-erandGitHub a92e9d4f37 Merge branch 'mega' into webserver_update 2020-04-13 01:53:09 +02:00
Gijs Noorlander 52924623d8 [ESP32 OTA] Show sketch size in sysinfo page 2020-04-13 01:51:19 +02:00
Bartlomiej Zimon cb8a4cc407 ESP32: add new ESP32HTTPUpdateServer lib 2020-04-12 22:15:42 +00:00
Bartlomiej Zimon c53a6534ec ESP32: add to webserver firmware update feature 2020-04-12 22:15:25 +00:00
Gijs Noorlander 2cba386e76 Fix build issue 2020-04-12 23:41:23 +02:00
Gijs Noorlander f15d583b06 [Cleanup] Code formatting for Pulse Counter 2020-04-12 21:59:57 +02:00
Gijs Noorlander a9f555538c [PulseCounter] Add SetPulseCounterTotal command
As requested on the [forum](https://www.letscontrolit.com/forum/viewtopic.php?p=43922#p43922)
2020-04-12 21:59:22 +02:00
TD-erandGitHub 40d15617da Merge pull request #3011 from TD-er/bugfix/2985_wificonnect
[WiFi] Fix WiFiConnect command should force (re)connect (#2985)
2020-04-12 21:08:48 +02:00
TD-erandGitHub f7c99799fe Merge pull request #2693 from jano42/mega
Add plugin Display TFT - ILI9341
2020-04-12 16:37:57 +02:00
TD-erandGitHub 1127fdaa7d Merge pull request #3000 from uzi18/before_deploy
Before deploy - update release script to also include factory bins for esp32 (with bootloader etc.) fix #2941
2020-04-12 16:36:15 +02:00
TD-er 64ed9f7cbf [WiFi] Fix WiFiConnect command should force (re)connect (#2985)
Fixes: #2985
2020-04-12 16:34:03 +02:00
TD-erandGitHub 0624c6550e Merge pull request #3010 from TD-er/feature/stalebot
[GitHub] Add stale bot to manage inactive issues
2020-04-12 15:53:29 +02:00
TD-er 9f381f7872 [GitHub] Add stale bot to manage inactive issues
It has become next to impossible to keep track of active issues due to the sheer amount of open issues.

So let's enable the stale bot to let the users requesting issues decide whether an issue is still active or not.
2020-04-12 15:52:42 +02:00
TD-erandGitHub ce09c15e4e Merge branch 'mega' into before_deploy 2020-04-12 15:21:14 +02:00
TD-er 938cf0626f [RTC task values] Clear last task values when adding new task
As discussed on the [forum](https://www.letscontrolit.com/forum/viewtopic.php?p=43886#p43886)

Just to make sure there are no strange values left of any previously used task when adding a new task.
2020-04-12 15:17:40 +02:00
TD-erandGitHub 0feb2e0857 Merge branch 'mega' into connect_msg_lwt_settings 2020-04-12 14:44:17 +02:00
Bartlomiej Zimon 03aad0e44e rfid events update for P008/P017/P040, plus send event after log line. 2020-04-12 12:15:58 +00:00
TD-er 3d9c1858b3 [rules] Allow "elseif [" and "elseif[" in rules 2020-04-12 14:08:46 +02:00
denisfrench ed89599823 [MQTT] Connect message honors LWT settings (#3006) 2020-04-12 21:31:27 +10:00
TD-er 7dd8a7e004 [rules] Allow "if [" and "if[" in rules (#2987)
Fixes: #2987
2020-04-12 11:13:38 +02:00
TD-erandGitHub a6550bb2ff Merge pull request #3002 from uzi18/rfid_events
rework for rfid events in plugin p040 - do not repeat event on same card, proper detection of removed card, fix for #2982
2020-04-11 21:33:05 +02:00
TD-erandGitHub 611c9d4ef3 Merge branch 'mega' into mega 2020-04-11 21:27:06 +02:00
Gijs Noorlander 97284c0491 [ILI9341] Move to custom build due to build size 2020-04-11 21:25:42 +02:00
TD-erandGitHub bf9914886c Merge branch 'mega' into rfid_events 2020-04-11 02:42:01 +02:00
TD-erandGitHub b4aae2b7d4 Merge branch 'mega' into before_deploy 2020-04-11 02:41:39 +02:00
TD-erandGitHub c555263d30 Merge pull request #2815 from uwekaditz/UweKaditz
Plugin 092: DL-bus from Technische Alternative (PR2)
2020-04-11 02:39:45 +02:00
Gijs Noorlander 6835730460 [ILI9341] Rename plugin to P095 + rebase to current HEAD of mega branch 2020-04-11 01:56:09 +02:00
Jean-Michel DECORETandGijs Noorlander 95c4d83b0c Make plugin compatible with ESP32
Setup default PINS for both ESP32 and D1
2020-04-10 23:36:14 +02:00
Jean-Michel DECORETandGijs Noorlander d484a9779e Change to plugin 091 2020-04-10 23:36:14 +02:00
Jean-Michel DECORETandGijs Noorlander 3922f59808 Change plugin number (242 -> 090)
Update configuration behavior (for default values)
2020-04-10 23:35:49 +02:00
Jean-Michel DECORETandGijs Noorlander ad41b08974 Add comments 2020-04-10 23:35:34 +02:00
Jean-Michel DECORETandGijs Noorlander b2ea77e954 Conform plugin to guidelines 2020-04-10 23:35:34 +02:00
Jean-Michel DECORETandGijs Noorlander 99e03bd058 Add plugin Display TFT - ILI9341
Manage TFT screen other http api.
2020-04-10 23:35:18 +02:00
Jean-Michel DECORETandGijs Noorlander d7a2082230 Add comments 2020-04-10 23:34:22 +02:00
Jean-Michel DECORETandGijs Noorlander 4d95a10584 Conform plugin to guidelines 2020-04-10 23:34:22 +02:00
Jean-Michel DECORETandGijs Noorlander 729400059e Add plugin Display TFT - ILI9341
Manage TFT screen other http api.
2020-04-10 23:33:55 +02:00
Gijs Noorlander a2c1d3bc19 [P092] Mark plugin as [TESTING] 2020-04-10 21:42:36 +02:00
TD-erandGitHub 382d5c32a0 Merge branch 'mega' into UweKaditz 2020-04-10 21:31:24 +02:00
TD-erandGitHub f7f3f1b0cb Merge branch 'mega' into rfid_events 2020-04-10 21:30:09 +02:00
TD-erandGitHub 0d2a0cfab0 Merge branch 'mega' into before_deploy 2020-04-10 21:25:58 +02:00
TD-erandGitHub 96d4ca22ca Merge pull request #2972 from TD-er/feature/MQTTclientID
[MQTT] Allow client ID + longer user/pass credentials
2020-04-10 21:25:32 +02:00
TD-er 6c60384d3d automatically updated release notes for mega-20200410 2020-04-10 21:23:29 +02:00
TD-erandGitHub f13aa86c43 Merge branch 'mega' into feature/MQTTclientID 2020-04-10 20:40:46 +02:00
TD-erandGitHub d71770077c Merge pull request #2925 from tonhuisman/tonhuisman/p036-issue2980
[P036] Added setting for 'Wake display on receiving text'
2020-04-10 20:40:24 +02:00
TD-erandGitHub 07c8d95f1c Merge branch 'mega' into feature/MQTTclientID 2020-04-10 19:04:44 +02:00
TD-erandGitHub ee30895217 Merge branch 'mega' into tonhuisman/p036-issue2980 2020-04-10 19:02:05 +02:00
TD-erandGitHub 24b2687349 Merge pull request #2966 from Micha-he/Fix_DeepSleep0
Fix deepsleep,0
2020-04-10 19:01:27 +02:00
TD-erandGitHub dee7a38043 Merge branch 'mega' into rfid_events 2020-04-10 19:00:39 +02:00
TD-erandGitHub 6cbcca0292 Merge branch 'mega' into Fix_DeepSleep0 2020-04-10 17:09:49 +02:00
TD-erandGitHub f8b2641967 Merge pull request #2999 from TD-er/bugfix/WiFi_static_ESP32
[WiFi] Fix problem with static IP and reconnect ESP32 (#2997)
2020-04-10 17:08:58 +02:00
Bartlomiej Zimon f705fbc6bf rfid: clean up in logging 2020-04-10 14:17:02 +00:00
TD-erandGitHub eae5405863 Merge branch 'mega' into bugfix/WiFi_static_ESP32 2020-04-10 15:36:28 +02:00
TD-erandGitHub c7d0836b8d Merge pull request #2996 from TD-er/bugfix/restore_pulse_from_RTC
[PulseCounter] Restore from RTC before initializing pin triggers
2020-04-10 15:35:59 +02:00
Bartlomiej Zimon b4236d1d5d crc2: move to hashlib 2020-04-10 13:04:03 +00:00
Bartlomiej Zimon 9e743be100 P040_ID12/RDM6300: fix for triggering new tag and detection of tag unavailable #2982 2020-04-10 12:10:32 +00:00
Bartlomiej Zimon dc401743ea P008_RFID: little reorder 2020-04-10 12:10:17 +00:00
Bartlomiej Zimon 42f874c7fe set BaseVarIndex and sensortype in event before call PLUGIN_TIMER_IN 2020-04-10 12:10:01 +00:00
Bartlomiej Zimon 15028afc19 before_deploy: remove echo 2020-04-10 12:08:55 +00:00
Bartlomiej Zimon 3fa406fba8 add factory bins into release zip - to be found in factory_bin dir 2020-04-10 12:08:37 +00:00
Bartlomiej Zimon 2d51667988 P004_dallas: esp32 optimisation - move bit read/write to IRAM 2020-04-10 12:07:41 +00:00
Gijs Noorlander 03b86b42d8 [WiFi] Switch to default PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
This one does seem to be the more stable one.
Still a bit uncertain what the difference is between
- `PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703`
-`PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_191122`
2020-04-10 13:57:22 +02:00
Gijs Noorlander fe195c60e5 [WiFi] Fix problem with static IP and reconnect ESP32 (#2997)
Fixes: #2997
2020-04-10 13:54:55 +02:00
Gijs Noorlander 6dc5b9910f [PulseCounter] Restore from RTC before initializing pin triggers 2020-04-10 09:51:10 +02:00
TD-erandGitHub c18513d30e Merge branch 'mega' into UweKaditz 2020-04-09 23:20:41 +02:00
TD-erandGitHub c4fcb460bf Merge branch 'mega' into tonhuisman/p036-issue2980 2020-04-09 23:20:11 +02:00
TD-erandGitHub 99e3002e7f Merge branch 'mega' into Fix_DeepSleep0 2020-04-09 23:18:02 +02:00
TD-erandGitHub c66cfadc08 Merge branch 'mega' into feature/MQTTclientID 2020-04-09 23:17:19 +02:00
TD-erandGitHub a118c33824 Merge pull request #2995 from TD-er/feature/CUL_reader
Feature/cul reader
2020-04-09 23:10:22 +02:00
Gijs Noorlander 5b2a50170a [build] New attempt to fix build for unused static function 2020-04-09 22:23:31 +02:00
Gijs Noorlander b3ffc80b22 [Build] Fix build issue
If it is really fixed now, we should for sure move away from .ino files as this is really bad the Arduino processor trips over these formatting issues.
2020-04-09 21:15:02 +02:00
Gijs Noorlander 325a13fa3f [Serial Plugins] Share more code among plugins using serial 2020-04-09 16:59:24 +02:00
Gijs Noorlander 3ef39ca6c1 [Webserver] Fix ambiguous function definitions for selectors
The form selectors were quite ambiguous, which could lead to build issues
2020-04-09 15:52:40 +02:00
Gijs Noorlander 233aa62403 [CUL Reader] Add basic docs 2020-04-09 15:51:19 +02:00
Gijs Noorlander deabb75eb7 [Sysvar] Fix show %ip% and %ip4% instead of %ip4% twice 2020-04-09 13:54:44 +02:00
Gijs Noorlander e0eaac6f0a [CUL Reader] Add positional match 2020-04-08 23:26:27 +02:00
Gijs Noorlander b33033e107 [CUL Reader] Fix bug in save/load settings 2020-04-08 23:26:27 +02:00
TD-er 7bfa476ad1 [CUL Reader] 12 items per filter line + extra chars on filter whitelist 2020-04-08 23:26:27 +02:00
Gijs Noorlander 6d4f303e40 [CUL Reader] Add 4th filter parameter 2020-04-08 23:26:27 +02:00
Gijs Noorlander 4b89192269 [CUL Reader] Clean up code 2020-04-08 23:26:27 +02:00
Gijs Noorlander 8c9dafe378 [CUL Reader] P094_CULReader 2020-04-08 23:26:27 +02:00
TD-erandGitHub f75e2b6af9 Merge branch 'mega' into UweKaditz 2020-04-06 16:24:04 +02:00
TD-erandGitHub 56051420c1 Merge branch 'mega' into Fix_DeepSleep0 2020-04-06 16:22:33 +02:00
TD-erandGitHub ec586497c2 Merge branch 'mega' into feature/MQTTclientID 2020-04-06 15:19:10 +02:00
TD-erandGitHub 36023cd1a7 Merge pull request #2967 from uzi18/dallas
ESP32: add subtarget for genuine units firmware-factory.bin
2020-04-06 14:09:00 +02:00
TD-erandGitHub d02abbd2bf Merge branch 'mega' into dallas 2020-04-06 14:08:27 +02:00
TD-erandGitHub 338578dd96 [P020_Ser2Net] Fix missing break; PLUGIN_SERIAL_IN
As reported by S. Akinit via email.
Thanks
2020-04-04 10:12:06 +02:00
Gijs Noorlander ae2b23e508 [LWIP2] Change LWIP2 from low mem to high bandwidth
In an attempt to make the ESP respond faster as we have a lot of reports related to timeouts and lost connections lately.
2020-04-02 00:46:21 +02:00
Gijs Noorlander 2251ebb937 [Build size] Optimize command handling macro to reduce build size
The function `executeInternalCommand` now takes roughly 3 kByte less in the binary.
Expansion of the macro resulted in quite some additional binary size.
Now the logic is moved to a separate function.
2020-04-02 00:44:42 +02:00
Gijs Noorlander 71469fbabb Fix reporting binaryFileName in sysvars page 2020-04-02 00:41:26 +02:00
Gijs Noorlander 24654187ee [Settings] Improve SettingsType handling 2020-04-02 00:40:35 +02:00
Gijs Noorlander e77710a85d [PIO] Change depicated -Wl,-T into board_build.ldscript 2020-03-31 23:31:06 +02:00
Gijs Noorlander 95010a364c [MQTT] Fix build issue with disabled MQTT 2020-03-31 16:11:33 +02:00
Gijs Noorlander c7fa9682f9 [Controller] Allow to use longer controller credentials
When checking the "Use Extended Credentials", the user name + pass field for the controller can be extended up-to 128 bytes.
This limit is only applicable to the text field, so it can later be extended to longer when needed.
All user + pass fields for all controllers must be within the 1 kByte (including 1 extra byte per field)
2020-03-31 16:11:33 +02:00
Gijs Noorlander ec7a1d2715 [MQTT] Move global MQTT parameters to controller settings 2020-03-31 16:11:33 +02:00
Gijs Noorlander 4b4604f1eb [Storage] Move SettingsType code to separate .h/.cpp 2020-03-31 16:11:33 +02:00
Gijs Noorlander d011d20884 [MQTT] Add checkbox for extended Controller Settings 2020-03-31 16:11:33 +02:00
TD-erandGitHub 19843b26ce Merge pull request #2979 from TD-er/bugfix/fix_webserver_crash
[Frontend] Fix crash when loading config + controller page
2020-03-31 16:09:21 +02:00
Gijs Noorlander b127938408 [Frontend] Fix crash when loading config + controller page
It could lead to infinite recursion by having conflicting function signatures.
2020-03-31 16:08:24 +02:00
uwekaditz 0d996b5197 merged Release mega-20200328 2020-03-30 20:42:02 +02:00
TD-erandGitHub 531c3153e8 Merge pull request #2975 from TD-er/bugfix/reload_javascript
[Frontend] Fix reload on change for selectors (#2974 )
2020-03-30 15:23:42 +02:00
Gijs Noorlander 9a6e027f17 [Frontend] Fix reload on change for selectors (#2974 )
Fixes: #2974
2020-03-30 14:19:23 +02:00
uwekaditzandGitHub b663b69f06 Merge branch 'mega' into UweKaditz 2020-03-29 23:19:03 +02:00
TD-er 4d2eddbcde automatically updated release notes for mega-20200328 2020-03-28 02:55:55 +01:00
TD-erandGitHub 9f8ebef52f Merge pull request #2971 from TD-er/build/platformio_2-4-0
Build/platformio 2 4 0
2020-03-28 02:53:37 +01:00
TD-erandGitHub ec88a26622 Merge branch 'mega' into build/platformio_2-4-0 2020-03-28 02:53:18 +01:00
Gijs Noorlander cb99058d05 [PIO] Use platform_packages for all core libs supporting those 2020-03-28 02:07:15 +01:00
Gijs Noorlander 5e99087ec6 [PIO] feature/stage no longer available for building latest core libs 2020-03-28 01:36:34 +01:00
TD-erandGitHub f112027596 Merge pull request #2970 from Micha-he/P091_Fix_DoubleOk
Double-Ok fix for P091_SerSwitch-plugin
2020-03-27 23:25:37 +01:00
TD-erandGitHub 40d8ed9b6d Merge pull request #2969 from TD-er/bugfix/SGP30_output_2_values
[SGP30] Fix output all values to controller
2020-03-27 23:21:30 +01:00
Michael Schröder 8529ebed3b Fix double-Ok at command output 2020-03-27 14:13:48 +01:00
Gijs Noorlander 793878262d [SGP30] Fix output all values to controller
See discussion here: https://github.com/letscontrolit/ESPEasy/issues/2586#issuecomment-604416401
2020-03-26 16:51:11 +01:00
Bartlomiej Zimon 679908a6bb ESP32: add subtarget for genuine units firmware-factory.bin
Resolves #2964 #2941 #2486
2020-03-25 23:56:59 +00:00
Michael Schröder 2c6a424683 Update deepsleep-command docs 2020-03-25 10:05:27 +01:00
Michael Schröder d19e31dc2c Fix DeepSleep0 command 2020-03-24 15:04:51 +01:00
Michael Schröder 5c7232acda Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2020-03-24 12:02:19 +01:00
TD-erandGitHub e6bdae07dd Merge pull request #2921 from Grovkillen/rules_save_fix
Rules save fix
2020-03-23 22:50:07 +01:00
TD-erandGitHub fbad34535f Merge pull request #2963 from uzi18/dallas
[SysVars] small optimization
2020-03-23 22:48:01 +01:00
Bartlomiej Zimon 5b24b58d2a [SysVars] concat->String() 2020-03-23 00:26:01 +00:00
Bartlomiej Zimon b261a21510 [SysVars] small optimization 2020-03-23 00:01:10 +00:00
TD-erandGitHub c39975a985 Fix ArduinoIDE Build error due to missing include
As reported here: https://github.com/letscontrolit/ESPEasy/commit/c5c22643c62f725c22d80e55d3360885cf017baa#r37971537
2020-03-22 14:30:30 +01:00
Bartlomiej Zimon 336ebb02dc Merge branch 'mega' of github.com:letscontrolit/ESPEasy into dallas 2020-03-22 10:21:07 +00:00
Gijs Noorlander b3c0f6e812 [ESP32] Fix crash in startup connecting to WiFi (#2960 )
Fixes: #2960
2020-03-22 01:41:53 +01:00
Bartlomiej Zimon 4f60c2d66f Merge branch 'mega' of github.com:letscontrolit/ESPEasy into dallas 2020-03-21 21:35:25 +00:00
TD-er 81c699938c Remove PlatformIO Extension from GitPod.yml 2020-03-21 20:29:55 +00:00
TD-er af07b92bcf Change bracket pair colorizer for one that installs in GitPod 2020-03-21 20:06:23 +00:00
TD-er 31112228b7 Add VSCode Extentions 2020-03-21 18:41:08 +00:00
TD-er f2266c1e38 Add Gitpod extensions 2020-03-21 18:12:45 +00:00
TD-er 1093e37af8 Sanitize Requirements.txt and switch to Python 3.8 2020-03-21 17:54:36 +00:00
TD-er 9ca2b43713 Add gitpod config
this commit adds support for Gitpod.io, a free automated
dev environment that makes contributing and generally working on GitHub
projects much easier. It allows anyone to start a ready-to-code dev
environment for any branch, issue and pull request with a single click.
2020-03-21 18:18:55 +01:00
TD-erandGitHub d77198d2c7 Merge pull request #2957 from TD-er/feature/serial_proxy_enhancements
Feature/serial proxy enhancements
2020-03-21 15:59:17 +01:00
TD-erandGitHub a66f580630 Merge pull request #2952 from TD-er/feature/I2C_uart_serial
[I2C] Add I2C frequency setting
2020-03-21 15:52:02 +01:00
Gijs Noorlander 11ec14ed20 Check if plugin uses formula before trying to process formula 2020-03-21 15:06:18 +01:00
Gijs Noorlander 5afd1d3a8a [Serial Proxy] Don't process on empty regexp
Also move the actual matching in the PLUGIN_READ part.
2020-03-21 14:50:16 +01:00
Gijs Noorlander 902149af5e [Serial Log] Keep a bit more free memory when processing serial log 2020-03-21 14:48:29 +01:00
Gijs Noorlander b02684a6e2 [WiFi] Start webserver before starting wifi (long delay to receive 1st byte) 2020-03-21 14:47:55 +01:00
Gijs Noorlander 198f244887 Add generic hexToUL functions 2020-03-21 11:24:36 +01:00
Gijs Noorlander 812323874e [Serial Proxy] Fix check in empty string test 2020-03-21 11:21:21 +01:00
Gijs Noorlander c5c22643c6 [SysVar] Add extra system variables to get build info
Added:
- `%sysbuild_desc%`
- `%sysbuild_filename%`
- `%sysbuild_git%`
2020-03-21 11:21:06 +01:00
Gijs Noorlander a3be53b8b1 [Serial Proxy] Only check on valid filter rules 2020-03-21 11:20:56 +01:00
Gijs Noorlander a1e2d0db9f [Web] Make command field on Tools page much wider 2020-03-21 11:20:46 +01:00
Gijs Noorlander 62c1782e65 [Serial Proxy] Use capture filtering 2020-03-21 11:20:30 +01:00
Gijs Noorlander 698d904552 [Serial Proxy] Move plugin specific struct to .h/.cpp to support captures 2020-03-21 11:20:21 +01:00
Gijs Noorlander cd024b39e4 [Serial Proxy] Add extra filter parameters 2020-03-21 11:20:11 +01:00
Gijs Noorlander ce6e151cb2 [Serial Proxy] Add regexp filtering using captures 2020-03-21 11:20:00 +01:00
Gijs Noorlander ef2de3a894 [Lib] Add RegExp lib 2020-03-21 11:19:54 +01:00
Gijs Noorlander fb34e892bb [SerialProxy] Add regexp filtering 2020-03-21 11:19:48 +01:00
Gijs Noorlander 0f8ef96484 [JSON] Fix JSON output of values for single task
Generated JSON had trailing TTL value which rendered it invalid JSON.
2020-03-21 11:09:44 +01:00
TD-er efa41ecc3b [Blynk] Fix building C015 Blynk controller
As found [on the forum](https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=7538)
2020-03-20 00:34:59 +01:00
TD-er 563b1da419 Fix resetpulsecounter for P003_Pulse (#2710)
Fixes: #2710

I really need to make sense of the argument positions as this is really error prone as shown here.
2020-03-19 23:48:59 +01:00
Gijs Noorlander b11043243f [Build] Disable test_ESP8266_4M1M_VCC_MDNS_SD due to max sketch size
Temporary disabled so we can make a nightly build
2020-03-19 18:21:47 +01:00
uwekaditzandGitHub 96ce0fa377 Merge branch 'mega' into UweKaditz 2020-03-19 18:14:36 +01:00
Gijs Noorlander 7d4dd2355a Pulse Counter must retain its values after reboot (#2268)
Fixes #2268
2020-03-19 18:09:17 +01:00
Gijs Noorlander 023c97d547 ESPEasy Status LED is not working on ESP32 with buildin LED (#2940)
Fixes: #2940

Copy-paste fix from @thomastech https://github.com/letscontrolit/ESPEasy/issues/2940#issuecomment-599627656
2020-03-19 10:38:24 +01:00
Gijs Noorlander 06b4438003 [I2C] Add I2C frequency setting
For I2C UART an I2C clock of 400 kHz is needed to be able to handle continuous streams of data.
But the default was still 100 kHz, unless you selected a plugin that may have set the I2C frequency to 400 kHz like the Framed OLED plugin.
2020-03-18 18:09:23 +01:00
TD-erandGitHub 4e32d98fbc Merge pull request #2950 from TD-er/feature/I2C_uart_serial
[I2C UART] Add support for NXP's SC16IS752 I2C to UART bridge
2020-03-18 13:24:28 +01:00
Gijs Noorlander 7ee5cd2cd8 [ESP32] Make sure to include the version tag in ESPEasySerial libdeb
Fixes: #2951
2020-03-18 13:19:50 +01:00
Gijs Noorlander 0e41d0e71a [I2C UART] Mark ESPEasySerial library as v2.0.0 2020-03-18 11:27:58 +01:00
Bartlomiej Zimon 878adcf312 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into dallas 2020-03-17 18:36:04 +00:00
Michael Schröder faf5354f24 Merge remote-tracking branch 'letscontrolit/mega' into mega 2020-03-17 13:20:46 +01:00
TD-erandGitHub 985e007064 Merge pull request #2948 from TD-er/bugfix/2947_taskenable_timer
[Task] Start scheduled runs again after (re)enableTask command
2020-03-17 12:24:26 +01:00
Michael Schröder da68b6cb2a Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2020-03-17 10:48:37 +01:00
Gijs Noorlander b1d95fb8f2 [Task] Start scheduled runs again after (re)enableTask command
Fixes: #2947
2020-03-16 22:59:52 +01:00
TD-erandGitHub 3cf7eb289c Merge pull request #2946 from TD-er/build/SDS011_ESP32
[ESP32]  Add SDS011 support for ESP32
2020-03-15 23:17:03 +01:00
Gijs Noorlander 80cdb7b552 [ESP32] Add SDS011 support for ESP32
As reported on [the forum](https://www.letscontrolit.com/forum/viewtopic.php?f=5&t=7520&p=43032#p43032)
2020-03-15 20:30:22 +01:00
TD-erandGitHub 67e46770ee Merge pull request #2913 from TD-er/feature/P165
[P091] Move P165 SerSwitch from playground to main repository
2020-03-14 12:14:10 +01:00
TD-erandGitHub 02ecfc10a2 Merge branch 'mega' into feature/P165 2020-03-14 10:27:05 +01:00
uwekaditzandGitHub 57c74dbb7e Merge branch 'mega' into UweKaditz 2020-03-13 20:15:26 +01:00
uwekaditz e1c8d8972c Merge branch 'UweKaditz' of https://github.com/uwekaditz/ESPEasy into UweKaditz 2020-03-13 19:56:13 +01:00
Gijs Noorlander 611cdd7b82 [code analytics] Use PVS studio 2020-03-11 10:12:41 +01:00
Gijs Noorlander 16b9399456 [I2C UART] Limit calls to serial.available() 2020-03-11 09:12:59 +01:00
TD-erandGitHub a2bf0e1491 Merge pull request #2935 from tonhuisman/tonhuisman/bugfix-issue2877
[P023] Fix for text overflowing onto next line(s)
2020-03-11 08:32:51 +01:00
tonhuisman 3f1d802988 Added condition for 64x48 and rotated combined 2020-03-10 21:09:24 +01:00
TD-erandGitHub db2ada46f9 Merge pull request #2879 from crnjan/feature/mitsubishiHP
[mitsubishi heat pump]
2020-03-10 15:17:08 +01:00
Gijs Noorlander 6558c2522a [I2C UART] Cache FIFO available to speed up reading 2020-03-10 10:55:20 +01:00
Gijs Noorlander f07017f3aa [I2C UART] Speed up reading from I2C Serial 2020-03-10 01:50:50 +01:00
uwekaditz 819801c670 Merge branch 'UweKaditz' of https://github.com/uwekaditz/ESPEasy into UweKaditz 2020-03-09 20:00:15 +01:00
uwekaditz bec007abb7 merged with release mega-20200305
merged with release mega-20200305
2020-03-09 19:59:56 +01:00
Michael SchröderandGitHub db3d545e20 Merge pull request #4 from letscontrolit/mega
Update 20200308
2020-03-09 17:48:54 +01:00
borisk 7fda408c08 updated docs 2020-03-08 20:13:49 +01:00
tonhuisman a3ca00be40 [P023] Fix for text overflowing onto next line(s) 2020-03-08 18:56:28 +01:00
Gijs Noorlander 06ec3d3d7e [Docs] Mark all plugins using Serial as port type 2020-03-08 17:56:44 +01:00
Bartlomiej Zimon 410a8435c0 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into dallas 2020-03-08 16:50:36 +00:00
Gijs Noorlander 9b77f5b183 [Docs] Add port type to plugin substitutions 2020-03-08 17:45:22 +01:00
Gijs Noorlander 5dcccc6817 [I2C serial] Disable debugging 2020-03-08 17:44:48 +01:00
Gijs Noorlander bddd5ae4b3 [Serial] Mark plugins using serial as device type serial
Also show in the devices tab a proper port + GPIO description.
2020-03-08 16:49:44 +01:00
Gijs Noorlander f3b5628d06 Fix warnings in ccronexpr test code 2020-03-08 10:18:39 +01:00
Gijs Noorlander f832f5e265 [SC16IS752] Extend Serial Helper to support I2C UART 2020-03-08 09:18:14 +01:00
borisk 762d13eb2f Restructured docs a bit so its easier to follow 2020-03-07 12:39:06 +01:00
borisk d1f660e4e2 Add as part of testing plugins ... 2020-03-07 05:03:46 +01:00
Gijs Noorlander f14929bb1f [SC16IS752] Use I2C-UART bridge in ESPEasySerial (ESP8266) 2020-03-06 23:35:28 +01:00
borisk c530b690c4 Updating documentation 2020-03-06 21:20:31 +01:00
borisk 4cf471b8b3 Updating documentation 2020-03-06 21:10:53 +01:00
TD-er c53dacf9a7 Start of implementing SC16IS752 support 2020-03-06 20:29:36 +01:00
tonhuisman 0ccd6adad7 Made note wording more functional 2020-03-06 20:19:58 +01:00
tonhuisman 270385b058 Fixed note wording 2020-03-06 19:56:01 +01:00
borisk b96582ea25 Updating documentation 2020-03-06 18:42:50 +01:00
Boris Krivonog 1afe085df7 adding documentation ... 2020-03-06 15:18:14 +01:00
Boris Krivonog e64b81cb6e adding documentation ... 2020-03-06 15:05:17 +01:00
Gijs Noorlander 228c7616c3 [ESPEasySerial] Update manifest to mark SC16IS752 dependency 2020-03-06 14:06:43 +01:00
Gijs Noorlander ac51287bb4 [SC16IS752 lib] Update manifest to register as PIO library 2020-03-06 14:06:08 +01:00
Boris Krivonog 48a5e61944 Handle only "MHP" commands 2020-03-06 13:52:48 +01:00
Gijs Noorlander 3e594689d7 [SC16IS752] Add Library
Using library https://github.com/nopnop2002/SC16IS752
2020-03-06 13:08:17 +01:00
TD-erandGitHub 05c126a726 Merge branch 'mega' into feature/mitsubishiHP 2020-03-06 12:48:57 +01:00
Gijs Noorlander d691e69f51 [Docs] Add stub for documentation of P093 - Mitsubishi Heat Pump 2020-03-06 12:45:46 +01:00
tonhuisman c5a1fc33ab [P036] Added new setting to plugin documentation 2020-03-05 22:23:53 +01:00
tonhuisman abac46d10d [P036] Added setting for 'Wake display on receiving text' 2020-03-05 22:23:15 +01:00
tonhuisman c90b41345b [P036] Added setting for 'Keep display off receiving text' 2020-03-05 21:40:59 +01:00
Michael SchröderandGitHub e39d630895 Merge pull request #3 from letscontrolit/mega
Merge 20200305
2020-03-05 15:59:13 +01:00
Boris Krivonog cd712727bd Make sure to break out of switch-case. 2020-03-05 08:11:15 +01:00
Boris Krivonog 4c1a168b97 Fixed build when debug is disabled 2020-03-04 21:29:54 +01:00
Boris Krivonog 7a460195e6 Improved write operations 2020-03-04 21:15:46 +01:00
Gijs Noorlander b01595e06d Minify the JS code + store in flash
Known issue:
We need to clear any open handles to rules files when we upload a new one.
2020-03-04 16:24:26 +01:00
Grovkillen 68852e1f99 [rules] td-er talked me into it... thanks mate! 2020-03-04 15:20:15 +01:00
Grovkillen 13d6e3c6ff [rules] size is updated when saved 2020-03-04 15:08:52 +01:00
Grovkillen 3ac67d4027 [rules] removed commented code 2020-03-04 14:54:35 +01:00
Grovkillen 6eed61090e [rules] file upload instead of form upload 2020-03-04 14:50:32 +01:00
TD-erandGitHub 5e7544330f Merge branch 'mega' into feature/P165 2020-03-04 14:20:32 +01:00
Gijs Noorlander 3bee0bab4a [P091 SerSwitch] Update to use latest sources of enesbcs
Used: https://github.com/enesbcs/ESPEasyPluginPlayground/blob/master/_P165_SerSwitch.ino
2020-03-04 14:19:31 +01:00
Grovkillen dcb8968f82 [rules] narrowed scope of form (to not trigger onChange if btn clicked) 2020-03-04 09:24:09 +01:00
Grovkillen 5c729f3cb7 [rules] removed the "onSubmit" event 2020-03-04 09:07:59 +01:00
Grovkillen 7391147488 [rules] forms uncommented (needed for rules set) 2020-03-04 09:02:41 +01:00
Grovkillen 1959b81138 [rules] commented out old upload html 2020-03-04 08:32:04 +01:00
GrovkillenandGitHub 5f25851b1e Merge pull request #5 from letscontrolit/mega
PR from master
2020-03-04 07:51:05 +01:00
Boris Krivonog eeda662095 Renamed to 093 plugin. 2020-03-03 14:12:14 +01:00
Boris Krivonog 7a5f03a0a8 Renamed to 093 plugin. 2020-03-03 14:11:02 +01:00
Boris Krivonog 60bc0bf0f4 Write re-enabled 2020-03-03 13:02:23 +01:00
Boris Krivonog 05a5edc925 Rewrote communication part, removed delays from code, optimised handling and storing of data ... 2020-03-03 12:53:36 +01:00
Boris Krivonog eb2bfcae74 Renamed to 092 plugin. 2020-03-03 12:52:04 +01:00
uwekaditz 300eb35629 Merge conflicts solved 2020-03-02 18:57:24 +01:00
uwekaditz 4649e3ae76 Merge branch 'UweKaditz' of https://github.com/uwekaditz/ESPEasy into UweKaditz 2020-03-02 18:56:48 +01:00
uwekaditzandGitHub 3f4af8f9c0 Merge branch 'mega' into UweKaditz 2020-03-02 18:21:24 +01:00
uwekaditz 13f4f46f51 Memory improvement for _P092 plug in
Moved arrays into the class DLBus (only created while using the plug in)
Moved other arrays into function Plugin_092()
2020-03-02 18:15:24 +01:00
Gijs Noorlander 63929093f0 [P091] Add documentation 2020-03-02 10:29:46 +01:00
Gijs Noorlander 9d1008c0ec [P091] Move P165 SerSwitch from playground to main repository 2020-03-02 09:54:14 +01:00
Boris Krivonog 2b38e7bcaa fixed compile time warnings 2020-02-10 08:53:13 +01:00
uwekaditz b31e6455dd Merge tag 'mega-20200204' into UweKaditz 2020-02-08 16:39:16 +01:00
Boris Krivonog 6c1edfa9e3 reverted changes made in other files 2020-02-07 20:45:19 +01:00
Boris Krivonog 909a3f477d reverted changes made in other files 2020-02-07 20:41:27 +01:00
Boris Krivonog 8b76191fe5 reverted changes made in other files 2020-02-07 20:33:43 +01:00
Boris Krivonog 0f8cc9a972 Added info about which specific commit used. 2020-02-03 08:28:48 +01:00
Boris Krivonog 6962f1ad22 don't read during write, don't request info we don't care about ... 2020-01-29 22:06:35 +01:00
Boris Krivonog fddf2dfed2 renamed to settings 2020-01-29 20:26:46 +01:00
Boris Krivonog ce5f40b3fb if update was successful, update settings immediatelly 2020-01-29 15:55:07 +01:00
Boris Krivonog 9839e008f2 logs fixed 2020-01-29 11:50:13 +01:00
Boris Krivonog 9ac6c72249 logging ... 2020-01-28 14:59:36 +01:00
Boris Krivonog 452602ed3a write all parameters 2020-01-28 13:38:17 +01:00
Boris Krivonog b827603c84 set temperature ... 2020-01-28 12:47:34 +01:00
Boris Krivonog e255c695fd added update ... 2020-01-28 10:15:32 +01:00
Boris Krivonog 6212ba30f1 unified code read and update 2020-01-28 09:02:08 +01:00
Boris Krivonog 07fac1dbd4 push on change 2020-01-27 19:54:04 +01:00
Boris Krivonog 72ffd5c7ef push on change 2020-01-27 12:54:38 +01:00
Boris Krivonog 7aa369830e first contact 2020-01-25 21:06:43 +01:00
Boris Krivonog 70397f90e6 Added device values. 2020-01-23 15:31:16 +01:00
Boris Krivonog ab2a7e6d71 Initial commit of the Mitsibutshi HP integration. 2020-01-23 15:16:21 +01:00
Michael SchröderandGitHub caa48f111b Merge from letscontrolit/mega
Update to actual Mega
2019-12-23 14:11:52 +01:00
uwekaditz 2fc704fc13 [P093] Documentation updated 2019-12-20 22:50:41 +01:00
uwekaditz 6a2fb056a0 [P092] Documentation updated
NEW: More devices
CHG: can be compiled by sphinx without warnings or errors
2019-12-20 21:04:32 +01:00
uwekaditz 078d60d27d [P092] More documentation added
NEW: docs for ESR21 and UVR31 units
2019-12-19 22:11:01 +01:00
uwekaditz aa4724cecf [P092] Documentation added
NEW: documentation
2019-12-16 12:06:13 +01:00
uwekaditz 44d407210f [P092] Changes requested by TDer
CHG: variable to calculate RequiredBitStreamLength
CHG: function usecPassedSince() is long
2019-12-15 15:26:25 +01:00
uwekaditz 61fbfe9f45 [P092] Memory usage optimized
CHG: Moved the array for the received bit changes to stativ uint_8t, the ISR call uses only a volatile pointer to it
CHG: some more defines and name changes for better explanation
2019-12-15 14:38:13 +01:00
uwekaditz f8003c7be3 [P092] Timing optimized
Removed the while (P092_receiving) loop.
Starting of the receiving and processing of the received bit stream iare now done in the PLUGIN_ONCE_A_SECOND call
PLUGIN_READ call just uses the already processed data
2019-12-14 22:49:57 +01:00
uwekaditz db1bb1aa07 Update _P092_DLbus.ino
Removed all commits I merged in the mega branch
2019-12-14 21:00:34 +01:00
uwekaditz 4a533abb0a Merge branch 'UweKaditz' of https://github.com/uwekaditz/ESPEasy into UweKaditz 2019-12-14 20:56:11 +01:00
Bartlomiej Zimon 7f7a61e451 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into dallas 2019-12-09 22:07:36 +00:00
uwekaditz 54b7099aaa Update _P092_DLbus.ino 2019-12-08 22:30:50 +01:00
uwekaditz 8859de6fd0 [P092] New PlugIn to decode the DL-Bus
Added to PLUGIN_SET_STABLE
Basic documentation added
2019-12-08 20:16:02 +01:00
uwekaditz 1395d168be [P092] New PlugIn to decode the DL-Bus
The DL-Bus is used in heating control units e.g. sold by Technische Alternative (www.ta.co.at).
The idea for this plug-in is based on Martin Kropf's project UVR31_RF24 (https://github.com/martinkropf/UVR31_RF24)
The plug-in is tested and workis fine for the ESR21 device.
The plug-in should be also able to decode the information from the UVR31, UVR1611 and UVR 61-3 devices but not tested yet.
The selected input needs a voltage divider as follows because the DL-Bus runs on 12 volts.
2019-12-08 16:20:16 +01:00
Michael SchröderandGitHub 574addfec4 Merge pull request #1 from letscontrolit/mega
Merge Orig 20191003
2019-10-04 11:30:46 +02:00
Peter Kretz 0dbb275fdc Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2019-05-06 17:16:57 +02:00
Peter Kretz a215932f87 atlas Sensor for pH an Redox (ORP) added 2019-05-06 17:05:55 +02:00
2235 changed files with 298188 additions and 30651 deletions
+17
View File
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 14
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: true
+48 -45
View File
@@ -1,47 +1,50 @@
## OS Specific Hidden Files ####
# MacOSX Finder *****
.DS_Store
# Fuse FileSystem ***
.fuse_hidden*
## PlatformIO ##################
.pioenvs
.clang_complete
.gcc-flags.json
.piolibdeps
pre_extra_script.py
*.code-workspace
## Project #####################
lib/readme.txt
src/Custom.h
/ESPEasy
test/output_export.cpp
.vscode
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
src/ESPEasy.ino.cpp
docs/build/
\.pio/
docs/source/_build/
venv/
.idea/
tools/vagrant/.vagrant/
tools/vagrant/build/
tools/vagrant/Custom.h
## OS Specific Hidden Files ####
.buildcache/
# MacOSX Finder *****
.DS_Store
tools/vagrant/pio_envlist.txt
# Fuse FileSystem ***
.fuse_hidden*
## PlatformIO ##################
.pioenvs
.clang_complete
.gcc-flags.json
.piolibdeps
pre_extra_script.py
*.code-workspace
.pio
## Project #####################
lib/readme.txt
src/Custom.h
/ESPEasy
test/output_export.cpp
.vscode
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
src/ESPEasy.ino.cpp
docs/build/
\.pio/
docs/source/_build/
venv/
.idea/
tools/vagrant/.vagrant/
tools/vagrant/build/
tools/vagrant/Custom.h
.buildcache/
+10
View File
@@ -0,0 +1,10 @@
FROM gitpod/workspace-full
USER gitpod
# Install custom tools, runtime, etc. using apt-get
# For example, the command below would install "bastet" - a command line tetris clone:
#
# RUN sudo apt-get -q update && # sudo apt-get install -yq bastet && # sudo rm -rf /var/lib/apt/lists/*
#
# More information: https://www.gitpod.io/docs/config-docker/
+13
View File
@@ -0,0 +1,13 @@
tasks:
- before: pip install -U platformio && brew install uncrustify && pip3 install -r ./requirements.txt
image:
file: .gitpod.Dockerfile
vscode:
extensions:
- ms-vscode.cpptools@0.26.3:u3GsZ5PK12Ddr79vh4TWgQ==
- eamodio.gitlens@10.2.1:e0IYyp0efFqVsrZwsIe8CA==
- LaurentTreguier.uncrustify@2.18.0:/k8Osjj/XSuz09F+pEu7wg==
- Atishay-Jain.All-Autocomplete@0.0.23:fbZNfSpnd8XkAHGfAPS2rA==
- 2gua.rainbow-brackets@0.0.6:Tbu8dTz0i+/bgcKQTQ5b8g==
+3
View File
@@ -0,0 +1,3 @@
{
"extensions.showRecommendationsOnlyOnDemand": true
}
+66 -57
View File
@@ -1,18 +1,12 @@
language: python
python:
- '2.7'
- '3.8'
#we want a newer cppcheck, so use trusty
dist: bionic
sudo: false
cache:
directories:
# - "~/.platformio"
# - "./.pio"
cache: false
addons:
apt:
@@ -20,62 +14,77 @@ addons:
- cppcheck
- binutils
install:
- pip install -U platformio sphinx recommonmark sphinx_bootstrap_theme
script:
- pip install -r requirements.txt
- platformio update
# patch platformio core libs for PUYA bug (https://github.com/letscontrolit/ESPEasy/issues/650)
- cd patches; ./check_puya_patch; cd ..
# - bash ./preflight.sh # make sure input files are OK before wasting time with prereqs
# - cppcheck --enable=warning src/*.ino -q --force -I src --include=src/ESPEasy.ino --error-exitcode=1
# - ./memanalyzer.py ~/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-objdump
# - PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run --target clean
# Same list as in tools/build_ESPeasy.sh and before_deploy
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e custom_ESP32_4M316k
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e custom_ESP8266_4M1M
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e custom_ESP8266_4M2M
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e custom_beta_ESP8266_4M1M
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e custom_sdk3_ESP8266_4M1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e dev_ESP8266_4M1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e hard_SONOFF_POW_4M1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e hard_Shelly_1_2M256
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e hard_Ventus_W266
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e hard_other_POW_ESP8285_1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_IRext_ESP8266_1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_IRext_ESP8266_4M1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_IRext_ESP8266_4M2M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_242_ESP8266_1M_OTA
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_242_ESP8285_1M_OTA
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_ESP8266_1M_OTA_Domoticz
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_ESP8266_1M_OTA_FHEM_HA
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_ESP8285_1M_OTA_Domoticz
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_ESP8285_1M_OTA_FHEM_HA
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_sdk3_ESP8266_1M_OTA_Domoticz
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_sdk3_ESP8266_1M_OTA_FHEM_HA
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_sdk3_ESP8285_1M_OTA_Domoticz
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e minimal_core_263_sdk3_ESP8285_1M_OTA_FHEM_HA
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_ESP8266_16M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_ESP8266_1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_ESP8266_1M_VCC
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_ESP8266_4M1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_ESP8285_1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_IRext_no_rx_ESP8266_4M2M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_WROOM02_2M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_WROOM02_2M256
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e normal_sdk3_ESP8266_1M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e test_ESP32-wrover-kit_4M316k
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e test_ESP32_4M316k
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e test_ESP8266_4M1M_VCC
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e test_ESP8266_4M1M_VCC_MDNS_SD
#- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e test_beta_ESP8266_16M
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e test_beta_ESP8266_4M1M
env:
- ENV=custom_ESP32_4M316k
- ENV=custom_ESP32_4M316k_ETH
#- ENV=custom_ESP8266_1M
- ENV=custom_ESP8266_4M1M
#- ENV=custom_ESP8266_4M2M
#- ENV=custom_ESP8266_4M2M_LittleFS
#- ENV=custom_alt_wifi_ESP8266_1M
- ENV=custom_alt_wifi_ESP8266_4M1M
#- ENV=custom_beta_ESP8266_1M
#- ENV=custom_beta_ESP8266_4M1M
- ENV=custom_sdk3_ESP8266_4M1M
- ENV=dev_ESP8266_4M1M
- ENV=hard_SONOFF_POW_4M1M
- ENV=hard_Shelly_1_2M256
- ENV=hard_Shelly_PLUG_S_2M256
- ENV=hard_Ventus_W266
- ENV=hard_LCtech_relay_x2_1M
- ENV=hard_other_POW_ESP8285_1M
- ENV=minimal_IRext_ESP8266_1M
- ENV=minimal_IRext_ESP8266_4M1M
- ENV=minimal_IRext_ESP8266_4M2M
#- ENV=minimal_core_242_ESP8266_1M_OTA
#- ENV=minimal_core_242_ESP8285_1M_OTA
- ENV=minimal_core_274_ESP8266_1M_OTA_Domoticz
- ENV=minimal_core_274_ESP8266_1M_OTA_FHEM_HA
- ENV=minimal_core_274_ESP8285_1M_OTA_Domoticz
- ENV=minimal_core_274_ESP8285_1M_OTA_FHEM_HA
#- ENV=minimal_core_274_sdk3_ESP8266_1M_OTA_Domoticz
#- ENV=minimal_core_274_sdk3_ESP8266_1M_OTA_FHEM_HA
#- ENV=minimal_core_274_sdk3_ESP8285_1M_OTA_Domoticz
#- ENV=minimal_core_274_sdk3_ESP8285_1M_OTA_FHEM_HA
#- ENV=normal_ESP8266_16M_LittleFS
- ENV=normal_ESP8266_1M
- ENV=normal_ESP8266_1M_VCC
- ENV=normal_ESP8266_4M1M
- ENV=normal_ESP8266_4M1M_VCC
- ENV=normal_ESP8285_1M
- ENV=normal_IRext_no_rx_ESP8266_4M2M
- ENV=normal_WROOM02_2M256
- ENV=normal_WROOM02_2M
- ENV=normal_alt_wifi_ESP8266_1M
- ENV=normal_alt_wifi_ESP8266_1M_VCC
- ENV=normal_alt_wifi_ESP8266_4M1M
#- ENV=normal_sdk3_ESP8266_1M
#- ENV=spec_debug_beta_custom_ESP8266_4M1M
#- ENV=spec_debug_custom_ESP32_4M316k
#- ENV=spec_debug_custom_ESP8266_4M1M
#- ENV=spec_memanalyze_ESP8266
- ENV=test_ESP32-wrover-kit_4M316k
- ENV=test_ESP32-wrover-kit_4M316k_ETH
- ENV=test_ESP32_4M316k
- ENV=test_ESP32_4M316k_ETH
- ENV=test_ESP32_lolin-d32-pro
- ENV=test_ESP8266_4M1M_VCC
#- ENV=test_ESP8266_4M1M_VCC_MDNS_SD
- ENV=test_alt_wifi_ESP8266_4M1M_VCC
#- ENV=test_beta_ESP8266_16M_LittleFS
- ENV=test_beta_ESP8266_4M1M
script:
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -e $ENV
before_deploy:
- ./before_deploy
- export RELEASE_FILE=$(ls ESPEasy*.zip)
deploy:
provider: releases
@@ -83,7 +92,7 @@ deploy:
api_key:
secure: bZeuKI7evXeZYmGayfcvIC1fThBGcksAyOrCbZ8kAGeTbHGJqFLBBy8to5UpNBSZVfeDWo25Iqy8Pfbyb7p2c1hg6fG9jS0UzQkLnoUNMxpUM1dJACkZxvFdP4Br3Y3vUPWtrWUbo8rN/b3E6tjSNLE7vQiwsarj+eWTO2V6BGcsN0eHc04/UCM2+DcHvJ4y7Ec36yIUaClNAWMal1osBYaViruylOdBKT/WDs1ZMoJMceXCfxMQ/8J2moYvymKfSkXSmoMGmzlTuq8v5N4AweutjpC4Zba2BbxIJv+PwWjhfIgTviHFggSU90UPTKVWYv13vms92VVKz1CDVrUQNn+YQes9+ROPUnrMc9bJ+q7E1lWJRZeDMqGECB+8BjUtUk6H81K+XhOnW1mtZiMnvMCwkmE0OT1eBObGMcpR962/DUBoQDmulMs2IieB0dLobmUBhpc1syrKEPKxjY7yhhQMr6In82jODVLR3qDkNQ8xtIfevzCo/ocUjiOrXW4b/pDMy28Yh109DMb/KSWEsjjkkpXhsT1YVy2MwOa7FRhHFW+SNKX4Us8T75H+pO4mQ4afnPEtjYKodj7XD92zqNxKfMx3elEx5RK6HKekHjpXdYtuXzGONB9StA+2T43/2llt3n5fzv4BRfCumBEJ77/ufB0U/uhsCe6lVwJf34U=
file_glob: true
file: "${RELEASE_FILE}"
file: ESPEasy*.zip
skip_cleanup: true
on:
+3
View File
@@ -42,6 +42,9 @@ Details and discussion are on the "Experimental" section of the forum: https://w
Automated builds of the (new) documentation can be found at [ESPEasy.readthedocs.io](https://espeasy.readthedocs.io/en/latest/)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/letscontrolit/ESPEasy)
## Icons used
Icons on courtesy of [ICONS8](https://icons8.com/).
+35 -60
View File
@@ -25,89 +25,64 @@ if [ ! -d ${TMP_DIST} ]; then
exit 1
fi
echo "### Creating zip archives"
#Naming convention:
# ESP_Easy_[github version]_[plugin set]_[chip type]_[flash memory].bin
if [ -d "build_output/reject" ]; then
zip -qq ${CURPATH}/ESPEasy_ELF_files_$VERSION.zip build_output/reject/*
fi
zip -qq ${CURPATH}/ESPEasy_ELF_files_$VERSION.zip build_output/debug/*
echo "### Created ESPEasy_ELF_files_$VERSION.zip"
mkdir -p ${TMP_DIST}
cp -r dist/* ${TMP_DIST}/
if [ -d "docs/build" ]; then
# Docs have been created
mkdir -p ${TMP_DIST}/docs
cp -r docs/build/* ${TMP_DIST}/docs/
zip -r -qq ${CURPATH}/ESPEasy_docs_$VERSION.zip docs/build/*
echo "### Created ESPEasy_docs_$VERSION.zip"
fi
mkdir -p ${TMP_DIST}/memstats
# Must look into all possible env definitions.
# Exclude so called "spec_" (special) builds
for ENV in `grep "^\[env:" platformio*.ini |cut -d'[' -f2|cut -d']' -f1|cut -d':' -f2|sort -n|grep -v spec_`;
do
MAX_FILESIZE=1044464
if [[ ${ENV} == *"_1M"* ]]; then
# max 872 kiB - 16 bytes
MAX_FILESIZE=892912
fi
if [[ ${ENV} == *"_1M_OTA"* ]]; then
# max 600 kiB - 16 bytes
MAX_FILESIZE=614384
fi
if [[ ${ENV} == *"4M316k"* ]]; then
# ESP32 with 1800k of sketch space.
MAX_FILESIZE=1900544
fi
if [[ ${ENV} == *"debug_"* ]]; then
# Debug env, used for analysis, not to be run on a node.
MAX_FILESIZE=0
fi
FIRMWARE_BIN=`echo "${BINARY_PATH}/${ENV}/firmware.bin"`
if [ -f $FIRMWARE_BIN ]; then
FILESIZE=$(stat -c%s `echo "${FIRMWARE_BIN}"` )
if (( FILESIZE < MAX_FILESIZE )); then
echo
echo "SUCCESS: $FILESIZE < $MAX_FILESIZE Bytes. (${ENV})" >> ${BUILD_LOG}
BIN=${BINARY_PATH}/${ENV}/ESP_Easy_${VERSION}_${ENV}.bin
cp ${FIRMWARE_BIN} $BIN
python2 crc2.py $BIN
mv $BIN "${TMP_DIST}/bin/ESP_Easy_${VERSION}_${ENV}.bin"
else
echo "FAILED: too large $FILESIZE > $MAX_FILESIZE Bytes. (${ENV})" >> ${BUILD_LOG}
fi
else
echo "FAILED: No file created. (${ENV})" >> ${BUILD_LOG}
fi
ELFFILE=`echo "${BINARY_PATH}/${ENV}/firmware.elf"`
if [ -f $ELFFILE ]; then
SYMBOLS_STATS=`echo "${TMP_DIST}/memstats/symbols_${ENV}.txt"`
STRINGS_STATS=`echo "${TMP_DIST}/memstats/strings_${ENV}.txt"`
readelf -a ${ELFFILE} |grep 3ff |sort -n -k 3 > ${SYMBOLS_STATS}
objdump -s -j .rodata ${ELFFILE} > ${STRINGS_STATS}
fi
done
#create a source structure that is the same as the original ESPEasy project (and works with the howto on the wiki)
#rm -rf dist/Source 2>/dev/null
mkdir -p ${TMP_DIST}/source
cp -r lib ${TMP_DIST}/source/
cp -r src ${TMP_DIST}/source/
cp -r misc ${TMP_DIST}/source/
cp -r static ${TMP_DIST}/source/
cp -r tools ${TMP_DIST}/source/
cp platformio*.ini ${TMP_DIST}/source/
cp *.txt ${TMP_DIST}/source/
cp *.csv ${TMP_DIST}/source/
cp README* ${TMP_DIST}/source/
cp -r build_output/bin/* ${TMP_DIST}/bin
rm -f ${TMP_DIST}/bin/*ESP32*
cd ${TMP_DIST}
echo
echo "### Creating zip archive"
zip -qq ${CURPATH}/ESPEasy_$VERSION.zip -r .
if [ "$(ls -A ${TMP_DIST}/bin/)" ]; then
echo
zip -qq ${CURPATH}/ESPEasy_ESP82xx_$VERSION.zip -r .
echo "### Created ESPEasy_ESP82xx_$VERSION.zip"
fi
cd ${CURPATH}
rm -f ${TMP_DIST}/bin/*
cp -r build_output/bin/*ESP32* ${TMP_DIST}/bin
cd ${TMP_DIST}
# Display the build log.
cat ${BUILD_LOG}
if [ "$(ls -A ${TMP_DIST}/bin/)" ]; then
echo
zip -qq ${CURPATH}/ESPEasy_ESP32_$VERSION.zip -r .
echo "### Created ESPEasy_ESP32_$VERSION.zip"
fi
rm -Rf ${TMP_DIST}/* 2>/dev/null
rmdir ${TMP_DIST}
+47 -37
View File
@@ -1,8 +1,8 @@
import sys
import binascii
import struct
import md5
from hashlib import md5
import os
MD5DUMMY = "MD5_MD5_MD5_MD5_BoundariesOfTheSegmentsGoHere..." #48 chars
FILENAMEDUMMY = "ThisIsTheDummyPlaceHolderForTheBinaryFilename64ByteLongFilenames" #64 chars
@@ -49,16 +49,25 @@ def showParts(fileContent, offset):
# print ("please give a filename")
# k=input("press close to exit")
# sys.exit(1)
FileName = sys.argv[1]#"C:/ArduinoPortable/sketchbooks/build/sketch_jan15a.ino.bin"
FileName = sys.argv[1]
#FileName = "C:/ArduinoPortable/sketchbooks/build/sketch_jan15a.ino.bin"
print( "\n\nReplacing dummy MD5 checksum in .bin file")
with open(FileName, mode='rb') as file: # b is important -> binary
nextpos =0;
fileContent = file.read()
while nextpos >=0:
firmware_esp8266 = fileContent.find("ID_EASY_ESP8266") >= 0
firmware_esp32 = fileContent.find("ID_EASY_ESP32") >= 0
if firmware_esp8266:
print("ESP8266 build")
if firmware_esp32:
print("ESP32 build")
# TODO: showParts does not work for esp32
if firmware_esp8266:
nextpos =0;
while nextpos >=0:
nextpos = showParts(fileContent,nextpos)
startArray,endArray,hashString = "","",""
@@ -70,47 +79,48 @@ includeStr = "hash includes segments:"
# 3: RAM (initialized by bin file. Can be read but changes as you go :-( )
# 4: RAM
for i in (1,2 ): # use only stable segments, must be 4 in total. We use 2.
if firmware_esp8266:
for i in (1,2 ): # use only stable segments, must be 4 in total. We use 2.
startArray =startArray + MemorySegmentStart[i]
endArray = endArray + MemorySegmentEnd[i]
hashString =hashString + MemoryContent[i]
with open(FileName+str(i), mode='wb') as file: # b is important -> binary
file.write(MemoryContent[i])
includeStr = includeStr +" "+ str(i)
print (includeStr)
# IMPORTANT: pad array with zeros if you use only 3 segments (see above)
while len(startArray) < 16 :
startArray =startArray + struct.pack("I",0)
endArray = endArray + struct.pack("I",0)
# debug print (binascii.hexlify(startArray))
# debug print (binascii.hexlify(endArray))
if (len(endArray) + len (startArray)) != 32 :
print (includeStr)
# IMPORTANT: pad array with zeros if you use only 3 segments (see above)
while len(startArray) < 16 :
startArray =startArray + struct.pack("I",0)
endArray = endArray + struct.pack("I",0)
# debug print (binascii.hexlify(startArray))
# debug print (binascii.hexlify(endArray))
if (len(endArray) + len (startArray)) != 32 :
print("ERROR: please make sure you add / remove padding if you change the semgents.")
BinaryFileName = "";
if fileContent.find( FILENAMEDUMMY) < 0:
print("ERROR: FILENAMEDUMMY dummy not found in binary")
else:
BinaryFileName=os.path.basename(FileName) +"\0"
if len(BinaryFileName) >64: # check that filename is <48 chars
BinaryFileName=BinaryFileName[0:64] # truncate if necessary. 49th char in ESP is zero already
else:
BinaryFileName= BinaryFileName.ljust(64,'\0'); # pad with zeros.
if fileContent.find( MD5DUMMY) < 0:
print("ERROR: MD5 dummy not found in binary")
else:
hashString=hashString.replace (MD5DUMMY,"",1)
m = md5.new()
m.update (hashString) #use segment 1
md5hash = m.digest()
print("MD5 hash: "+ m.hexdigest())
print("\nwriting output file:\n" + FileName)
fileContent=fileContent.replace(MD5DUMMY,md5hash+startArray+endArray)
BinaryFileName=os.path.basename(FileName) +"\0"
if len(BinaryFileName) >64: # check that filename is <48 chars
BinaryFileName=BinaryFileName[0:64] # truncate if necessary. 49th char in ESP is zero already
else:
BinaryFileName= BinaryFileName.ljust(64,'\0'); # pad with zeros.
fileContent=fileContent.replace(FILENAMEDUMMY,BinaryFileName)
with open(FileName, mode='wb') as file: # b is important -> binary
file.write(fileContent)
if firmware_esp8266:
if fileContent.find( MD5DUMMY) < 0:
print("ERROR: MD5 dummy not found in binary")
else:
hashString=hashString.replace (MD5DUMMY,"",1)
m = md5(hashString) #use segment 1
md5hash = m.digest()
print("MD5 hash: "+ m.hexdigest())
fileContent=fileContent.replace(MD5DUMMY,md5hash+startArray+endArray)
print("\nwriting output file:\n" + FileName)
with open(FileName, mode='wb') as file: # b is important -> binary
file.write(fileContent)
#k=input("press close to exit")
+23 -2
View File
@@ -43,18 +43,34 @@ See [Arduino issue - SPIFFS file access slow on 16/14M flash config](https://git
If these speed issues will be fixed, it is very likely the SPIFFS must then be re-partitioned, thus loosing all data in the SPIFFS.
Special memory partitioning:
- 2M256 => 2 MB flash modules (e.g. Shelly1/WROOM02) with 256k SPIFFS (only core 2.5.0 or newer)
- 4M316k => For ESP32 with 4MB flash, sketch size is set to 1.8 MByte (default: 1.4 MByte)
- 4M1M => 4MB flash, 1 MB SPIFFS. Default layout for 4MB flash.
- 4M2M => 4MB flash, 2 MB SPIFFS. Introduced in October 2019. Only possible with core 2.5.2 or newer.
Difference between .bin and .bin.gz
Starting on esp8266/Arduino core 2.7.0, it is possible to flash images that have been compressed using GZip.
Please note that this only can be used on installs already running a very recent build.
This also means we still need to update the 2-step updater to support .bin.gz files.
ESP32 now has 3 builds:
- esp32test_4M316k Larger sketch partition (1.8MB) smaller SPIFFS (316 kB)
- custom_ESP32_4M316k Build template using either the plugin set defined in ``Custom.h`` or ``tools/pio/pre_custom_esp32.py``
- test_ESP32_4M316k Build using the "testing" set of plugins for ESP32
- test_ESP32-wrover-kit_4M316k A build for ESP32 including build flags for the official WRover test kit.
Since ESP32 does have its flash partitioned in several blocks, we have 2 bin files of each ESP32 build:
- test_ESP32_4M316k.bin
- test_ESP32_4M316k-factory.bin
The binary with "-factory" in the name must be flashed on a new node, via the serial interface of the board.
This flash must be started at address 0.
The binary without "-factory" can be used for OTA updates. (OTA for ESP32 is added in May 2020)
Please note that changing between those versions will destroy the settings!
The SPIFFS partition will be lost and that contains all settings.
@@ -79,6 +95,11 @@ do that. More information about the tool is found here:
https://github.com/Grovkillen/ESP_Easy_Flasher
You can also have custom serial commands entered in a txt file. One command per line.
For flashing ESP32 you need Espressif's own Flash Download Tools.
The latest version can be downloaded from: https://www.espressif.com/en/support/download/other-tools
Further reading:
For more information, see: https://github.com/letscontrolit/ESPEasy
Or our forum: https://www.letscontrolit.com/forum/
+858
View File
@@ -1,3 +1,861 @@
-------------------------------------------------
Changes in release mega-20200913 (since mega-20200829)
-------------------------------------------------
Release date: zo 13 sep 2020 0:11:35 CEST
Gijs Noorlander (19):
[Build] Change to esp8266/Arduino core 2.7.4
[Travis] Also update "core_273" to "core_274" in build names
[new new] Prepare for upcoming changes of 'new' in esp8266/Arduino
[build] Add build definition for 1M with Serial Switch.
[build] Add Stable controller set to hard_LCtech_relay_x2_1M build
Include debug logs and other removed features to reduce size LC_TECH_1M
[Scheduler] Fix PLUGIN_TIMER_IN not being called (#3247)
[Docs] Add some documentation on C011 Generic HTTP Advanced
[HTTP Advanced] Do not percent-encode body (#1306)
[HTTP Advanced] Optimize load/save settings + add send binary option.
[Cleanup] Reduce memory usage on load/save C018 LoRaWAN RN2483 controller
[RN2483] Call LoRaWAN module reset when LoRaWAN stack hangs (#3225 )
[C011] Use ESP8266HTTPClient library
[C011] Fix build issue for older ESP8266 core versions
[Travis] Disable core 2.4.2 builds as Travis can't install it anymore
[C011] Improve logging + connection tracking.
[C011] Split multiline headers + also parse url
[Cleanup] Reduce memory usage when using ControllerSettings struct
[VCC Build] Strip Servo, Blynk and Zabbix from test build to make it fit.
Max Prokhorov (3):
== INFINITY / NAN are bogus
Update _P005_DHT.ino
typo
TD-er (14):
Add gitpod config
Sanitize Requirements.txt and switch to Python 3.8
Add Gitpod extensions
Add VSCode Extentions
Change bracket pair colorizer for one that installs in GitPod
Remove PlatformIO Extension from GitPod.yml
[Arduino IDE] Fix relative path for includes
Document hardware bug on Wemos DHT shield (#2569)
[ESP32] Core 2.0.0 released
[PIO] Set minimum PlatformIO library to 5.0.1
Restore Requirements.txt after merge
[Gitpod] Use pip3 as we need Python3
[Gitpod] Change init: into before:
[Gitpod] Apparently Gitpod still uses Python 2.7
Ton Huisman (5):
[Checks] Disallow - (dash) in tasknames This may *feel* like a breaking change, but using names with dash(es) doesn't properly work
[Checks] Disallow all operators in tasknames
[Checks] Update docs, disallow curly braces
[Checks] Disallow round braces too
[Checks] Update docs
Toni (2):
HeatpumpIR 1.0.16 update
Build definition for image test_ESP32_IRExt_4M316k:
-------------------------------------------------
Changes in release mega-20200829 (since mega-20200812)
-------------------------------------------------
Release date: za 29 aug 2020 15:58:42 CEST
Gijs Noorlander (32):
[docs] Fix table for P095
[docs] Replace code-block:: html with code-block:: none
[SI7021] Convert state to enum class
[SI7071] Allow multiple instances of the same plugin
[SI7071] Add timeout for reading sensor (1 sec)
[Build] Add normal_ESP8266_4M1M_VCC env.
[ESPEasy p2p] Init node data to 0
[Build size] Do not include I2C device names for minimal OTA builds
[Controller] Convert controller delay handler to pointer
[BME280] Allow to be used with I2C multiplexer
[Docs] Add some description for P029 Output Domoticz MQTT helper
[I2C] Add PLUGIN_WEBFORM_SHOW_I2C_PARAMS to separate I2C address setup
[I2C] Move I2C address selector for all I2C plugins with address field
[Cleanup] Uncrustify all I2C plugins
Revert changes in P095 as they are already already covered by #3205
[I2C multiplexer] Fix build issue on units not using I2C multiplexer
[Build] Fix build size exceeded for testing builds
[Docs] Add documentation for ESP32 ethernet + missing config page
[ESP32 ETH] Add pre-defined Olimex ESP32-EVB config
[ESP32 ETH] Fix JSON when Ethernet is enabled.
[Docs] Fix images with .PNG instead of .png extension
[Sphinx docs] Change deprecated add_stylesheet to add_css_file
[Docs] Updated DL-bus documentation as it was hard to find
[Ethernet] Create enum class for NetworkMedium
[Ethernet] Create enum class for EthClockMode
[Ethernet] Create enum class for EthPhyType
[Ethernet] Fix UDP p2p when using ethernet.
[Cleanup] Try not using default: to let compiler find missing used enums
[Factory Defaults] Add Olimex ESP32 GATEWAY definitions
Fix default settings for I2C and ethernet
Only show matching factory default settings
[Ethernet] Switch to WiFi when Ethernet adapter is not found
Michał Obrembski (1):
Fixed compile-time defines not working in ESP32 platform
TD-er (2):
Fix build issue for P094 CUL reader
Fix C002 Domoticz dimmer switch set value (#3230)
Ton Huisman (5):
[I2C] Some fixes and improvements
[I2C] Add TCA9543a multiplexer, updated docs
[I2C Docs] Emphasize configuration with multiplexer
[I2C Docs] Add note about multiplexer address
[P044] Accept '_' in meter ID
tonhuisman (11):
[Docs] Updated commands reference
[Docs] Fixed some typos and Sphinx syntax errors
[OLED] Don't change shared bus speed
[I2C] Implement I2C Multiplexer
[I2C] Improve I2C Multiplexer support
[I2C] Fix builderror on SettingsStructSize (again)
[P008] Fix saving/loading new setting
[P008] Fix saving/loading new setting
[I2C] Bugfixes and improvements for multiplexer implementation
[I2C] Optimizations and improvements
[I2C/Doc] Add Hardware page documentation, RTD help button
uwekaditz (2):
[P092_DLBus] Move plugin data from lib to PluginStructs
Update _P092_DLbus.ino
-------------------------------------------------
Changes in release mega-20200812 (since mega-20200801)
-------------------------------------------------
Release date: wo 12 aug 2020 23:29:35 CEST
Gijs Noorlander (19):
[Python] Update of python packages in requirements.txt
[C011] Fix incorrect load/save settings.
[Uncrustify] Clean up C011 code using Uncrustify.
[Blynk] Make C015 Blynk controller compile again
Include C015 in the custom build for testing
[GPS] Apply sanity check on received data.
[Rules Timer] Use scheduler for rules timer
[Timers] Make loop timers with fixed interval and nr of loops
[Docs] Add documentation for msec timers and loop timers
[Timers] Cleanup of timer code.
[Scheduler] Move global scheduler functions into C++ class
[Timers] Change interval timer defines into enum class
[Scheduler] Change plugin pointer type into enum class
[Dallas iButton] Enable interrupts when no sensor found
[Dallas] Fix NoInterrupt calls for ESP32
Uncrustify both Dallas plugins
[Dallas] Make sure function forward declaration is on one line
[Dallas] Add warning about the need for a pull up
[Docs] Update mentioned dates of introduced feature
TD-er (1):
[Dallas] Enable interrupts when no sensor found
Wiki591 (1):
Update URLs.rst
jimmys01 (1):
[IR] Update Library
tonhuisman (4):
[Docs] Update [P036] documentation that went missing
[P010] Changes to enable use on ESP32 (#3175)
[P010] Remove some left-overs from testing
[P010] Correction in I2C handing, and fix for old issue
-------------------------------------------------
Changes in release mega-20200801 (since mega-20200721)
-------------------------------------------------
Release date: za 1 aug 2020 16:27:55 CEST
Chris-1965 (14):
Fonts usage added
minor formatting
minor
updated suggested requests
chneged requested items from last pull request
comment on pins added
added cusrom-sample-h file to repository
updated doc files
also in ino file -> docs adapted
new update
changed fonts can disabled by define, font names instead of numbers
resolved a bug : commands other than tft were all sucussfull. Also the output log moved in else otherwise message appears for all commands
platformio changed
Changed naming as proposed
Gijs Noorlander (25):
[Framed OLED] Add checks for display initialized
[P036_FramedOLED] Reduce stack and heap memory usage
[Web form] Force value in number field within given range
[P036_FramedOLED] Uncrustify source code
[Framed OLED] Move plugin data to separate .h/.cpp
[Framed OLED] Clean up code + use temp. object for load/save lines
[e-ink] Include LOLIN_EPD in the lib_deps to make it compile
[Alternate WiFi] Use different SDK build for nodes with WiFi issues (#2931)
[GCC 10] Fix compile issues with GCC 10.1
[Cleanup] Move RTC struct code to .h/.cpp
[Build] Remove test VCC MDNS SD build from Travis build
Fix build errors
[ESP32] Fix build issue (spiffs.h vs SPIFFS.h)
[ESP32 build] Fix build issues with lots of lib_ignore set (#3083)
[Docs] Document /json and /csv URLs
[Arduino] Update to core 2.7.3
[SDK] Disable alt_wifi and use SDK22x_191122 for all builds
[Travis] Split builds in several jobs
[Build] Do not generate .bin.gz for 1M builds as no support 2-step OTA
[Build] Revert back to SDK22x_190703 + alt_wifi build
[Build] Disable custom_alt_wifi_ESP8266_1M as it is too large
[Build] Fix using GCC 10.1 toolchain
[core_3.0.0 alpha] Fix build issue analog PWMRANGE
Fix build issue on ESP32 finding SPIFFS.h
[Travis] Enable some core 3.0.0 alpha (*_beta_*) builds
Jean-Michel DECORET (6):
Add eInk plugin
Add SPI device type
Optimize code: - remove unwanted output - move http answer only in debug mode - fix functions args to const - optimize parsing color data
Remove useless comments Use BUILD_NO_DEBUG define Add display timings Fix input text to handle degress and monetary symbols (specific for adafruit gfx lib with eink screen)
Fix documentation typo
Fix documentation typo
Michael Schröder (1):
Decrease the longpress min interval to 500ms
tonhuisman (4):
[Build] Add P029 to PLUGIN_SET_ONLY_SWITCH
[Build] Enable P029 for hard_shelly builds
[Build] Move USES_DOMOTICZ logic together and in a more useful order
[Build] Remove superfluous #defines
uwekaditz (7):
merged Release mega-20200328
[P036] Memory optimization (issue #2799)
[P036] temporary pointer to P036_data_struct was not deleted
[P036] merged with Tonis PR #3026
[P036] re-schedule Settings.TaskDeviceTimer after JumpToPage
[P036] clearing window for scrolling lines was 1pix too large in y direction
[P036] Fixed: display_indicator() crashed
-------------------------------------------------
Changes in release mega-20200721 (since mega-20200720)
-------------------------------------------------
Release date: di 21 jul 2020 11:23:15 CEST
Gijs Noorlander (22):
[WiFi] Reduce wifi reset calls and call full wifi init at reset
[WiFi] Add timeout to get out of incorrect WiFi.connected() state
[WiFi] Convert bit-wise operations to use bitSet/bitClear/bitRead
[WiFi] No longer rely on WiFi.isConnected()
[WiFi] Detect and work around missing events
Fix issue where task name / task var name was incorrect
Reduce minimal OTA build slightly
[WiFi] Small fixes for WiFi related code
[ESP32] Fix build error on ESP32
[WiFi] Clear event callback on ESP32 + correct order of log/disconnect
[PIO] revert custom_beta env to stage core lib
[PIO ESP32] Update to latest Platformio espressif32@1.12.4
[ESPEasy p2p] Reload UDP port settings when changed
[UDP] Reduce max UDP packet size
[NTP] After timeout or receiving invalid packet, port could be held
[Syslog] Add custom port to the syslog IP (#1258)
[Docs] Update docs related to p2p UDP port no longer need reboot
[UDP p2p] Fix crash on ESP32 where UDP is started before connected
[ESP32] Recognize last boot state as Deepsleep (#3155)
[TimeZone] Move timezone configuration line to location settings (#3141)
[Docs] Document Tools => Advanced Settings
[WiFi] Copy DNS servers from DHCP when using fixed last octet (#3111)
-------------------------------------------------
Changes in release mega-20200720 (since mega-20200703)
-------------------------------------------------
Release date: ma 20 jul 2020 23:35:58 CEST
Gijs Noorlander (13):
[Modbus RTU] Move Modbus code to .h/.cpp file to reduce size
Convert scheduler from .ino to .cpp/.h
[Build] Fix missing include building ESP32
[Build] Fix build error for C018, due to removed forward declaration
Make delay queue macro a bit more logical
[Frontend] Only show "Submitted" message when pressing submit (#3144)
[ESP32 ETH] Fix build issue due to recent changes
[Arduino IDE] Fix build issue with Arduino IDE
Fix typo in filename for P044 data struct
[Arduino IDE] Make P076 compile again on Arduino IDE
[Arduino IDE] Fix build issue for P035_IRTX.ino
[Arduino IDE] Fix compile issues when selecting specific controllers
[Syslog] Fix crash with syslog enabled on wifi (re)connect (#3147 #3072)
TD-er (1):
Fix ADS1115 mixing input signals (#3159)
jimmys01 (1):
arduJSON library update
llevet (2):
Update _P095_ILI9341.ino
P095 Plugin: Fix bug #3047
tonhuisman (5):
[P008] Add option to convert value to 'hex' (#3068), and updated documentation
[TaskDisable] Bugfix for plugins without PLUGIN_EXIT implementation
[TaskDisable] Improve readability of code after bugfix
[TaskDisable] Remove unneeded else & return
[P076] fix: Custom pin settings in same order as Sensor pins, improved label, improved cast
-------------------------------------------------
Changes in release mega-20200703 (since mega-20200608)
-------------------------------------------------
Release date: vr 3 jul 2020 13:15:58 CEST
Florin (1):
Disable Arduino OTA by default for ESP32
Gijs Noorlander (31):
[ESP32] Only define FEATURE_ARDUINO_OTA in build config, not in .h files
[Build] Disable test_beta_ESP8266_4M1M for now as it is too big
[PIO] Use espressif8266@2.5.2 with fixed esp8266_stack_decoder
[Controller] Memory optimization for sending SENSOR_TYPE_STRING
[Controller] Check if controller host/IP is set before MQTT connect
[MQTT] Add function to check MQTT queue full state
[Cleanup] Free ControllerSettings as soon as possible to free memory
[Cleanup] Try to use move constructor when adding to controller queue
[Controller] Cache needed controller info to reduce memory usage
[MQTT] More efficient MQTT copy incoming messages
[Controller] Check if MakeControllerSettings failed due to low RAM
[MQTT import] Check if MakeControllerSettings failed due to out of RAM
Fix merge issue WiFiConnected changed to NetworkConnected
[P001 Switch] Reduce stack usage on PLUGIN_WEBFORM_LOAD
[Blynk] Reduce stack usage on Blynk_get
[Web Frontend] Reduce stack usage on DST configuration
[Python] Update package versions in requirements.txt
addFormSelectorI2C Fix high stack usage (#3130)
Minimize stack allocation in plugins
[Build] Add LittleFS to lib_ignore
[build] Exclude function from build for minimal OTA
[C011] Generic HTTP Advanced Reduce stack usage (#3123)
[Controller] Check success of controller settings allocation processing queue
[HTTP controller] Memory optimization, prevent copy queue element
[Build] Allow building using SD support for special debug builds
[Frontend] Use stringProvider on some more strings
[Domoticz HTTP] Make sending slightly more efficient
[Web interface] Fix bug in I2C address selector
[Rules] Fix rules handling of set 2...4 when using admin login (#3113)
[Syslog] Fix high stack usage for Syslog (#3128)
[Documentation] Add documentation on the log settings.
Grzegorz Dziubak (1):
Update _P047_i2c-soil-moisture-sensor.ino
Michał Obrembski (10):
Initial Ethernet support
Added displaying Ethernet parameter in sysinfo and root page
Added configuration of Eth Phy via Hardware settings web page
Added Olimex ESP32-PoE board to DeviceModel and default settings
Increased BUILD number to 20107
Fix build on devices without Ethernet.
Remove ifdefs for Ethernet in settings
Renamed functions in ESPEasyEth, added eth* prefix
Moved WifiGetHostname into more generic createRFCCompliantHostname
Added basic implementation of Ethernet Static IP
Pavel Moravec (1):
Fixed IP address range checking
Peter Kretz (24):
atlas Sensor for pH an Redox (ORP) added
- Atlas EZO new webserver added - Serial --> logging - No [TESTING]
Extended the great work from Michał Obrembski mobrembski, so that: - mqtt works - WifiConnected works as EthernetConnected
- Moved ETHEvent from ESPEasy.ino to ESPEasyEthEvent.ino - Corrected Hostname Setting - ESPEasy P2P works now with some minor changes for IP-Address Handling in Network.ino
Change requested by TD-er review: clarification of build file https://github.com/letscontrolit/ESPEasy/pull/2962/files/8ba2bb88eadb98c4691cbb1f40c4d5466cb7b5b8
ESP32 with Ethernet or Wifi, not both at the same time configurable via Hardware Page. - ESP P2P is working - Only ETH.beginPacket() with Standard Parameter is working at the moment, configuration will follow. - Network.in not cpp/h files but this will be changed in future - Some TODO: PKR: comments will be removed in the future, too
Removed some comments Build now working with HAS_ETHERNET not defined
- Ethernet Commands - remove useless comments - ETH.config moved after ETH.begin - Added note: Be aware with ESPEasyP2P Network, since IP Address will change. There could be conflicts. - Ethernet JSON - Ethernet Variables
- ETHEvents moved to WifiEvents, because they are the same type
ESPEasyEth.ino --> ESPEasyEth.cpp/h Network.ino --> Network.cpp/h
ESPEasyWiFi_credentials.ino --> cpp/h ESPEasyWiFi_ProcessEvent.ino --> cpp/h ESPEasyWiFi.ino --> cpp/h
Network.h/cpp --> ESPEasyNetwork.h/cpp
removed upload flags
- New events: ETHERNET#Connected and ETHERNET#Disconnected
Fixed https://travis-ci.org/github/letscontrolit/ESPEasy/builds/680698472 ci build error
Fixed ci compile bug https://travis-ci.org/github/letscontrolit/ESPEasy/builds/680724129
Fixed bug reported by mobremski
- UDP / ESPEasyP2P now works for ETHERNET - Hostname Handling refactored for better overview: - String NetworkGetHostNameFromSettings() returns Settings.getHostname() - String NetworkCreateRFCCompliantHostname() creates a RFCcompliant Hostname from Settings.cpp - String NetworkGetHostname() returns the Hostname prevoiusly set in ETH or Wifi dependong on Mode - MacAddress Handling refactored - String NetworkMacAddress() returns the Mac addres of ETH or Wifi depending on Mode - String WifiSoftAPmacAddress() returns WiFi.softAPmacAddress(mac) as String
This String function is not needed, because there is a ETH.macAddress() which returns a String. I changed it to the byte version of the function and now uint8_t * NetworkMacAddressAsBytes(uint8_t* mac) returns either this in Ethernet mode or WiFi.macAddress(mac) in Wifi mode.
Check changed as requested by TD-er
addFormNote(F("Be aware with ESPEasyP2P Network, since IP Address will change. There could be conflicts.")); not used anymore because P2P UDP works good
removede personal upload flags
_P124_Atlas_EZO_pH.ino and _P222_Atlas_EZO_ORP.ino deleted since ther are not in ESPEasy but in Playground. There is another Issu, to put them in ESPEasy mega
- Error in Network Name fpr WiFi fixed - logging improvements
bccrew (1):
Change FormSubHeader to clarify difference between IP settings of LAN or WiFi
tonhuisman (5):
[P064] Gesture - APDS-9960 plugin: Added switching plugin mode and settings to fine-tune without recompiling source [APDS-9960 library] Added extensions and applied fixes from original Github project (including not merged yet improvements) [P064] Added/updated documentation for Gesture - APDS-9960 plugin [Documentation] Updated footer copyright notice to show 2018..2020
[P064] Made code-readability and other improvements as TD-er suggested, fixed a swapped argument bug
[Tasks] Call PLUGIN_INIT/PLUGIN_EXIT using TaskEnable/TaskDisable from rules
[Transformation] Add P/p (Password display)
[Transformation] Optimizations for Password transformation
-------------------------------------------------
Changes in release mega-20200608 (since mega-20200515)
-------------------------------------------------
Release date: ma 8 jun 2020 22:51:44 CEST
Bartlomiej Zimon (11):
rfid events update for P008/P017/P040, plus send event after log line.
PN532: remove hardcoded scl/sda pins reading and use hardware configuration instead
PN532: update comment
Webserver - add port number setting into Advanced options, resolves #3031 and #573
P2P: send and receive webserver port number, add port to link on rootpage #2252
NodeStruct: init webgui_portnumber value
p2p infopacket - use low/highByte
Webserver - increase BUILD number and set default value for port number
Webserver port setting - add reboot note
MDNS - send service with actual webserver port
P2P: respect also build number in condition
Florin (7):
Adding buzzer capabilities back to ESP32.
Allow to set the Latitude and longitude when resetting the firmware from custom.h or using the build_flags
clean up code and variables when NOTIFIER_SET_NONE is defined.
ESP32: Allow to select one of the two available SPI ports
clean up code and variables when NOTIFIER_SET_NONE is defined.
Fix for allowing negative timeOffset from UTC in constructor
rename the tone to toneESP32 to be more specific
Gijs Noorlander (27):
[MQTT] Process publish LWT connect message asynchronous
[MQTT] Stop trying to send LWT connected when client disconnects
[LittleFS] Make switching between SPIFFS and LittleFS easy to do
[ESPEasySerial] Update to v2.0.3 adding I2C UART to ESP32 + fix bug ESP32
[Build] Fix merge error
[PIO] Move to esp8266/Arduino core 2.7.1
[PIO] Hide deprecated warning for SPIFFS
[Vagrant] Fix vagrant build installing all required Python packages
[Notifications] Make sure all custom defines are set at compile time
[Travis] Fix deploy multiple ZIP files + split ESP82xx and ESP32 files
[Build] Fix Python 3.8 build when no .git dir or pygit2 not installed
[GPS] Add GPS#travelled=... event (#3099)
[Build] Add ina219 and mpu6050 to custom build (#3100)
[Build] Disable diagnostics code for test_ESP8266_4M1M_VCC to fit size
[Build] Disabling timing stats results in build errors for ESP32
[Commands] Split commands.ino to .h/.cpp to overcome build/link issues
[Build] Limit build size (no diagnostics) for test_beta_ESP8266_4M1M
[Notifications] Show notification tab when notifiers set via Custom.h
[Notifiers] switch from NOTIFIER_SET_NONE to USES_NOTIFIER in code
[ESP32] Fix Disabling ARDUINO_OTA fails the build (#3083)
[ESP32 build] Fix capitalization error in #include <esp_partition.h>
[ESP32] Update to platform-espressif32@1.12.2
[PIO] Add exception_decoder as serial monitor filter
[WiFi] Reduce excessive logs WIFI : Disconnected: WiFi.status()
[GPS] Add sanity check for reporting distance travelled event
Transform defines in EventValueSource into enum
[Build] Disable diagnostics in test/dev build to reduce build size
Michał Obrembski (2):
Added /raw endpoint which gives an easy access to raw value of sensor
Changed format of RAW to CSV, added ability to filter values
Michał Obrembski (3):
Fixed invalid check of valnr validity in CSV output mode
Renamed RAW to CSV, added printing of header
Removed usage of String.clear()
Saverio Cisternino (1):
Fix parse_uint ref https://github.com/staticlibs/ccronexpr/pull/30
TD-er (1):
[Bug] ControllerIndex not set when calling CPLUGIN calls
denisfrench (1):
[MQTT] Connect message honors LWT settings (#3006)
jimmys01 (1):
[IR] Update Library
sakinit (18):
Show for ESP32 also the first rule on the webserver rules page
Fix ESP32 undefined pin initialisation
Don't repeat the last rule on the next webserver page
Revert P1WifiGateway to 30cbb4c to bugfix this more generic code
Cherry-pick relevant P1WifiGateway updates since 30cbb4c
Fix the datagram check to be able to send valid messages again
Fix the serial reading algorithm
Fix P1WifiGateway webserver start
Remove temporary comments
Use ESPeasySerial
Restart P1WifiGateway if webserver start failed
Optimize serial reading algorithm and move client from plugin into task
Fix ESP32 reboot cause at boot/setup
Optimize serial in duration
Update due to review comments
Add sanity checks based on review comments
Discard data received from WiFi client due to review comment
Update based on review comments
tonhuisman (6):
[Rules page] Add RTD help button and fix page layout issue ('Old Engine')
[Transformation] Add R/r transformations (LEFT/RIGHT and L/R)
[Transformations] Adjusted R/r to L/l and added c
[Justifications] Add 'C' (Capitalize, OPEN -> Open) option
[Justifications] Added u/l for upper/lowercasing the value, removed dash-check from C justificaion
[Docs] Describe 'elseif' with some examples
-------------------------------------------------
Changes in release mega-20200515 (since mega-20200426)
-------------------------------------------------
Release date: vr 15 mei 2020 23:10:38 CEST
Gijs Noorlander (58):
[ADC] Allow multiple instances of ADC plugin (ESP32)
[ADC] Perform VCC read before starting any WiFi activity
[ADC] Format using uncrustify
[ADC] Perform ADC read at boot + improve filtering for P002_ADC
[ADC] Add Touch/Hall Effect for ESP32 + ADC pin selection
[Bitset operators] Use Arduino macros instead of our own functions
[Touch] Split Touch Pad support into new plugin
[Docs] Add documentation for P097_Touch and P095_ILI9341
[docs] Update docs for P002_ADC
[PVS-Studio] sizeof(Device) -> Device.size()
[PVS-Studio] EventStruct has no operator=
[PVS-Studio] Not all members of a class are initialized
[PVS-Studio] Missing break; in switch statement (C018 RN2483 TTN)
[PVS-Studio] FrasmedOLED display pointer dereference before check !NULL
[PVS-Studio] Error log in rules not complete
[PVS-Studio] File info struct in webserver rules not all initialized
[PVS-Studio] Redundant check in rules conditionMatchExtended
[PVS-Studio] CWE-1164:The 'note' variable was assigned the same value.
[PVS-Studio] ESPEasy p2p incorrect check for binary data
[PVS-Studio] SSDP Specify printf format
[PVS Studio] Framed OLED: Simplify check for turning on display
[PVS-Studio] Suppress char out of range warning in static data
[PVS-Studio] Fix 'dangerous' macro by using braces.
[PVS-studio] Fix possible out of range array access
[PVS-studio] Suppress char out of range warning in static data
[PVS-Studio] Merge duplicate case statements
[PVS-Studio] Use implicit cast to float in scheduler idle time stats
[PVS-Studio] Remove unused variable in SenseAir plugin
[PVS-Studio] Use correct array index in Plugin_Helper_serial.ino
[ILI9341] Fix build error when building for 1M units
[Core 2.7.0] Switch to esp8266/Arduino 2.7.0
[Build] Add custom_beta_1M build
[Build] Rename PIO environments referring core_263 to core_270
[PIO] Generate filename at build, not in post processing
[PIO] Fix showing binary file name in sysinfo page
[PIO] Attempt to fix missing quote level in Linux
[PIO] Fix Windows/Linux detection in number of quote levels
[PIO] Final fix for proper quote level per OS + store build platform
[PIO] Add Git branch description to build info
[PIO] Move build environment to Python 3.8 as 2.7 is no longer supported
[PIO] Python 3.8 requirements.txt list
[PIO] Updated packages in Python 3.8 requirements.txt list
[PIO] Relax PlatformIO version in requirements.txt to >= 4.3.3
[PIO] Use Python 3.8 on Vagrant/Ubuntu builds
[PIO] GZip and copy files to build_output directory
[PIO] Include PlatformIO env dump in build output for diagnostics
[PIO] Update docs/requirements.txt
[PIO] Compare build sizes when copying the build files.
[PIO] Adopt deploy scripts to new situation where Python scripts do all
[PIO] Split zip files in before_deploy
[PIO] Zip docs dir recursive
[PIO] Add missing parts in the included source dir in the build ZIP file
[Vagrant] Fix issue where update fails due to Grub interactive update
[Vagrant] Show Vagrant build as build origin on sysinfo page
[Shelly PLUG-S] Add template + build definition for Shelly PLUG-S
[PIO] Upgrade to platformio / platform-espressif8266 @2.5.0
[Docs] Describe files in nightly builds
[RN2483] Controller should also send to TTN when not connected to WiFi
sakinit (1):
Fix ESP32 build if P001 is not included
-------------------------------------------------
Changes in release mega-20200426 (since mega-20200410)
-------------------------------------------------
Release date: zo 26 apr 2020 1:27:18 CEST
Bartlomiej Zimon (12):
P004_dallas: esp32 optimisation - move bit read/write to IRAM
add factory bins into release zip - to be found in factory_bin dir
before_deploy: remove echo
set BaseVarIndex and sensortype in event before call PLUGIN_TIMER_IN
P008_RFID: little reorder
P040_ID12/RDM6300: fix for triggering new tag and detection of tag unavailable #2982
crc2: move to hashlib
rfid: clean up in logging
ESP32: add to webserver firmware update feature
ESP32: add new ESP32HTTPUpdateServer lib
ESP32: fill binary filename, count MD5 only for esp8266
ESP/ESP32: add id_tag for future proposes and use it to detect firmware.bin
Gijs Noorlander (29):
[MQTT] Add checkbox for extended Controller Settings
[Storage] Move SettingsType code to separate .h/.cpp
[MQTT] Move global MQTT parameters to controller settings
[Controller] Allow to use longer controller credentials
[MQTT] Fix build issue with disabled MQTT
[PIO] Change depicated -Wl,-T into board_build.ldscript
[Settings] Improve SettingsType handling
Fix reporting binaryFileName in sysvars page
[Build size] Optimize command handling macro to reduce build size
[LWIP2] Change LWIP2 from low mem to high bandwidth
[P092] Mark plugin as [TESTING]
[ILI9341] Rename plugin to P095 + rebase to current HEAD of mega branch
[ILI9341] Move to custom build due to build size
[PulseCounter] Add SetPulseCounterTotal command
[Cleanup] Code formatting for Pulse Counter
Fix build issue
[ESP32 OTA] Show sketch size in sysinfo page
[ESP32 OTA] Exclude ESP32HTTPUpdateServer lib for ESP82xx builds
[Pulse Counter] Call PLUGIN_READ after set counter (#3019)
[Pulse Counter] Use unused 4th UserVar to restore total pulse counter
[Rules] Check for common mistakes and patch before parsing
[Controller] Make use extended credentials optional per controller
[ESPEasySerial] Update v2.0.1: Only use SWserial override on HW serial
[RN2483] SWserial override as a define
[RN2483] Only alter set keys if either OTAA or ABP is set
[RN2483] Improve Autobaud + unit detection at boot
[RN2483] Fix build error for ESP32
[RN2483] Rename sendAutoBaud to sendWakeSequence
[Rules] Clarify syntax error auto correct log entry
Jan-Jonas Sämann (1):
Make default reset button gpio configurable
Jean-Michel DECORET (9):
Add plugin Display TFT - ILI9341
Conform plugin to guidelines
Add comments
Add plugin Display TFT - ILI9341
Conform plugin to guidelines
Add comments
Change plugin number (242 -> 090)
Change to plugin 091
Make plugin compatible with ESP32
TD-er (7):
[rules] Allow "if [" and "if[" in rules (#2987)
[rules] Allow "elseif [" and "elseif[" in rules
[RTC task values] Clear last task values when adding new task
[GitHub] Add stale bot to manage inactive issues
[WiFi] Fix WiFiConnect command should force (re)connect (#2985)
[Controller] Only update password when it is not "*****" (#3015)
[HTTP command] Fix incorrect check for valid port
Toni (1):
HeatpumpIR 1.0.15 update
sakinit (1):
Fix ESP32 serial write
uwekaditz (14):
[P092] New PlugIn to decode the DL-Bus
[P092] New PlugIn to decode the DL-Bus
Update _P092_DLbus.ino
Update _P092_DLbus.ino
[P092] Timing optimized
[P092] Memory usage optimized
[P092] Changes requested by TDer
[P092] Documentation added
[P092] More documentation added
[P092] Documentation updated
[P093] Documentation updated
Memory improvement for _P092 plug in
Merge conflicts solved
merged with release mega-20200305
-------------------------------------------------
Changes in release mega-20200410 (since mega-20200328)
-------------------------------------------------
Release date: vr 10 apr 2020 21:23:29 CEST
Bartlomiej Zimon (1):
ESP32: add subtarget for genuine units firmware-factory.bin Resolves #2964 #2941 #2486
Gijs Noorlander (16):
[Frontend] Fix reload on change for selectors (#2974 )
[Frontend] Fix crash when loading config + controller page
[CUL Reader] P094_CULReader
[CUL Reader] Clean up code
[CUL Reader] Add 4th filter parameter
[CUL Reader] Fix bug in save/load settings
[CUL Reader] Add positional match
[Sysvar] Fix show %ip% and %ip4% instead of %ip4% twice
[CUL Reader] Add basic docs
[Webserver] Fix ambiguous function definitions for selectors
[Serial Plugins] Share more code among plugins using serial
[Build] Fix build issue
[build] New attempt to fix build for unused static function
[PulseCounter] Restore from RTC before initializing pin triggers
[WiFi] Fix problem with static IP and reconnect ESP32 (#2997)
[WiFi] Switch to default PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
Michael Schröder (2):
Fix DeepSleep0 command
Update deepsleep-command docs
TD-er (2):
[P020_Ser2Net] Fix missing break; PLUGIN_SERIAL_IN
[CUL Reader] 12 items per filter line + extra chars on filter whitelist
tonhuisman (5):
[P036] Added setting for 'Keep display off receiving text'
[P036] Added setting for 'Wake display on receiving text'
[P036] Added new setting to plugin documentation
Fixed note wording
Made note wording more functional
-------------------------------------------------
Changes in release mega-20200328 (since mega-20200310)
-------------------------------------------------
Release date: za 28 mrt 2020 2:55:55 CET
Bartlomiej Zimon (2):
[SysVars] small optimization
[SysVars] concat->String()
Boris Krivonog (30):
Initial commit of the Mitsibutshi HP integration.
Added device values.
first contact
push on change
push on change
unified code read and update
added update ...
set temperature ...
write all parameters
logging ...
logs fixed
if update was successful, update settings immediatelly
renamed to settings
don't read during write, don't request info we don't care about ...
Added info about which specific commit used.
reverted changes made in other files
reverted changes made in other files
reverted changes made in other files
fixed compile time warnings
Renamed to 092 plugin.
Rewrote communication part, removed delays from code, optimised handling and storing of data ...
Write re-enabled
Renamed to 093 plugin.
Renamed to 093 plugin.
Improved write operations
Fixed build when debug is disabled
Make sure to break out of switch-case.
Handle only "MHP" commands
adding documentation ...
adding documentation ...
Gijs Noorlander (47):
[P091] Move P165 SerSwitch from playground to main repository
[P091] Add documentation
[P091 SerSwitch] Update to use latest sources of enesbcs
Minify the JS code + store in flash
[Docs] Add stub for documentation of P093 - Mitsubishi Heat Pump
[SC16IS752] Add Library
[SC16IS752 lib] Update manifest to register as PIO library
[ESPEasySerial] Update manifest to mark SC16IS752 dependency
[SC16IS752] Use I2C-UART bridge in ESPEasySerial (ESP8266)
[SC16IS752] Extend Serial Helper to support I2C UART
Fix warnings in ccronexpr test code
[Serial] Mark plugins using serial as device type serial
[I2C serial] Disable debugging
[Docs] Add port type to plugin substitutions
[Docs] Mark all plugins using Serial as port type
[I2C UART] Speed up reading from I2C Serial
[I2C UART] Cache FIFO available to speed up reading
[I2C UART] Limit calls to serial.available()
[code analytics] Use PVS studio
[ESP32] Add SDS011 support for ESP32
[Task] Start scheduled runs again after (re)enableTask command
[I2C UART] Mark ESPEasySerial library as v2.0.0
[ESP32] Make sure to include the version tag in ESPEasySerial libdeb
[I2C] Add I2C frequency setting
ESPEasy Status LED is not working on ESP32 with buildin LED (#2940)
Pulse Counter must retain its values after reboot (#2268)
[Build] Disable test_ESP8266_4M1M_VCC_MDNS_SD due to max sketch size
[JSON] Fix JSON output of values for single task
[SerialProxy] Add regexp filtering
[Lib] Add RegExp lib
[Serial Proxy] Add regexp filtering using captures
[Serial Proxy] Add extra filter parameters
[Serial Proxy] Move plugin specific struct to .h/.cpp to support captures
[Serial Proxy] Use capture filtering
[Web] Make command field on Tools page much wider
[Serial Proxy] Only check on valid filter rules
[SysVar] Add extra system variables to get build info
[Serial Proxy] Fix check in empty string test
Add generic hexToUL functions
[WiFi] Start webserver before starting wifi (long delay to receive 1st byte)
[Serial Log] Keep a bit more free memory when processing serial log
[Serial Proxy] Don't process on empty regexp
Check if plugin uses formula before trying to process formula
[ESP32] Fix crash in startup connecting to WiFi (#2960 )
[SGP30] Fix output all values to controller
[PIO] feature/stage no longer available for building latest core libs
[PIO] Use platform_packages for all core libs supporting those
Grovkillen (8):
[rules] commented out old upload html
[rules] forms uncommented (needed for rules set)
[rules] removed the "onSubmit" event
[rules] narrowed scope of form (to not trigger onChange if btn clicked)
[rules] file upload instead of form upload
[rules] removed commented code
[rules] size is updated when saved
[rules] td-er talked me into it... thanks mate!
Michael Schröder (1):
Fix double-Ok at command output
TD-er (4):
Start of implementing SC16IS752 support
Fix resetpulsecounter for P003_Pulse (#2710)
[Blynk] Fix building C015 Blynk controller
Fix ArduinoIDE Build error due to missing include
borisk (6):
Updating documentation
Updating documentation
Updating documentation
Add as part of testing plugins ...
Restructured docs a bit so its easier to follow
updated docs
tonhuisman (2):
[P023] Fix for text overflowing onto next line(s)
Added condition for 64x48 and rotated combined
-------------------------------------------------
Changes in release mega-20200310 (since mega-20200305)
-------------------------------------------------
+11 -3
View File
@@ -1,3 +1,11 @@
recommonmark==0.4.0
Sphinx==1.8.4
sphinx-bootstrap-theme==0.6.5
recommonmark==0.6.0
Sphinx==3.1.2
sphinx-autobuild==0.7.1
sphinx-bootstrap-theme==0.7.1
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
sphinxcontrib-websupport==1.2.3
+235
View File
@@ -0,0 +1,235 @@
Config page
***********
Main Settings
=============
Unit Name
---------
The name of this node.
This is mainly used when connecting to a MQTT broker or in p2p communications.
It is also used to generate a hostname in the local network, for example when using mDNS.
Unit Number
-----------
The number of this node.
It can be appended to the hostname.
The main use of the unit number is in ESPEasy p2p communications.
When used in p2p communications, make sure not to use unit number ``0`` or ``255`` as those are reserved.
Range: 0 ... 255
Append Unit Number to hostname
------------------------------
A flag to indicate how the hostname must be generated from *Unit Name* and *Unit Number*.
N.B. currently it is used in all occurences where a hostname is needed, but this appeared to be not working well for some MQTT brokers.
So expect it to be changed later to split this flag for every occasion where a hostname is needed.
Admin Password
--------------
A password to prevent altering settings in the web interface.
Default password is empty.
N.B. when asked for a login prompt, the user name is ``admin``
WiFi Settings
=============
A WiFi capable device can operate in two modes:
* Station mode (STA), device needs to connect to an access point.
* Access Point mode (AP), other STA devices can connect to this device.
An AP will broadcast an identifier string, called the SSID.
For an STA device to connect to an AP, two parameters are needed:
* SSID - The identifier string of an AP.
* WPA key - The password or pass phrase to make a connection.
N.B. when using the mentioned commands to set SSID/key, don't forget to call the ``save`` command.
SSID
----
The AP identifier string to connect to.
This is needed when running in STA mode.
Can also be set via the command ``wifissid``.
WPA Key
-------
The password or pass phrase to connect to the AP with given SSID.
Can also be set via the command ``wifikey``.
Fallback SSID / WPA Key
-----------------------
This is an alternate to the first configured SSID/key.
There are various use cases to have multiple AP configurations stored on a node.
For example to be able to move to anothe location where only another AP can be reached.
Or as a backup, for example to let the node connect to a local hotspot on your phone.
Can also be set via the commands:
* ``wifissid2``
* ``wifikey2``
WPA AP Mode Key
---------------
It is possible a node cannot connect to an AP:
* When there is no SSID configured
* The configured AP's are not in reach
* The configured AP's do not allow the node to connect
In these situations the ESP node will start its own local AP.
As SSID the Unit Name will be used, which is by default ``ESP_Easy_0``
The default WPA key to connect to this AP is ``configesp``, but can be changed here.
This is often used to perform the initial configuration like connecting to the local network.
Can also be set via the command ``WiFiAPKey``.
Client IP filtering
===================
Sometimes it can be useful to only allow access to the web interface of a node from a specific range of IP-addresses.
For example if a node should only be configured from the local subnet.
Client IP block level
---------------------
* **Allow All** - No filtering applied, the web interface can be accessed from any IP able to reach the node. (default)
* **Allow Local Subnet** - Only allow access to the web interface from the local subnet.
* **Allow IP range** - Only allow access to the web interface from a specific IP range.
Access IP lower range
---------------------
When *Allow IP range* is set, this field defines the lower bound of the range.
Access IP upper range
---------------------
When *Allow IP range* is set, this field defines the upper bound of the range.
WiFi/Ethernet IP Settings
=========================
For both WiFi and Ethernet a node can be configured to receive an IP automatically via DHCP, or use a static IP.
If all fields for IP, GW, subnet mask and DNS are left empty, the configuration offered via DHCP will be used.
* **IP** The static IPv4 address to use for this node
* **Gateway** IPv4 address of the gateway to reach hosts outside this subnet. (typically the IP of the router)
* **Subnetmask** Mask applied to define the local subnet. (typically: ``255.255.255.0`` )
* **DNS** IPv4 address of a DNS server to use. (typically the IP of the router or some assigned by the ISP)
Sleep Mode
==========
Description
-----------
The ESP can be put into deep sleep for a set amount of time.
On an ESP8266, GPIO-16 must be connected to the RST pin to be able to wake up again.
As long as the node is in deep sleep mode, you can't connect to the web interface.
In fact, the ESP is turned off and only a dedicated timer circuit is still powered to wake up the main ESP core.
There are three ways to get out of sleep mode:
Cold boot
^^^^^^^^^
Power off the ESP and reconnect power.
You will have 30 seconds to connect to the Web interface and disable the Sleep Mode function.
(You will get feedback in the serial interface)
Temporary disable Deep Sleep via jumper setting
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If 30 seconds is too short for you, you can use this method.
* Disconnect GPIO-16 from RST and connect it to GND. Restart your ESP if neccesary.
* Now deep sleep will be disabled and your ESP will function normally, until you connect GPIO-16 to RST again.
This requires ESPEasy v2.0.0-dev6 or newer.
Factory reset
^^^^^^^^^^^^^
If all else fails, just do a factory reset. **You will lose all your settings!**
* Connect the RX and TX pin together while you restart your ESP. (will clear all stored settings)
* Power off the device.
* Remove the connector across the RX and TX pins.
* Restart and then configure the ESPEasy firmware again. (at restart factory default settings will be loaded)
If this doesn't work:
* Try loading the blank image to match the size of the memory installed on the device.
* Reboot and wait 5 minutes.
* Then load on the firmware you are wanting to use.
* Reboot and wait 5 minutes.
Sleep awake time
----------------
This setting defines the minimum time in seconds a node should be awake from deep sleep.
If set to 0, the node will not go into deep sleep automatically.
At boot from deep sleep, a timer is started based on this setting.
If this timer expires, the node will enter deep sleep again.
As soon as the node has a successful WiFi connection, the timer will be restarted to allow to send out sensor data.
N.B. It is possible to put a node into deepsleep via the command ``deepsleep``, regardless this setting.
Sleep time
----------
The duration in seconds for a node to go into deep sleep.
Typical max. duration is 4294 seconds (Roughly 71 minutes)
N.B. the maximum possible duration depends on the used core library version and is mentioned at the configuration page.
Sleep on connection failure
---------------------------
+58
View File
@@ -37,3 +37,61 @@ Change log
Description
-----------
Many systems provide a simple HTTP API where data can be changed using a HTTP request with a properly constructed querystring.
This Controller allows you to send HTTP GET, POST and PUT Requests to the given webserver.
For every device you have to choose to which Controllers it is sending its data. When configuring the Controller you can access this data and use them to generate your querystring.
You can use this placeholders in http header and in the http body:
* ``%systime%`` will be replaced with the local system time
* ``%vcc%`` will be replaced with the power supply voltage (if enable in this build)
* ``%ip%`` will be replaced with the local ip adress
* ``%sysload%`` will be replaced with the system load
* ``%uptime%`` will be replaced with the system uptime
* ``%CR%`` will be replaced with "\r"
* ``%LF%`` will be replaced with "\n" (newline)
* ``%sysname%`` will be replaced with the system name
* ``%tskname%`` will be replaced with the name of the device which is sending data to this controller
* ``%id%`` will be replaced with IDX value.
* ``%vname1%`` will be replaced with Valuename 1
* ``%vname2%`` will be replaced with Valuename 2
* ``%vname3%`` will be replaced with Valuename 3
* ``%vname4%`` will be replaced with Valuename 4
* ``%val1%`` will be replaced with the value 1 of the device which is sending data to this controller
* ``%val2%`` will be replaced with the value 2 of the device which is sending data to this controller
You can also write things like this:
``%1%_some_text_and_placeholder_%/1%`` everything between ``%1%`` and ``%/1%`` will only print when there is a value ``1``
Examples
--------
InfluxDB HTTP Api
^^^^^^^^^^^^^^^^^
* HTTP Method: ``POST``
* HTTP URI: ``write?db=testdb``
* HTTP Header: ``Content-Type: application/x-www-form-urlencoded``
* HTTP Body:
.. code-block:: none
%1%%vname1%,Standort=%tskname%
Wert=%val1%%/1%%2%%LF%%vname2%,Standort=%taskname%
Wert=%val2%%/2%%3%%LF%%vname2%,Standort=%taskname%
Wert=%val3%%/3%%4%%LF%%vname2%,Standort=%taskname%
Wert=%val4%%/4%
See also `InfluxDB API description <https://docs.influxdata.com/influxdb/v1.5/guides/writing_data/#writing-multiple-points>`_
Nettemp HTTP Api
^^^^^^^^^^^^^^^^
untested but should work with something like this:
``/receiver.php?device=ip&type=%1%%vname1%%/1%%2%;%vname2%%/2%%3%;%vname3%%/3%%4%;%vname4%%/4%&value=%1%%val1%%/1%%2%;%val2%%/2%%3%;%val3%%/3%%4%;%val4%%/4%``
+8 -8
View File
@@ -77,7 +77,7 @@ Prerequisites
^^^^^^^^^^^^^
* Same UDP port must be setup on both nodes. (preferrably UDP port 8266) This can be done in Tools -> Advanced -> UDP port
* Nodes must be rebooted after UDP port has changed.
* Nodes must be rebooted after UDP port has changed. (Builds before 2020-07-19)
* Each node must have an unique unit number. This must not be 0 and not 255, but anything inbetween is fine.
@@ -163,10 +163,10 @@ Of each known node the following data is kept:
The key to index this ``NodeStruct`` is the nodes unit number.
ASCII Data
~~~~~~~~~~
^^^^^^^^^^^^^^^^
Command Message
***************
^^^^^^^^^^^^^^^^
First byte is not 0xFF.
@@ -175,13 +175,13 @@ The entire message processed as a command like this:
.. code-block:: C++
packetBuffer[len] = 0;
ExecuteCommand_all(VALUE_SOURCE_SYSTEM, &packetBuffer[0]);
ExecuteCommand_all(EventValueSource::Enum::VALUE_SOURCE_SYSTEM, &packetBuffer[0]);
As can be seen, no checks for size, and it is just expected to be a valid ESPeasy command.
Also no check to see if the command is supported by the receiving end and no feedback to the sender.
Binary Data
~~~~~~~~~~~
^^^^^^^^^^^^^^^^
Binary data is marked with the first byte 0xFF.
@@ -207,7 +207,7 @@ Message types supported, determined by the 2nd byte:
* 5: Sensor data
Sysinfo Message
***************
^^^^^^^^^^^^^^^^
There are 2 types of Sysinfo messages, a standard and an extended message.
The extended message starts with the same information as the standard one.
@@ -234,7 +234,7 @@ The node type is defined as:
* 81 = "Nano Easy"
Sensor Info message
*******************
^^^^^^^^^^^^^^^^^^^^
Sensor Info messages are just a description of a shared sensor.
It contains some information to setup a new sensor on the receiving end.
@@ -258,7 +258,7 @@ These messages are just a serialized byte stream of ``struct C013_SensorInfoStru
Sensor Data message
*******************
^^^^^^^^^^^^^^^^^^^^
These messages are just a serialized byte stream of ``struct C013_SensorDataStruct`` .
+1 -1
View File
@@ -79,7 +79,7 @@ Setup
- ``homie/%sysname%/$nodes`` enumerating all devices will be sent as final message of the auto-discover header.
- The final event log should look like this:
.. code-block:: html
.. code-block:: none
5584 : EVENT: MQTT#Connected
5754 : C014 : autodiscover information of 4 Devices and 6 Nodes sent with no errors! (26 messages)
+5
View File
@@ -67,6 +67,11 @@ before WiFi connection is made or during lost connection.
Especially useful for controllers which cannot send samples in a burst. This makes the receiving time stamp useless to detect what samples were taken around the same time.
The sample set counter value can help matching received samples to a single set.
.. note::
Be careful when setting the timeout too high.
For almost all controllers, sending data is a blocking call, so it may halt execution of other code on the node.
With timouts longer than 2 seconds, the ESP may reboot as the software watchdog may step in.
Sample ThingSpeak configuration
@@ -111,9 +111,9 @@
.. |C010_maintainer| replace:: `.`
.. |C010_compileinfo| replace:: `.`
.. |C011_name| replace:: :cyan:`Generic HTTP`
.. |C011_name| replace:: :cyan:`Generic HTTP Advanced`
.. |C011_type| replace:: :cyan:`Controller`
.. |C011_typename| replace:: :cyan:`Controller - Generic HTTP`
.. |C011_typename| replace:: :cyan:`Controller - Generic HTTP Advanced`
.. |C011_status| replace:: :yellow:`TESTING`
.. |C011_github| replace:: C011.ino
.. _C011_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C011.ino
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

+260
View File
@@ -0,0 +1,260 @@
Hardware page
*************
Overview
========
ESPEasy has some centralized hardware configuration settings, shown in this page, and divided in sections.
---------------
Wifi Status LED
---------------
To display the Wifi acitivity, a pin can be configured to light up a LED when data is transfered via Wifi. Optionally, the LED signal can be 'inverted'.
As many ESP boards have an onboard LED connected to GPIO-2 and inverted, it is shown as a note how to configure that.
.. image:: Hardware_Wifistatusled.png
---------
Reset pin
---------
To provide a possible escape from a malfunctioning ESP module, a factory-reset button/feature can be configured by setting up a GPIO-pin for this.
.. warning::
**When connecting this pin to ground for ca. 10 seconds the unit will be completely reset, and all settings/configuration irretrievably deleted!**
This feature can be useful in a development/laboratory environment, for when the configuration gets corrupted in some way.
.. image:: Hardware_Resetpin.png
-------------
I2C Interface
-------------
When using devices that use the I2C bus (Inter-integrated circuit, also known as IIC, and mostly compatible with SM Bus) (`Wikipedia: I2C <https://en.wikipedia.org/wiki/I%C2%B2C>`_) some pins have to be configured, and initialized during boot, for the SDA and SCL connections. This can be any unused pair of pins on the ESP board.
The pins can be configured here, and will have default values initially (ESP8266: SDA: GPIO-4 (D2), SCL: GPIO-5 (D3), ESP32: SDA: GPIO-22, SCL: GPIO-23). When I2C is not used, these can be set to `- None -`, so the pins are available for other purposes.
The default bus clock speed can also be set here. If only devices supporting 100 kHz are connected (Old/Slow devices), then the value can be set to 100 kHz, by default 400 kHz is configured, that is supported by newer devices, though there are many devices supporting higher frequencies. ESP8266 is able to achieve ca. 400 kHz, while ESP32 allows much higher speeds.
Since build 20110, ESPEasy has a separate setting for Slow I2C devices, and per I2C device this slow clock speed can be selected in the Device edit page. This value is by default set to 100 kHz, but can be set lower or higher if desired.
.. image:: Hardware_I2CInterface.png
*Device specific Force Slow I2C speed selection:*
.. image:: Device_I2COptionsShort.png
---------------
I2C Multiplexer
---------------
Since build 20110, there is the option of using an I2C multiplexer. This option is not available in all builds, because of the size of the code. It is usually available in the normal, testing and custom builds, but ommitted from minimal, IR and hardware-specific builds.
Possible use-cases for an I2C multiplexer are:
* Connect multiple devices that have fixed or limited I2C addresses (For example, some OLED devices have a single fixed address but you need to connect 2 or more, or connect more than 3 TLS2561 devices, that support only 3 different addresses).
* Connect different devices that have the same I2C address (For example connecting a TSL2561 light/lux sensor and an APDS9960 proximity sensor).
* Connect slow and fast devices, where the speed of the fast device prohibits proper working of the slow device.
.. |br| raw:: html
<br>
.. note::
If devices with conflicting I2C addresses are to be used, then *none* of them can be connected to the ESP main I2C bus, but they should each be connected to a separate channel of the multiplexer. |br|
Devices that do not conflict with other devices *can* be connected to the ESP main I2C bus, this might improve the performance/responsiveness of these devices.
.. note::
When using an I2C Multiplexer, make sure there is no address conflict with any of the devices you intend to connect, f.e. when connecting BME280 sensors, don't set the address of the multiplexer to 0x76 or 0x77.
There are a couple of I2C multiplexer chips available, currently there is support for:
* TCA9548a (8 channels, multiple channel-connections, 8 I2C addresses, with reset)
* TCA9546a (4 channels, multiple channel-connections, 8 I2C addresses, with reset, also TCA9545a can be used, but no support for the Interrupt function though)
* TCA9543a (2 channels, multiple channel-connections, 4 I2C addresses, with reset)
* PCA9540 (2 channels, fixed I2C address, no reset, experimental support)
The TCA9548a, TCA9546a and TCA9543a support connecting multiple channels to the main I2C channel. This can be configured on the Device edit page for I2C devices, once the I2C Multiplexer configuration is enabled by selecting a multiplexer type and an I2C address for the multiplexer.
Also, the TCA9548a, TCA9546a and TCA9543a chips have a connection for a reset signal available. This allows the chip to be reset if it gets stuck by some 'less compatible' or 'badly behaving' devices. Once connected and configured, the multiplexer can be reset from the software, if desired or required. This feature is not yet used in any I2C device plugin.
A TCA9543a board has the advantage of being quite a bit smaller than either TCA9546a or TCA9548a, while being digitally compatible. (But with less channels and only 4 I2C addresses).
All these chips/boards can be found at Adafruit, Aliexpress, Banggood, EBay, etc.
.. image:: Hardware_I2CMultiplexerNone.png
*Available multiplexer types:*
.. image:: Hardware_I2CMultiplexer_Type.png
*Select the I2C Address for the multiplexer:*
.. image:: Hardware_I2CMultiplexer_Address.png
Device configuration
^^^^^^^^^^^^^^^^^^^^
If an I2C multiplexer is configured, every Device edit page for I2C devices will show extra options to select the channel the device is connected on.
There is the default option of Single channel, or, when a TCA9548a, TCA9546a or TCA9543a is configured, Multiple channels.
*Example: A multiplexer is configured, but the device is connected directly on the ESP board I2C channel:*
.. image:: Device_I2COptionsMultiplexerNone.png
*Configure a (single) multiplexer channel the device is connected on:*
.. image:: Device_I2COptionsMultiplexerSelectSingleChannel.png
NB: Only acceptable channels (0-7/0-3/0-1) will be available in the dropdown list, depending on the Multiplexer type configured.
*Select Single channel or Multiple channels:*
.. image:: Device_I2COptionsMultiplexerSelect.png
*Configure multiple channels for a device, 8 channel multiplexer configured*
.. image:: Device_I2COptionsMultiplexerMultipleSelect.png
Above configuration results in channels 0, 4, 5, 6 and 7 being connected to the ESP board I2C bus when this sensor is active via I2C.
NB: Only acceptable channel checkboxes (0-7/0-3/0-1) will be shown, depending on the Multiplexer type configured.
-------------
SPI Interface
-------------
When using devices that are connected via the SPI interface (`Wikipedia: SPI <https://en.wikipedia.org/wiki/Serial_Peripheral_Interface>`_), the interface must be initialized during boot. This can be enabled here. For ESP32 there is the option to select either the Hardware SPI (HSPI) interface or the Virtual SPI (VSPI) interface (software controlled).
The common SPI pins are shown here.
Other SPI pins to be used are device specific, and need to be configured from the corresponding Device edit page.
*For ESP8266:*
.. image:: Hardware_SPIInterfaceESP8266.png
*For ESP32, disabled:*
.. image:: Hardware_SPIInterfaceESP32.png
*For ESP32, select the desired interface:*
.. image:: Hardware_SPIInterfaceESP32_Select.png
NB: When using the VSPI interface and also the I2C interface is used, another pin has to be selected for I2C GPIO -> SCL, as its configuration is fixed for the VSPI setting.
--------
Ethernet
--------
On builds including ``_eth`` in their build name, it is also possible to use ethernet instead of WiFi.
Currently this is only present for ESP32 builds and no plans currently exist to support it for ESP82xx.
N.B. This is still in testing phase, so not all kinds of network communications work right now.
Preferred network medium
^^^^^^^^^^^^^^^^^^^^^^^^
Allows to switch between:
* WiFi (default)
* Ethernet
To activate a new configuration, a reboot is needed.
Ethernet PHY type
^^^^^^^^^^^^^^^^^
Select the used PHY controller type:
* LAN8710 (LAN8720 is also supported, but none of the newer features are supported)
* TLK110
Ethernet PHY Address
^^^^^^^^^^^^^^^^^^^^
The PHY address depends on the hardware and the PHY configuration.
* Espressif's Ethernet board with TLK110 PHY use PHY address 31.
* Common Waveshare LAN8720 PHY breakout use PHY address 1.
* Olimex ESP32 EVB REV B IoT LAN8710 PHY Board with CAN use PHY address 0.
* Other LAN8720 breakouts often use PHY address 0.
If the PHY address is incorrect then the EMAC will initialise but all attempts to read/write configuration registers on the PHY will fail.
GPIO pins
^^^^^^^^^
RMII PHY SMI Wiring
"""""""""""""""""""
Most PHY boards have documented their *RMII PHY SMI Wiring* pins:
* **MDC** Output to PHY, usually pin 23
* **MDIO** Bidirectional, usually pin 18
Clock sync
""""""""""
The PHY and the ESP need to keep a clock in sync.
This can either be done via an external crystal, which is connected to a GPIO pin.
Another option is to let the ESP provide the clock to the PHY.
* External crystal oscillator
* 50MHz APLL Output on GPIO0
* 50MHz APLL Output on GPIO16
* 50MHz APLL Inverted Output on GPIO17
Power pin
"""""""""
On almost all PHY boards, or ESP boards equiped with an ethernet PHY, it is possible to turn the PHY on or off.
Either to save energy, or to make sure the external clock is not affecting the ESP boot mode when it restarts.
For example the Olimex ESP32-EVB does have the *external crystal oscillator* connected to GPIO-0, which could boot the ESP32 randomly into UART flash mode.
Most boards use a specific GPIO pin to control the power to the PHY.
The Olimex ESP32-EVB does have a specific delay circuit to only allow power to the PHY after boot and therefore does not need to control the PHY power.
For other boards, the default is often GPIO-17, but this may change per board.
RMII PHY Wiring
"""""""""""""""
Apart from these GPIO pins, there is a number of other pins reserved on the ESP32 for RMII PHY Wiring.
Since these GPIO pin assignments cannot be changed, it is also not needed to configure them.
However, they also cannot be used when *RMII PHY* is used.
.. include:: ../Reference/Ethernet_PHY_ESP32.rst
-------------------
GPIO boot states
-------------------
For some GPIO pins, the boot state (initial configuration after startup) can be configured.
Some differences exist between ESP8266 and ESP32:
* ESP8266 can't initialize GPIO's 6, 7 and 8 (technical limitation of ESP8266 chip) and 16 (always has pull-down setting)
* ESP32 can't initialize GPIO's from 16 and up (settings storage limitation, could be initialized from Rules in `System#Boot` event)
*ESP8266 GPIO boot states:*
.. image:: Hardware_GPIObootstatesESP8266.png
*ESP32 GPIO boot states:*
.. image:: Hardware_GPIObootstatesESP32.png
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

+119 -3
View File
@@ -11,6 +11,7 @@ ESPEasy Project Directories
Below a list of the most important directories and files used in this project.
* ``.pio/`` Working dir for PlatformIO (Ignored by Git)
* ``build_output/`` The output directory where all built files are collected.
* ``dist/`` Files also includd in the nightly builds (e.g. blank flash files and ESPEasy flasher)
* ``docs/`` Documentation tree using Sphinx to build the documents.
* ``hooks/`` Used for the continous integration process, used by Travis CI.
@@ -22,14 +23,13 @@ Below a list of the most important directories and files used in this project.
* ``static/`` Static files we use in ESPEasy, like CSS/JS/ICO files.
* ``test/`` Test scripts to be used in the continous integration process.
* ``tools/`` Tools to help build ESPeasy.
* ``tools/pio/pre_custom_esp32.py`` Python helper script for building custom ESP32 binary
* ``tools/pio/pre_extra_script.py`` Python helper script for building custom ESP8266 binary
* ``venv/`` Directory to store the used Python Virtual Environment. (Ignored by Git)
* ``platformio.ini`` Configuration file for PlatformIO to define various build setups.
* ``uncrustify.cfg`` Configuration file for Uncrustify, to format source code using some uniform formatting rules.
* ``pre_custom_esp32.py`` Python helper script for building custom ESP32 binary
* ``pre_extra_script.py`` Python helper script for building custom ESP8266 binary
* ``requirements.txt`` List of used Python libraries and their version (result of ``pip freeze`` with Virtual env active)
* ``esp32_partition_app1810k_spiffs316k.csv`` Used partition layout in ESP32 builds.
* ``crc2.py`` Python script used during nightly build to include the environment name in the build and compute checksums.
ESPEasy src dir
@@ -63,3 +63,119 @@ This conversion is needed to have full control over ``#define`` statements used
This also allows for more flexible control over user defined builds.
ESPEasy 'nightly builds'
========================
On a regular basis we make so called "nightly builds".
These can be found here: `ESPEasy releases download <https://github.com/letscontrolit/ESPEasy/releases>`_ .
See the included ``README.txt`` in the downloaded ZIP file for more detailed information of the content of that build.
We have 2 main build platforms:
* ESP8266/ESP8285
* ESP32
For these platforms we also have a lot of different build setups.
The filename is quite descriptive:
ESP_Easy_mega-<date>_<buildType>_<chip>_<memorySize>.bin
Build Type
----------
Build type can be: (differ in included plugins)
* normal => Only Stable plugins and controllers
* test => Stable + Testing
* dev => Stable + Testing + Development
There is also a number of special builds:
* normal_IR => "Normal" + IR receiver/transmitter plugins and library
* hard_xxxxx => Special builds for some off-the-shelf hardware.
* minimal_ESP82xx_1M_OTA => Minimum number of plugins and a limited set of controllers included to be able to perform a 2-step OTA on 1 MB flash nodes.
* normal_core_xxx => "Normal" using core xxx (e.g. 2.6.3)
* normal_beta => "Normal" using the staged (beta) branch of the esp8266/Arduino repository.
ESP Chip Type
-------------
* ``ESP8266`` Most likely option.
* ``ESP8285`` Used in some Sonoff modules. This chip has embedded flash, so no extra flash chip.
* ``ESP32`` Experimental support at this moment.
Memory Size and Partitioning
----------------------------
* ``1M`` 1 MB flash modules (e.g. almost all Sonoff modules)
* ``2M`` 2 MB flash modules (e.g. Shelly1/WROOM02)
* ``4M`` 4 MB flash modules (e.g. NodeMCU/ESP32)
* ``16M`` 16 MB flash modules (e.g. Wemos D1 mini pro)
Please note that the performance of 14MB SPIFFS (16M flash modules) is really slow.
All file access takes a lot longer and since the settings are also read from flash, the entire node will perform slower.
See `Arduino issue - SPIFFS file access slow on 16/14M flash config <https://github.com/esp8266/Arduino/issues/5932>`_
If these speed issues will be fixed, it is very likely the SPIFFS must then be re-partitioned, thus loosing all data in the SPIFFS.
Special memory partitioning:
* ``2M256`` 2 MB flash modules (e.g. Shelly1/WROOM02) with 256k SPIFFS (only core 2.5.0 or newer)
* ``4M316k`` For ESP32 with 4MB flash, sketch size is set to 1.8 MByte (default: 1.4 MByte)
* ``4M1M`` 4MB flash, 1 MB SPIFFS. Default layout for 4MB flash.
* ``4M2M`` 4MB flash, 2 MB SPIFFS. Introduced in October 2019. Only possible with core 2.5.2 or newer.
.. warning::
Changing between builds with different flash layout will destroy the settings!
The SPIFFS partition will be lost, which contains all settings.
Difference between .bin and .bin.gz
-----------------------------------
Starting on esp8266/Arduino core 2.7.0, it is possible to flash images that have been compressed using GZip.
Please note that this only can be used on installs already running a very recent build.
This also means we still need to update the 2-step updater to support .bin.gz files.
.. warning::
Currently there is NO 2-step OTA image available supporting ``.bin.gz`` images.
ESP32 builds
------------
There are 3 builds for ESP32:
* ``custom_ESP32_4M316k`` Build template using either the plugin set defined in ``Custom.h`` or ``tools/pio/pre_custom_esp32.py``
* ``test_ESP32_4M316k`` Build using the "testing" set of plugins for ESP32
* ``test_ESP32-wrover-kit_4M316k`` A build for ESP32 including build flags for the official WRover test kit.
Since ESP32 does have its flash partitioned in several blocks, we have 2 bin files of each ESP32 build:
* ``test_ESP32_4M316k.bin`` Use for OTA upgrades.
* ``test_ESP32_4M316k-factory.bin`` Use on clean nodes as initial inistall.
The binary with ``-factory`` in the name must be flashed on a new node, via the serial interface of the board.
This flash must be started at address 0.
The binary without ``-factory`` can be used for OTA updates. (OTA for ESP32 is added in May 2020)
Blank Images
------------
To help recover from a bad flash, there are also blank images included.
* ``blank_1MB.bin``
* ``blank_2MB.bin``
* ``blank_4MB.bin``
* ``blank_16MB.bin``
When the wrong image is flashed, or the module behaves unstable, or is in a reboot loop,
flash these images first and then the right image for the module.
+5 -5
View File
@@ -22,7 +22,7 @@ RTTTL (Ring Tone [Text] Transfer Language) was developed by Nokia to play more "
After that the actual tune is then created using standard notes (a, b, c, d, e, f, and g), before the note the duration is set, after the note the octave is set:
.. code-block:: html
.. code-block:: none
<duration><note><octave>
@@ -35,7 +35,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP Buzzer
GPIO <--> I/O
@@ -55,7 +55,7 @@ Rules examples
From ESP Easy v2.0.0 its possible to play melodies via `RTTTL <https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification>`_ (don't forget to remove the spaces and replace # with -, this might be fixed in future releases):
.. code-block:: html
.. code-block:: none
http://<ESP IP address>/control?cmd=rtttl,14:d=4,o=5,b=112:8a,8a,a,8a,8a,a,8a,8c6,8f.,16g,2a,8a-,8a-,8a-.,16a-,8a-,8a,8a.,16a,8a,8g,8g,8a,g,c6
@@ -65,7 +65,7 @@ You can also use these from rules. We use it to let our alarm system give feedba
To make a boot-sound on startup, create a rule like this:
.. code-block:: html
.. code-block:: none
On System#Boot do
rtttl,14:d=10,o=6,b=180,c,e,g
@@ -75,7 +75,7 @@ To make a boot-sound on startup, create a rule like this:
Besides RTTTL it's also possible to play a single tone on a pin, via a buzzer, speaker or piezo element:
.. code-block:: html
.. code-block:: none
http://<ESP IP address>/control?cmd=tone,14,1300,200
+2 -2
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Level_converter_page:
Level converter
@@ -43,7 +43,7 @@ Wiring
A direct connection by mistake from 5V to a GPIO may fry your ESP! Handle level-shifters with some care.
The used FET transistors are somewhat sensible against electrostatic discharge. Use a anti-static mat.
.. code-block:: html
.. code-block:: none
ESP Level converter Connected hardware
GPIO (X) <--> 3A, LV1, A1 etc. <--> 5A, HV1, B2 etc.
@@ -22,7 +22,7 @@ RTTTL (Ring Tone [Text] Transfer Language) was developed by Nokia to play more "
After that the actual tune is then created using standard notes (a, b, c, d, e, f, and g), before the note the duration is set, after the note the octave is set:
.. code-block:: html
.. code-block:: none
<duration><note><octave>
@@ -35,7 +35,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP Piezo
GPIO <--> Positive (red)
@@ -52,7 +52,7 @@ Rules examples
From ESP Easy v2.0.0 its possible to play melodies via `RTTTL <https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification>`_ (don't forget to remove the spaces and replace # with -, this might be fixed in future releases):
.. code-block:: html
.. code-block:: none
http://<ESP IP address>/control?cmd=rtttl,14:d=4,o=5,b=112:8a,8a,a,8a,8a,a,8a,8c6,8f.,16g,2a,8a-,8a-,8a-.,16a-,8a-,8a,8a.,16a,8a,8g,8g,8a,g,c6
@@ -62,7 +62,7 @@ You can also use these from rules. We use it to let our alarm system give feedba
To make a boot-sound on startup, create a rule like this:
.. code-block:: html
.. code-block:: none
On System#Boot do
rtttl,14:d=10,o=6,b=180,c,e,g
@@ -72,7 +72,7 @@ To make a boot-sound on startup, create a rule like this:
Besides RTTTL it's also possible to play a single tone on a pin, via a buzzer, speaker or piezo element:
.. code-block:: html
.. code-block:: none
http://<ESP IP address>/control?cmd=tone,14,1300,200
+2 -2
View File
@@ -179,7 +179,7 @@ have to be figured into your project. It is also possible to use a small SSR to
Wiring
------
.. code-block:: html
.. code-block:: none
ESP Relay (board)
GPIO (X) <--> IN1
@@ -204,7 +204,7 @@ find more information on how to do this.
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On Switch#State Do
if [Switch#State]=1
+2 -2
View File
@@ -29,7 +29,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP Servo
GPIO (X) <--> S (signal)
@@ -48,7 +48,7 @@ find more information on how to do this.
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On Switch#State Do
if [Switch#State]=1
+5 -5
View File
@@ -22,7 +22,7 @@ RTTTL (Ring Tone [Text] Transfer Language) was developed by Nokia to play more "
After that the actual tune is then created using standard notes (a, b, c, d, e, f, and g), before the note the duration is set, after the note the octave is set:
.. code-block:: html
.. code-block:: none
<duration><note><octave>
@@ -35,7 +35,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP Speaker
GPIO <--> Positive (red)
@@ -52,7 +52,7 @@ Rules examples
From ESP Easy v2.0.0 its possible to play melodies via `RTTTL <https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification>`_ (don't forget to remove the spaces and replace # with -, this might be fixed in future releases):
.. code-block:: html
.. code-block:: none
http://<ESP IP address>/control?cmd=rtttl,14:d=4,o=5,b=112:8a,8a,a,8a,8a,a,8a,8c6,8f.,16g,2a,8a-,8a-,8a-.,16a-,8a-,8a,8a.,16a,8a,8g,8g,8a,g,c6
@@ -62,7 +62,7 @@ You can also use these from rules. We use it to let our alarm system give feedba
To make a boot-sound on startup, create a rule like this:
.. code-block:: html
.. code-block:: none
On System#Boot do
rtttl,14:d=10,o=6,b=180,c,e,g
@@ -72,7 +72,7 @@ To make a boot-sound on startup, create a rule like this:
Besides RTTTL it's also possible to play a single tone on a pin, via a buzzer, speaker or piezo element:
.. code-block:: html
.. code-block:: none
http://<ESP IP address>/control?cmd=tone,14,1300,200
File diff suppressed because it is too large Load Diff
+19 -19
View File
@@ -7,7 +7,7 @@
As described already, each task can produced one or more events, one for each measured value. You should not name your devices and value names so that the combination equals to any of the below listed system events!
","
.. code-block:: html
.. code-block:: none
on DHT11Outside#Temperature>20 do
GPIO,2,1
@@ -19,7 +19,7 @@
Triggered after power on.
","
.. code-block:: html
.. code-block:: none
on System#Wake do
GPIO,15,1
@@ -31,7 +31,7 @@
Triggered at boot time.
","
.. code-block:: html
.. code-block:: none
on System#Boot do
GPIO,2,1
@@ -44,7 +44,7 @@
Triggered just before the ESP goes to deep sleep.
","
.. code-block:: html
.. code-block:: none
on System#Sleep do
GPIO,2,0
@@ -56,7 +56,7 @@
Triggered when the ESP has connected to broker.
","
.. code-block:: html
.. code-block:: none
on MQTT#Connected do
Publish,%sysname%/status,First message!
@@ -68,7 +68,7 @@
Triggered when the ESP has disconnected from the broker.
","
.. code-block:: html
.. code-block:: none
on MQTT#Disconnected do
Reboot
@@ -80,7 +80,7 @@
Triggered when the ESP has connected to broker (the MQTT Import plugin uses a separate connection than the generic one).
","
.. code-block:: html
.. code-block:: none
on MQTTimport#Connected do
Publish,%sysname%/status,MQTT Import is now operational
@@ -92,7 +92,7 @@
Triggered when the ESP has disconnected from the broker (the MQTT Import plugin uses a separate connection than the generic one).
","
.. code-block:: html
.. code-block:: none
on MQTTimport#Disconnected do
Reboot
@@ -104,7 +104,7 @@
Triggered when the ESP has connected to Wi-Fi.
","
.. code-block:: html
.. code-block:: none
on WiFi#Connected do
SendToHTTP,url.com,80,/report.php?hash=123abc456&t=[temp2#out]
@@ -116,7 +116,7 @@
Triggered when the ESP has changed to access point, will also trigger first time the unit connects to the Wi-Fi.
","
.. code-block:: html
.. code-block:: none
on WiFi#ChangedAccesspoint do
Publish,%sysname%/status,AP changed
@@ -129,7 +129,7 @@
This has been added in build mega-20190910
","
.. code-block:: html
.. code-block:: none
on WiFi#ChangedWiFichannel do
Publish,%sysname%/status,channel changed
@@ -143,7 +143,7 @@
N.B. Sending a publish command may not be very useful on this event, since this will mainly happen when there is no WiFi connection.
","
.. code-block:: html
.. code-block:: none
on WiFi#APmodeEnabled do
... // Some command
@@ -156,7 +156,7 @@
This can happen some time (default 60 seconds) after a WiFi connection has been made. Or disabled using some command.
","
.. code-block:: html
.. code-block:: none
on WiFi#APmodeDisabled do
Publish,%sysname%/status,AP disabled
@@ -168,7 +168,7 @@
Triggered when (someone) has tried to login to a ESP unit with admin password enabled, but have failed to enter correct password.
","
.. code-block:: html
.. code-block:: none
on Login#Failed do
Publish,%sysname%/warning,Intruder alert!
@@ -180,7 +180,7 @@
Triggered the first time (after boot) NTP is updating the unit.
","
.. code-block:: html
.. code-block:: none
on Time#Initialized do
Publish,%sysname%/Time,%systime%
@@ -192,7 +192,7 @@
Triggered when the time is set by an update from NTP.
","
.. code-block:: html
.. code-block:: none
on Time#Set do
Publish,%sysname%/Time,%systime%
@@ -205,7 +205,7 @@
As described already, triggered when a rules timer ends (setting a timer to 0 will disable the timer).
","
.. code-block:: html
.. code-block:: none
on Rules#Timer=1 do
GPIO,2,1
@@ -217,7 +217,7 @@
Triggered every minute with day and time like: Mon,12:30 or Tue,14:45. You can define triggers on specific days or all days using 'All' for days indicator. You can also use wildcards in the time setting like All,**:00 to run every hour.
","
.. code-block:: html
.. code-block:: none
on Clock#Time=All,12:00 do //will run once a day at noon
GPIO,2,1
@@ -237,7 +237,7 @@
If the command 'Monitor' is used to monitor a given pin you will receive an event for that GPIO as soon as it's state changes. As seen in the example you can always use the square brackets together with the task/value name of ``Plugin#GPIO#Pinstate#N`` to get the state, but to trigger events you need to add the monitor command (preferably at boot).
","
.. code-block:: html
.. code-block:: none
on System#Boot do
Monitor GPIO,15
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_Door_switch_page:
Door switch
@@ -25,7 +25,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP Door switch
GPIO (X) <--> Signal
@@ -111,7 +111,7 @@ Indicators/values (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on Door#State=1 do
timerSet,1,1
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_PIR_sensor_page:
PIR sensor
@@ -31,7 +31,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP PIR
GPIO (X) <--> I/O or OUT
@@ -117,7 +117,7 @@ Indicators/values (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on Motion#Detection=1 do
timerSet,1,1
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_Switch_page:
Switch
@@ -24,7 +24,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP Switch/button
GPIO (X) <--> Signal
@@ -128,7 +128,7 @@ Indicators/values (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on Switch#State do
if [Switch#State]=3
+56 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_page:
|P002_typename|
@@ -21,6 +21,60 @@ Maintainer: |P002_maintainer|
Used libraries: |P002_usedlibraries|
Description
-----------
The ESP82xx has 1 ADC included.
This one can be set either to measure the Vdd pin (supplied voltage to the ESP) or to ``TOUT``, so it can measure the voltage on the ``A0`` pin.
The ESP32 has 18 pins that can be used as ADC. It also has a Hall Effect sensor included.
See the `ESP32 API reference <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html>`_ for more detailed information on the features and limitations of these pins.
Hall Effect Sensor (ESP32)
--------------------------
The ESP32 has a Hall Effect Sensor included, to measure a magnetic field.
N.B. This value can also be negative, if the polarity of the magnetic field is swapped.
Note that even the hall sensor is internal to ESP32, reading from it uses channels 0 and 3 of ADC1 (GPIO 36 and 39).
Do not connect anything else to these pins and do not change their configuration. Otherwise it may affect the measurement of low value signal from the sensor.
WiFi activity and ADC
---------------------
The ADC on the ESP8266 is also used during WiFi RF calibration.
This can result in incorrect readings of the ADC while a WiFi connection attempt is in progress.
ESP32 has 2 ADCs present.
``ADC1`` and ``ADC2``
Since the ``ADC2`` is shared with the WIFI module, which has higher priority, reading operation of ``adc2_get_raw()`` may fail between ``esp_wifi_start()`` and ``esp_wifi_stop()``.
Oversampling
------------
When ``Oversampling`` is enabled, the plugin will take a reading 10 times a second.
This reading is averaged over the entire interval time as set in the task configuration.
The highest and lowest values are subtracted from the recorded values, to filter out single flukes.
Measured values which are clipped either on the lower range or higher range are only added once per interval as they may occur for more than a single sample per interval.
This is done to prevent a relative large offset in the averaging due to clipping or maybe unforceen interaction of the WiFi chip on the ADC measurements.
Calibration
-----------
The plugin supports a 2-point calibration.
The user can set these to convert the raw values into the desired unit of measure.
When set, the configuration screen also displays the minimum, maximum and step size values based on the calibration settings.
Supported hardware
------------------
@@ -42,8 +96,7 @@ Change log
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
|improved| 2020-04-25 Added support for ESP32 ADC pins + Hall Effect Sensor.
.. versionadded:: 1.0
...
+2 -2
View File
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_PCF8591_page:
PCF8591
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_Photosensitive_resistor_page:
Photosensitive resistor
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+2 -2
View File
@@ -28,7 +28,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP LJ12A3
GPIO (14) <--> Signal (black)
@@ -125,7 +125,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On WaterMeter#mL Do
If [WaterMeter#mL]=0
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P003_TCR5000_page:
TCR5000
@@ -25,7 +25,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP TCR5000
GPIO (14) <--> S
@@ -97,7 +97,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On PowerMeter#W Do
If [PowerMeter#W]>1500
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P003_YFS401_page:
YFS401
@@ -27,7 +27,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP YFS401
GPIO (14) <--> Signal (yellow)
@@ -104,7 +104,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On WaterMeter#mL Do
If [WaterMeter#mL]=0
+13 -1
View File
@@ -3,8 +3,20 @@
:widths: 20, 30
"
``resetpulsecounter,<taskIndex>``
``ResetPulseCounter,<taskIndex>``
","
Reset the counters (pulse counter and total counter) of P003 Pulse Counter.
The taskIndex parameter is optional. When not given, only the first task with this plugin will be cleared.
A call to reset the value will also trigger a call to ``PLUGIN_READ`` as if it processes a normal succesful read.
"
"
``SetPulseCounterTotal,value,<taskIndex>``
","
Set the value of the total count of P003 Pulse Counter.
The taskIndex parameter is optional. When not given, only the total count of the first task with this plugin will be set.
A call to set the counter total will also trigger a call to ``PLUGIN_READ`` as if it processes a normal succesful read.
N.B. The set value is the internal value, so any present formula will be processed after this value is set.
"
+6 -4
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P004_DS18b20_page:
DS18b20
@@ -32,7 +32,7 @@ Wiring
.. image:: P004_DS18b20_5.jpg
.. code-block:: html
.. code-block:: none
ESP DS18b20
GPIO (14) <--> 1-wire/D (yellow)
@@ -42,9 +42,11 @@ Wiring
GND <--> GND (black)
The sensor needs a pull up resistor. If you use the breakout board type the resistor usually is already on the board.
This gets you into problems if using several DS18B20 breakout boards. There should be **only one resistor fore the entire line**
This gets you into problems if using several DS18B20 breakout boards. There should be **only one resistor for the entire line**
so you might have to remove resistors leaving just one at one end of the line.
Typical value for the pull up resistor is 4k7. For multiple sensors on the same wire this value may need to be lowered a bit.
Do not use very thin cabling! Tested with a 3x0.14mm² cable the length with 5 Sensors was 10 meters, longer cabling did not work.
Use a phone line cable (2x2x0.6mm²) instead if you need long distances up to 50..100 meters. remember: One (!) pull-up resistor for the whole line!
@@ -106,7 +108,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On Temp1#Celsius Do
If [Temp1#Celsius]>37
+17 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P005_DHT11_DHT22_page:
DHT11/DHT22
@@ -35,7 +35,7 @@ DHT11 (blue)
DHT22 (white)
.. code-block:: html
.. code-block:: none
ESP DHT11/DHT22
GPIO (X) <--> Data (2nd pin)
@@ -89,7 +89,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
On DHT#Celsius Do
If [DHT#Celsius]>-15
@@ -104,6 +104,20 @@ Rules examples
.. .. include:: P005_commands.repl
How to patch Wemos DHT shield
-----------------------------
The Wemos DHT shield uses a pin which is also toggled at boot disrupting the connected DHT22 sensor.
This causes the sensor to become unresponsive after a reboot.
The DHT sensor needs to be connected to a configurable GPIO on the ESP module.
In case you have a simple ESP-01 module, it's best to use the GPIO-2 pin.
See this `elaborate post on GitHub <https://github.com/letscontrolit/ESPEasy/issues/2569#issuecomment-688901549>`_
describing the problem and how to patch the board to make it work like it should.
Where to buy
------------
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P006_BMP085_page:
BMP085
@@ -20,7 +20,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP BMP085
GPIO (4) <--> DA (SDA)
@@ -73,7 +73,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on BMP#hPa do
if BMP#hPa>999
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P006_BMP180_page:
BMP180
@@ -20,7 +20,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP BMP180
GPIO (4) <--> DA (SDA)
@@ -73,7 +73,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on BMP#hPa do
if BMP#hPa>999
+13 -1
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P008_page:
|P008_typename|
@@ -21,6 +21,18 @@ Maintainer: |P008_maintainer|
Used libraries: |P008_usedlibraries|
Description
-----------
The Wiegand plugin reads the Wiegand protocol, either the 26 or 34 bit variant, transmitted over a 2-wire serial connection. The RFID reader or keypad has to be connected to two GPIO pins on the ESP module. The plugin uses an interrupt routine to decode the bitstream. A RFID reader will send a message containing the unique RFID Tag ID. A keypad will send the input after pressing the #, or another configured, confirmation key.
Data is transmitted in hexadecimal format.
For numeric keypads an option is provided to transform the hex value into a decimal representation, so that when entering value 1234# (# is the confirmation key here), not the result 4660 (0x1234) is made available, but actually 1234. This for easier processing/validating of the entered value. Any input of A-F is replaced by 0 when this option is enabled! It should not be enabled when using a RFID reader, as the Tag ID won't be correct.
The value is placed in the Tag variable (this name can be changed).
.. image:: P008_Settings.png
Supported hardware
------------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P008_Wiegand-26_page:
Wiegand-26
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P009_MCP23017_page:
MCP23017
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P010_BH1750_page:
BH1750
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P012_LCD_page:
LCD
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+15 -15
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P013_HC-SR04_page:
HC-SR04
@@ -26,15 +26,15 @@ Wiring
The HC-SR04 must be run on 5V. Running it with 3.3V will show very weak results or nothing at all.
.. code-block:: html
.. code-block:: none
ESP HC-SR04
GPIO (X) <--> Trigger
GPIO (X) <--> Echo (voltage divider!)
Power
5.0V <--> VCC
GND <--> GND
ESP HC-SR04
GPIO (X) <--> Trigger
GPIO (X) <--> Echo (voltage divider!)
Power
5.0V <--> VCC
GND <--> GND
.. warning:: Do not connect 5V directly to the ESP! Read more about :ref:`P000_Level_converter_page`.
@@ -89,14 +89,14 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block::
on HCSR04#distance do
if [HCSR04#distance]<50 and [HCSR04#distance]>45
GPIO,14,1 //light up LED to show that you're at the correct position
else
GPIO,14,0
endif
if [HCSR04#distance]<50 and [HCSR04#distance]>45
GPIO,14,1 //light up LED to show that you're at the correct position
else
GPIO,14,0
endif
endon
.. Commands available
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P013_RCW-0001_page:
RCW-0001
@@ -26,7 +26,7 @@ Wiring
The RCW-0001 must be run on 5V. Running it with 3.3V will show very weak results or nothing at all.
.. code-block:: html
.. code-block:: none
ESP RCW-0001
GPIO (X) <--> Trigger
@@ -89,7 +89,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block::
on RCW0001#distance do
if [RCW0001#distance]<50 and [RCW0001#distance]>45
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P013_US-100_page:
US-100
@@ -26,7 +26,7 @@ Wiring
The US-100 must be run on 5V. Running it with 3.3V will show very weak results or nothing at all.
.. code-block:: html
.. code-block:: none
ESP US-100
GPIO (X) <--> Trigger
@@ -89,7 +89,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block::
on US100#distance do
if [US100#distance]<50 and [US100#distance]>45
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P014_SI7021_HTU21D_page:
SI7021/HTU21D
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P015_TSL2561_page:
TSL2561
@@ -31,7 +31,7 @@ Wiring
.. image:: P015_TSL2561_2.jpg
.. code-block:: html
.. code-block:: none
ESP TSL2561
GPIO (5) <--> SCL
@@ -94,7 +94,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on Light#VI_Lux do
if Light#VI_Lux>100
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P017_PN532_page:
PN532
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P018_GP2Y10_page:
GP2Y10
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. include:: ../Plugin/_plugin_substitutions_p01x.repl
.. _P019_PCF8574_page:
PCF8574
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P022_PCA9685_page:
PCA9685
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P023_OLED_page:
OLED
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P024_MLX90614_page:
MLX90614
@@ -21,7 +21,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP MLX90614
GPIO (4) <--> SDA
@@ -71,7 +71,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on Temp#C do
if [Temp#C]>300
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P025_ADS1115_page:
ADS1115
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P027_INA219_page:
INA219
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P028_BME280_page:
BME280
@@ -24,7 +24,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP BME280
GPIO (4) <--> SDA
@@ -75,7 +75,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on BME#hPa do
if BME#hPa>999
+12 -1
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. include:: ../Plugin/_plugin_substitutions_p02x.repl
.. _P029_page:
|P029_typename|
@@ -36,6 +36,17 @@ Supported hardware
.. .. include:: P029_events.repl
Description
-----------
Using the Domoticz MQTT protocol, it is not possible to configure direct commands to control output.
Instead, a json message is send by Domoticz on the Domoticz/Out channel.
We need to configure the IDX value within ESP Easy and link this to a given output pin.
This plugin is a special 'helper' device to link IDX to GPIO.
Only the IDX and the corresponding GPIO pin needs to be set.
Change log
----------
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. _P030_BMP280_page:
BMP280
@@ -23,7 +23,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP BMP280
GPIO (4) <--> SDI (SDA)
@@ -77,7 +77,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on BMP#hPa do
if BMP#hPa>999
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. _P031_SHT1X_page:
SHT1X
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -52,7 +52,7 @@ With a delay of 10, on the same node, the clock signal is about 40 kHz.
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. _P032_MS5611_page:
MS5611
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. _P034_DHT12_page:
DHT12
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. include:: ../Plugin/_plugin_substitutions_p03x.repl
.. _P035_IR_transmitter_page:
IR transmitter
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+8
View File
@@ -33,8 +33,16 @@ The number of pages depends on the number of set lines of text and the font size
Switching between pages can be "instant" or "scrolling".
Please note that scrolling may need more resources of the ESP, which can have an effect on other active tasks of the node.
Setting up a Display Button, allows to configure a Display Timeout and wake the display on demand. Inversed Logic should be checked when using a button that connects the input to ground when pressed.
When enabling "Step through pages with Display button", the button can also be used to step through the pages, when having multiple pages, to display the content on demand. If this option is unchecked, then, when available, the next page will be displayed after Interval seconds have passed. Pressing the button restarts the Display Timeout timer. When holding the button pressed, the next page will be shown after a 1 second delay.
The Display Timeout setting sets the numbers of seconds after which the display is turned off. When set to 0 no timeout is active.
The plugin allows for a header and footer line, which may show some user selectable information.
Checkbox 'Wake display on receiving text' (default: on) allows to not wake up the display when a text is sent from a remote source, and Display Timeout is set.
All user defined texts may contain references to system variables or task values which will be interpreted when displayed on screen.
For example: ``[bme#T#D2.1] {D}C [bme#H]%``
+18 -5
View File
@@ -3,7 +3,7 @@
:widths: 20, 30
"
``oledframedcmd,<display>,<value>``
``oledframedcmd,display,<value>``
Value:
@@ -19,16 +19,16 @@
Some displays do not accept all brightness levels and some also make a quite high pitch coil whine noise when running on some brightness levels.
So different levels of brightness can also be of help on those displays.
The display controller itself does support more brightness levels, but these are chosen to give noticable change in brightness levels and also to help in chosing the best values for the 2 brighness control registers.
As there are 2 brighness control registers, there is some overlap in their range, but some combinations may lead to issues like coil whining noise or sometimes not even working displays as not all of these displays are wired to support both controls to be used.
The display controller itself does support more brightness levels, but these are chosen to give noticable change in brightness levels and also to help in choosing the best values for the 2 brightness control registers.
As there are 2 brightness control registers, there is some overlap in their range, but some combinations may lead to issues like coil whining noise or sometimes not even working displays as not all of these displays are wired to support both controls to be used.
"
"
``oledframedcmd,<line>,<text>``
","
The <line> parameter coresponds with the same lines as the plugin configuration has.
The <line> parameter corresponds with the same lines as the plugin configuration has.
The <text> parameter must be a single command parameter.
Meaning, it must be wrapped in quites when using a space or comma as text.
Meaning, it must be wrapped in quotes when using a space or comma as text.
If double quote characters are needed, wrap the parameter in single quotes or back quotes.
@@ -36,4 +36,17 @@
After a reboot the stored plugin settings will be used.
All template notations can be used, like system variables, or reference to a task value.
After receiving text this way, the frame where the text is placed is shown, if the setting for 'Wake display on receiving text' is checked.
"
"
``oledframedcmd,frame[,<framenr>]``
","
This command is to display a specific frame (aka page), or the next frame. When reaching the last frame, a 'next' (0) will display the first frame.
The <framenr> parameter corresponds to the desired frame (1..<number of frames>) to display. The number of frames is determined by dividing the lines in use (at least one line in that frame with some data), by the number of Lines per Frame. So practically, the range is 1..3 when all lines are used and 4 Lines per Frame is set, or 1..12 if Line per frames is set to 1. The number of frames is updated if a frame would initially be empty, and an external source places text on a line of that frame (see above).
When omitting <framenr>, or providing 0, the next frame is displayed.
When the display is off, because a 'Display Timeout' is set and the timer has expired or it is turned off by the off command (see above), then it is turned on, and, when set, the timer is started again.
"
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. _P045_MPU6050_page:
MPU6050
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+4 -4
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. _P046_Ventus_W266_page:
Ventus W266
@@ -42,7 +42,7 @@ Specifications (indoor unit):
of the normal builds. If you want to compile ESP Easy with this plugin enabled you
can set the following line in your platformio.ini:
.. code-block:: html
.. code-block:: none
[platformio]
env_default = hard_Ventus_W266
@@ -70,7 +70,7 @@ Wiring
.. image:: P046_Ventus_W266_2.jpg
.. code-block:: html
.. code-block:: none
ESP Ventus
GPIO (4) <--> MOSI
@@ -169,7 +169,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on VentusW266#UV do
if [VentusW266#UV]>9
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. _P047_Soil_moisture_sensor_page:
Soil moisture sensor
@@ -22,7 +22,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -42,7 +42,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. _P048_Adafruit_Motor_Shield_v2_page:
Adafruit Motor Shield v2
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -1
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. _P049_page:
|P049_typename|
@@ -11,6 +11,8 @@ Plugin details
Type: |P049_type|
Port Type: |P049_porttype|
Name: |P049_name|
Status: |P049_status|
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. include:: ../Plugin/_plugin_substitutions_p04x.repl
.. _P049_MH-Z19_page:
MH-Z19
@@ -22,7 +22,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -42,7 +42,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. _P050_TCS34725_page:
TCS34725
@@ -20,7 +20,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -40,7 +40,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. _P051_AM2320_page:
AM2320
@@ -21,7 +21,7 @@ Wiring
------
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (X) <--> TX
@@ -41,7 +41,7 @@ Setup
Rules examples
--------------
.. code-block:: html
.. code-block:: none
//Code below...
+3 -1
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. _P052_page:
|P052_typename|
@@ -11,6 +11,8 @@ Plugin details
Type: |P052_type|
Port Type: |P052_porttype|
Name: |P052_name|
Status: |P052_status|
+2 -2
View File
@@ -28,7 +28,7 @@ Wiring
Circuit wiring (S11 seen from top, with the 5 holes left and the 4 holes right):
.. code-block:: html
.. code-block:: none
ESP S11 (UART)
GPIO (14) <--> TX (5th hole of the 5 holes)
@@ -106,7 +106,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on CO2#Level do
if [CO2#Level]>2000
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. _P052_S8_page:
S8
@@ -28,7 +28,7 @@ Wiring
Circuit wiring (S8 seen from PCB side, with the 5 vias down and the 4 vias up):
.. code-block:: html
.. code-block:: none
ESP S8
GPIO (7) <--> TX (3rd via [middle] of the 5 vias)
@@ -95,7 +95,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on CO2#Level do
if [CO2#Level]>2000
+3 -3
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. _P052_tSense_K70_page:
tSense (K70)
@@ -36,7 +36,7 @@ Specifications:
Wiring
------
.. code-block:: html
.. code-block:: none
ESP tSense
GPIO (7) <--> TX (see pictures further down)
@@ -140,7 +140,7 @@ Indicators (recommended settings)
Rules examples
--------------
.. code-block:: html
.. code-block:: none
on CO2#Level do
if [CO2#Level]>2000
+3 -1
View File
@@ -1,4 +1,4 @@
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. include:: ../Plugin/_plugin_substitutions_p05x.repl
.. _P053_page:
|P053_typename|
@@ -11,6 +11,8 @@ Plugin details
Type: |P053_type|
Port Type: |P053_porttype|
Name: |P053_name|
Status: |P053_status|

Some files were not shown because too many files have changed in this diff Show More