Skip to content

Instantly share code, notes, and snippets.

View Habbie's full-sized avatar

Peter van Dijk Habbie

View GitHub Profile
newServer('9.9.9.9')
pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
getPool(""):setCache(pc)
function randomdelay()
local d = math.random() * 100
print("delaying", d, "ms")
return DNSResponseAction.Delay, d
end
diff --git a/src/front-lvgl.cpp b/src/front-lvgl.cpp
index 241490d..8422ae5 100644
--- a/src/front-lvgl.cpp
+++ b/src/front-lvgl.cpp
@@ -4,6 +4,12 @@
std::mutex g_lvgl_updatelock;
+template<typename UIType>
+void addElement(std::vector<std::unique_ptr<UIEntity>> &_uielements, std::shared_ptr<HAEntity> _entity, lv_obj_t* _contRow) {
diff --git a/src/front-lvgl.cpp b/src/front-lvgl.cpp
index 241490d..8422ae5 100644
--- a/src/front-lvgl.cpp
+++ b/src/front-lvgl.cpp
@@ -4,6 +4,12 @@
std::mutex g_lvgl_updatelock;
+template<typename UIType>
+void addElement(std::vector<std::unique_ptr<UIEntity>> &_uielements, std::shared_ptr<HAEntity> _entity, lv_obj_t* _contRow) {
diff --git a/src/uicomponents/imgs/white24.c b/src/uicomponents/imgs/white24.c
index 91f9392..13ae4cc 100644
--- a/src/uicomponents/imgs/white24.c
+++ b/src/uicomponents/imgs/white24.c
@@ -6947,16 +6947,16 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_WHITE uin
#endif
};
-const lv_img_header_t G_WHITE24HEADER = {
- .cf = LV_IMG_CF_TRUE_COLOR_ALPHA,
diff --git a/WebFrontends.md b/WebFrontends.md
index ab44359..bba4b17 100644
--- a/WebFrontends.md
+++ b/WebFrontends.md
@@ -2,22 +2,22 @@
* Note: These are strongly preferred, at least when using DNSSEC, because they should ensure the correctness of the NSEC or NSEC3 chains of the signed zones as nodes are added or removed.
-| Project | Language | Health |
-| ------- | -------- | -------|
diff --git a/src/HAEntity.cpp b/src/HAEntity.cpp
index 8656cc5..e4ebb5e 100644
--- a/src/HAEntity.cpp
+++ b/src/HAEntity.cpp
@@ -82,8 +82,11 @@ void HAEntity::detach(IObserver* observer)
observers.erase(observer);
}
+extern std::mutex LVlock;
+
diff --git a/src/HAEntity.cpp b/src/HAEntity.cpp
index 8656cc5..e4ebb5e 100644
--- a/src/HAEntity.cpp
+++ b/src/HAEntity.cpp
@@ -82,8 +82,11 @@ void HAEntity::detach(IObserver* observer)
observers.erase(observer);
}
+extern std::mutex LVlock;
+
{
"toggle": {
"description": "Toggles one or more lights, from on to off, or, off to on, based on their current state.",
"fields": {
"brightness": {
"advanced": true,
"description": "Number indicating brightness, where 0 turns the light off, 1 is the minimum brightness, and 255 is the maximum brightness.",
"filter": {
"attribute": {
"supported_color_modes": [
/usr/bin/ffmpeg (interpreter => /lib64/ld-linux-x86-64.so.2)
libavdevice.so.59 => /lib/x86_64-linux-gnu/libavdevice.so.59
libraw1394.so.11 => /lib/x86_64-linux-gnu/libraw1394.so.11
libavc1394.so.0 => /lib/x86_64-linux-gnu/libavc1394.so.0
librom1394.so.0 => /lib/x86_64-linux-gnu/librom1394.so.0
libiec61883.so.0 => /lib/x86_64-linux-gnu/libiec61883.so.0
libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0
libdb-5.3.so => /lib/x86_64-linux-gnu/libdb-5.3.so
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
diff --git a/airrohr-firmware/platformio.ini b/airrohr-firmware/platformio.ini
index 9f7dc70..25bac8d 100644
--- a/airrohr-firmware/platformio.ini
+++ b/airrohr-firmware/platformio.ini
@@ -80,12 +80,12 @@ platform_version_esp32 = espressif32@5.2.0
lang = DE
platform = ${common.platform_version_esp32}
framework = arduino
-board = esp32dev
+board = wemos_d1_mini32