13396 Commits

Author SHA1 Message Date
Stephan Hadinger
6cd3e37ed5 Berry LVGL improvements to allow custom widgets 2021-07-22 20:21:18 +02:00
Theo Arends
3d37712b27 Change message `Upload buffer miscompare into Not enough space` 2021-07-22 15:14:58 +02:00
Theo Arends
80d5a143a5
Merge pull request #12718 from hansmi/promfix2
prometheus: Fix typo in comment
2021-07-22 08:33:34 +02:00
s-hadinger
1c078afd5e
Merge pull request #12719 from s-hadinger/lvgl_examples
LVGL fixes and examples
2021-07-21 23:37:24 +02:00
Stephan Hadinger
200b34a208 Change Berry stack buffer to 20 2021-07-21 23:37:03 +02:00
Stephan Hadinger
749d30a14f LVGL fixes and examples 2021-07-21 23:17:53 +02:00
Michael Hanselmann
620fbbb9c0 prometheus: Fix typo in comment
The sentinel value is meant to be used for unknown memory values, not
known values of course.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2021-07-21 21:10:37 +02:00
Theo Arends
cd228d2f84 Fix ESP32-Solo OTA upgrade 2021-07-21 13:26:32 +02:00
Theo Arends
9f0f08b1cf
Merge pull request #12715 from s-hadinger/berry_gc
Fix wrong gc count for instances
2021-07-21 13:21:06 +02:00
Theo Arends
1be76a3cf6
Merge pull request #12714 from Jason2866/1.0.7.3
Core 1.0.7.3 code base for all ESP32 builds
2021-07-21 13:20:51 +02:00
Stephan Hadinger
7d26370d9e Fix wrong gc count for instances 2021-07-21 12:25:26 +02:00
Jason2866
2e35af5c97
Update PULL_REQUEST_TEMPLATE.md 2021-07-21 12:23:46 +02:00
Jason2866
9cc657452f
core 1.0.7.3 2021-07-21 12:23:15 +02:00
Theo Arends
520612b67c Fix discovery fails when using `%hostname%` in a topic (#12710) 2021-07-21 11:41:31 +02:00
s-hadinger
4fb8f679d7
Merge pull request #12711 from s-hadinger/berry_publish_result
Berry add tasmota.publish_result
2021-07-21 09:00:04 +02:00
Stephan Hadinger
0539e8ec32 Berry add tasmota.publish_result 2021-07-20 22:31:22 +02:00
Theo Arends
acd9ea1661 Update changelog 2021-07-20 22:02:59 +02:00
s-hadinger
f7fbfce236
Merge pull request #12707 from s-hadinger/berry_i2s_audio
Berry add support for I2S audio mp3 playback
2021-07-20 21:28:49 +02:00
Stephan Hadinger
5f99d13718 Update Berry VSCode plugin 2021-07-20 21:28:18 +02:00
Stephan Hadinger
84e58739a0 Berry add support for I2S audio mp3 playback 2021-07-20 21:05:10 +02:00
Theo Arends
51327ef199
Merge pull request #12705 from arendst/solo1_OTA_wtd_fix
Solo1 OTA wdt fix
2021-07-20 16:49:47 +02:00
Jason2866
517499b90a
Solo1 OTA wdt fix 2021-07-20 16:44:17 +02:00
Jason2866
fe839d012c
Merge pull request #12701 from Jason2866/Fix_SD_memoryleak
Fix SD memory leak (only Arduino IDF4.4)
2021-07-20 15:01:34 +02:00
Jason2866
7035bacc09
Fix SD memory leak 2021-07-20 14:37:15 +02:00
Theo Arends
f971a76e50
Merge pull request #12692 from hansmi/promfix1
Prometheus: Formatting fixes, utility functions, consistent memory metrics
2021-07-20 09:30:24 +02:00
Theo Arends
153a9a69da
Merge pull request #12690 from Jason2866/New_framework
Updated Arduino ESP32/IDF4.4 framework, LITTLEFS -> LittleFS
2021-07-20 09:21:32 +02:00
Theo Arends
e6bf020bc1
Merge pull request #12689 from gemu2015/sml_fix
fix =d mode
2021-07-20 09:20:45 +02:00
Adrian Scillato
2b8d8919cf
Merge pull request #12696 from ascillato/patch-3
Update Portuguese-BR Translation
2021-07-19 15:22:44 -03:00
Adrian Scillato
bf5662ecab
Merge pull request #12698 from ascillato/patch-4
LOG: Increase readability of project name and device name
2021-07-19 15:15:40 -03:00
Adrian Scillato
33fd2d62d7
Merge pull request #12697 from ascillato/patch-2
Update Portuguese-PT Translation
2021-07-19 15:02:02 -03:00
Adrian Scillato
6efd233f8f
Merge pull request #12693 from bovirus/patch-1
Update italian language
2021-07-19 14:54:17 -03:00
Adrian Scillato
ef885a5d30
Merge pull request #12695 from ascillato/patch-1
Update Spanish Translation
2021-07-19 14:28:30 -03:00
Adrian Scillato
c73bb9953a
LOG: Increase readability of project name and device name 2021-07-19 14:24:53 -03:00
s-hadinger
9c9f462249
Merge pull request #12694 from s-hadinger/berry_class_static_members
Berry support for static class members
2021-07-19 19:11:04 +02:00
Adrian Scillato
81a845d932
Update Portuguese-BR Translation 2021-07-19 14:06:35 -03:00
Adrian Scillato
c06dfc428d
Update Portuguese-PT Translation 2021-07-19 14:06:11 -03:00
Adrian Scillato
e0000c7f8a
Update DE-Localization File Version 2021-07-19 14:01:42 -03:00
Adrian Scillato
2a9d80bea2
Update IT-Localization File version 2021-07-19 13:59:56 -03:00
Adrian Scillato
ea65fa9164
Updated Spanish Translation 2021-07-19 13:57:32 -03:00
Stephan Hadinger
f99d5b0e0f Berry support for static class members 2021-07-19 18:45:04 +02:00
Jason2866
353c0b6130
Update de_DE.h 2021-07-19 18:15:14 +02:00
Marius Bezuidenhout
500a6ab6e2 Only respond when required data has been received 2021-07-19 17:52:42 +02:00
bovirus
78a5e7f30f
Update italian language 2021-07-19 17:41:38 +02:00
Michael Hanselmann
718f5fc9ab prometheus: Unify memory metrics
The "memory fragmentation" value named "memory_ratio" was always
truncated to an integer, so in all likelyhood 0. It didn't work anyway
until the incorrect line termination was fixed in an earlier commit.
Neither could the Psram metric be parsed correctly due to the the same
incorrect line termination.

With this change memory usage is reported in line with Prometheus'
upstream recommendations (https://prometheus.io/docs/practices/naming/).
Labels are no longer used to separate distinct dimensions. Total and
free memory as well as the maximum allocation size are reported as
separate metrics where available while labels are used to differenciate
the separate kinds of memory (heap on all, psram on ESP32).

Label values are now also lowercase on ESP32 to match ESP8266.

Metrics should report their base values, not the result of
a calculation. Therefore the already non-working "fragmentation" metric
is dropped. It can easily be calculated in PromQL instead.

The renaming of metrics and label values makes this a breaking change,
especially on ESP32. With the aforementioned formatting errors which
made them unusable that shouldn't be a problem.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2021-07-19 13:35:59 +02:00
Michael Hanselmann
1b96833d6a prometheus: Use utility functions to format metrics
Format strings for Prometheus metrics were written manually and the
`# TYPE` lines needed to be kept in sync with actual metrics. As
indicated by the previous commit it wasn't always as consistent as
desired. In addition there was a lot of repetition among the strings
which couldn't be reduced at build time.

With this change utility functions are introduced which eliminate the
need for specifying the same metric name more than once. At the same
time the proper escaping for label values, initially added in commit
16b5f2fe9, is now applied for all labels.

The size of the program shrinks slightly by 212 bytes on ESP8266 in the
"tasmota" configuration with Prometheus enabled and 412 bytes on ESP32
with the "tasmota32" configuration.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2021-07-19 13:35:46 +02:00
Michael Hanselmann
7d15e15d8a prometheus: Fix wrong format on ESP32, incorrect names in types
When built for ESP32 the memory fragmentation metric was incorrectly
terminated (likely a typo). The type information for
"tasmota_global_humidity_percentage" didn't include the "_percentage"
and "tasmota_sensors" wsa incorrect too.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2021-07-19 13:35:27 +02:00
gemu2015
f6b527d189 fix =d mode 2021-07-19 09:55:43 +02:00
Jason2866
3ab4a2a3e0
New framework LITTLEFS -> LittleFS 2021-07-18 23:14:10 +02:00
s-hadinger
650e882083
Merge pull request #12688 from s-hadinger/berry_path_module
Berry add `path` module
2021-07-18 23:03:50 +02:00
Stephan Hadinger
0b7d5e9123 Berry add path module 2021-07-18 22:39:59 +02:00