Commit Graph

900 Commits

Author SHA1 Message Date
Tester23
5583cac32f allow setting index refresh interval 2024-09-11 14:36:53 +02:00
MaxineMuster
89f49da09e LN882H - static ip (#1342)
* First changes for static IP on LN882H - WiP - need to set DNS server IP

Needs change in SDK in components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
to make sure, DHCP isn't called after we set the IP:

diff --git a/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c b/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
index e2b485e..2884ef3 100644
--- a/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
+++ b/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
@@ -16,6 +16,7 @@

 #define IF_NAME_STA "ST" // Only support two ascii characters
 #define IF_NAME_AP  "AP" // Only support two ascii characters
+static int STA_USE_DHCP = 1;

 typedef struct {
     struct netif              nif;
@@ -267,9 +268,10 @@ int netdev_set_state(netif_idx_t nif_idx, netdev_state_t state)

             netif_set_status_callback(nif, sta_netif_status_changed_cb);
             netif_set_link_callback(nif, sta_netif_link_changed_cb);
-
             netifapi_dhcp_stop(nif);
+       if (STA_USE_DHCP) {
             netifapi_dhcp_start(nif);
+            }
         }
         else
         {
@@ -362,6 +364,8 @@ int netdev_set_ip_info(netif_idx_t nif_idx, tcpip_ip_info_t *ip_info)

     if (ndev && ip_info) {
         netifapi_netif_set_addr(netdev2netif(ndev), &ip_info->ip, &ip_info->netmask, &ip_info->gw);
+        // we set an IP in STA mode? --> disable DHCP, or it will be overwritten
+        if (nif_idx == NETIF_IDX_STA) STA_USE_DHCP = 0;
         return 0;
     }
     return -1;

* set DNS with dns_setserver()

* Changed code so during STA init a golbal variable is set, wheter static IP is used.
This will be respected in netif (see OpenLN882H PR#17)
2024-09-09 12:44:22 +02:00
Tester23
c6057abf3b charts driver part 1 2024-09-06 10:57:48 +02:00
Tester23
d491a71a93 made avty disable global 2024-09-05 18:19:26 +02:00
Tester23
b09addeca9 motion invertex fix and motion self test 2024-08-24 23:10:30 +02:00
Tester23
3e5a71fd74 Motion_n 2024-08-24 15:38:53 +02:00
MaxineMuster
9acb13af35 Add channel label to dimmer (#1329) 2024-08-24 00:07:40 +02:00
MaxineMuster
989ac1eb46 Add flag to hide ON / OFF values on GUI (showing only green / red buttons) for relays (#1327) 2024-08-23 16:14:07 +02:00
divadiow
d950a9d96b clarity, grammar, consistency changes (#1317) 2024-08-19 17:11:25 +02:00
divadiow
1b2fc53f7d grammar and missing colon (#1318) 2024-08-19 17:10:37 +02:00
divadiow
27e0189875 spelling (#1319) 2024-08-19 17:10:17 +02:00
divadiow
97759b37ed Update cmd_main.c (#1320)
* Update cmd_main.c

* Update new_http.c

* Update new_http.c
2024-08-19 17:09:48 +02:00
MaxineMuster
027fb842ac Fix json_interface.c (#1312)
Requesting "STATUS" or "STATUS 5" on W800 was crashing the module.
Reason was "tmpStr" was too short, now it works.
Might have caused instability on other platforms, too
2024-08-14 20:22:09 +02:00
divadiow
2be17f3859 Change "Build" to "Built" in the build date text (#1299)
Reason for the Change:
The current text "Build on xxxxx" is grammatically incorrect in this context. The word "build" is a verb in its base form, which is used to describe the action of constructing or creating something. However, in the context of displaying the date and time when the program was constructed, the past participle "built" should be used. This is because we are referring to an action that has been completed in the past.
2024-07-30 17:52:14 +02:00
NonPIayerCharacter
8a7a68cb09 Rebase and squash, add ALERT to CHT831X (#1259) 2024-07-28 13:24:24 +02:00
Tester23
c00f1a968d temporary bl602 fix 2024-07-20 14:52:54 +02:00
Tester
c95eea4373 cleared up MaxineMuster DS1820 driver 2024-07-16 18:30:32 +02:00
openshwprojects
e1f8e59e13 simple IR2 driver for sending captures from flipper zero
* test

* Update drv_ir2.c

* fx

* fx

* fx

* qq

* test3

* tok

* test duty

* fx

* hdr

* fx

* fx

* tr

* n header

* tr

* tr

* fx

* fx

* test

* tr

tr

* fx

* simpler

* fx

* test

* fx

* dbg

* tr

* tr

* fx

* fx

* fx

* tr

* fx

* pin select

* fx

* fx

* Update drv_ir2.c

* Update drv_ir2.c

* try

* Update drv_ir2.c

* Update drv_ir2.c

* fx

* Update drv_ir2.c

* args len

* http_fn_cmd_tool: len

* better buffer handling

* try lager buffer

* clear

* Update drv_ir2.c

* long packet self tests

* Update drv_ir2.c

* Update drv_ir2.c

* alternate alias

* Queue size

* fx

* fx

* disable

* sample
2024-07-06 00:42:25 +02:00
Bjoern3003
9423561ca0 Add water quality PH Type (#1283)
* Update new_pins.h

* Update new_pins.h

* Update new_pins.c

* Update hass.c

* Update http_fns.c

* Update hass.h

* Update new_pins.c

* Update new_pins.h

* Update new_pins.c

* Update http_fns.c

* Orp Channel Type

* Add Orp Channel Title

* Bugfix Case Type

* TDS Water Quality Type

* tds change channelname

* Add Tds Pin
2024-07-04 18:30:31 +02:00
Tester23
22dec3702f add requested readonly types 2024-06-30 14:00:30 +02:00
Tester
46964bd2fd copy/paste bugfix 2024-06-24 11:31:26 +02:00
Tester
b7e182abdd correct warning 2024-06-24 11:17:19 +02:00
Tester
f910f743c8 rewrite enum handling 2024-06-24 11:14:07 +02:00
Tester
9d651f15a8 merge lowmidhigh 2024-06-24 11:01:43 +02:00
Tester23
a70bd96ee1 display readonlylowmidhigh 2024-06-20 00:26:44 +02:00
CrewMdk
2c6686e8ac Publish IP and SSID to Home Assistant (#1262) 2024-06-14 08:34:02 +02:00
Pavel Rochnyak
0ea29bb7b4 BL602: WiFi AP Scan (#1269) 2024-06-12 23:57:51 +02:00
MaxineMuster
aae07cf27b simple addition to allow clear text passwords for WiFi (#1245) 2024-06-11 11:06:55 +02:00
Tester23
26470dc762 add dht to tas json 2024-06-05 16:14:18 +02:00
Tester23
768ea19ea8 pixelanim - allow RGB IC + PWM CW combo 2024-05-31 15:48:47 +02:00
giedriuslt
e609f37264 Publish internal temperature to Home Assistant (#1243) 2024-05-20 00:49:45 +02:00
MaxineMuster
5b737ca90b Fix possible wrong index / shorten JS code (#1238)
* extend pin cfg page:
introduce a function te get number of channels for an IO role
in JS code generate all elements, but hide and disable unused fields. This way the should not count for POST action

* Fix for possible wrong index when pin can't be PWM
shorten code

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
2024-05-14 21:07:04 +02:00
openshwprojects
c11a8d1e55 allow disabling Tasmota JSON API (#1236)
* allow disabling Tasmota JSON API

* test enable
2024-05-14 11:53:26 +02:00
MaxineMuster
6648537db4 extend pin cfg page: (#1228)
introduce a function te get number of channels for an IO role
in JS code generate all elements, but hide and disable unused fields. This way the should not count for POST action
2024-05-13 14:01:29 +02:00
giedriuslt
03d6824186 Stack size for BL is not enough to execute backlog commands (#1226)
Specifically "Save, Reset SVM and run file as script thread" crashes the chip due to stack overflow
2024-05-12 18:55:22 +02:00
Tester23
5dd30c66ad pins page is now down to 8kb (was 90kb, then 10kb) 2024-05-11 15:25:18 +02:00
Tester23
8cad88ab5e filter 2024-05-11 14:29:33 +02:00
Tester23
b3db6df997 optimized pins page? - part 1 2024-05-11 13:46:01 +02:00
giedriuslt
9e32046068 Fix unknown method handling, lock on logging (#1224) 2024-05-11 09:09:23 +02:00
Tester23
6d58d85bc7 second fix for channel type priority 2024-05-07 16:55:08 +02:00
Tester23
47c4f4e3b3 self test for motion 2024-05-07 12:59:36 +02:00
Tester23
44b0d7c5ef add Motion channeltype 2024-05-07 12:39:05 +02:00
openshwprojects
19345af307 fix typo pointed by Wolfieee 2024-05-06 08:34:51 +02:00
Tester23
726cf19146 respect OBK_DISABLE_ALL_DRIVERS 2024-05-05 11:09:12 +02:00
giedriuslt
7a0f73193b Remove strftime to save space (#1210)
strftime takes a lot of space and we only use simple number printing for it. Should save 8kb
2024-05-05 10:50:26 +02:00
Tester
fb9b7a608d pixelanim speed p1, reorganize 2024-05-04 12:48:58 +02:00
Tester
7be9bf6601 hide CW bar fdr SM16703P 2024-05-04 10:06:55 +02:00
openshwprojects
d98350235e pixelanim (#1192)
* px

* it animates

* h

* bridge per pixel to LED driver

* link to led driver

* fire

* fixes

* tr
2024-05-01 16:15:58 +02:00
Tester23
9b85615336 add requestest flag for ac dir 2024-04-21 10:16:32 +02:00
Tester23
f5e2a50ba5 allow auto creation of tuya dpid storage 2024-04-20 23:03:56 +02:00