Commit Graph

217 Commits

Author SHA1 Message Date
1c7cdd4881 Ds1820 simple+full as separate drivers (#1705)
* Seperate simple and full driver, introduce "common" for shared code

* Fix command prefixes

* Generate command as multiline if requested

* Fix JS linebreak

* Only use simple dirver - check sizes of firmware images

* Update obk_config.h - enable Full driver for all platforms to allow testing

* Change parsing sttring to device address to allow compact form
Change obk_config.h: remove extra entry for W800, add "FULL" driver to windows build

* fix windows code for "fake" DS18B20

* fix missing files in openBeken_win32_mvsc2017.vcxproj

* fix handle missing task.h for windows

* change Windows emulation to MAX/2 fake sensors

* try fix BL602

* change "fake temperature" of sensors in windows

* change windows sensor temperature once more

* shorten commands by alias

* fix escaping linebreak

* Fix broken JS code ...

* Fix ESP32 is crashing if interrupts are disabled during OWReset for > 480us

* Change output for unused channels
Test if DS1820 channels are in use

* fix warning/error for channel (<=64) printed into a char[5] value

* removeunuses quotes for address

* Fix language

* Capial "S" in Menu entry "Sensors"

* restore obk_config - #define ENABLE_DRIVER_DS1820_FULLonly for WINDOWS and SENSORS variant
2025-07-19 08:03:46 +02:00
ce465a15e6 http override 2025-07-09 21:13:27 +02:00
7f0b7b75d3 allow serving gz files from lfs with gz header 2025-07-09 08:15:30 +02:00
acd46ad682 add PIR driver
* tt

* Update selftest_berry.c

* Update obk_config.h

* some more fixes

* fixes

* IOR_PWM_ScriptOnly_n

* fx

* Update OpenBeken.mk

* disable
2025-05-16 10:07:38 +02:00
782d478b87 fix xr806
* Update http_tcp_server.c

* Update http_tcp_server.c

* better naming

* debug print

* TRY TO CLEAR UP A BIT

* Update http_tcp_server.c

* Update http_tcp_server.c

* Update http_tcp_server.c

* Update http_tcp_server.c

* Update new_http.c

* XR auth disabled

* clear log

* Update OpenXR806

* Update OpenXR806

* Update new_http.c
2025-04-19 20:33:08 +02:00
969e5bfa50 RTL8720D (#1550)
* ambd

* update sdk, get current fw idx

* test

* ota

* reset if hard fault

* revert and fix

* uart flow control

* disable uart tcp debug by default

* test

* wifi test

* adjust lwip
adjust scan

* increase timeout

* enable ssdp, close uart tcp sockets on restart

* test

* pwm

* fix bl0942

* cut some code
2025-02-28 08:43:00 +01:00
1ea3519307 script pwm 2025-02-23 20:35:18 +01:00
d4d6c69be3 BK7238 (#1527)
* beken new sdk + bk7238

* fix bk7238
2025-02-14 22:22:59 +01:00
77efc7ebca make startup command multiline
* step 1

* step2

* Update cmd_script.c

* Update cmd_script.c

* Update obk_config.h

* Update cmd_script.c

* Update cmd_script.c

* fx

* Update obk_config.h

* Update OpenW800

* Update OpenW800

* Update obk_config.h

* f

* fix waitfor

* Update obk_config.h

* Update Makefile

* json escap9ijgng

* crash checks and size check

* w600 bmp

* fx

* Update Makefile

* test

* fx

* Tokenizer_GetPin

* fix

* fix

* ln882h pins

* Update new_http.c

* Update new_http.c

* Update new_http.c

* aht

* aht

* Update obk_config.h

* drv_sht3x

* aht pins

* f

* fx

* aht

* sunset fx

* ln owm

* Update CMakeLists.txt
2025-01-23 23:10:35 +01:00
eb5b1ca2d0 Allow to disable more drivers and features in order to reduce binary size (#1500)
* Update obk_config.h

* Update obk_config.h

* shared

* fx

* he

* fix

* fx

* ffff

* F

* T

* tre

* fcx

* leeed

* ww

* w

* fx

* t

* ENABLE_OLD_YAML_GENERATOR

* w

* startyuip[

* dis all

* remove test post

* ENABLE_HTTP_SEND

* extra guard

* ENABLE_TCP_COMMANDLINE

* better OBK_DISABLE_ALL_DRIVERS

* tr

* ENABLE_PING_WATCHDOG

* ENABLE_HA_DISCOVERY

* TEST WITH EMPTY USER_MAIN

* fx

* no mqtt

* nm

* tr

* ENABLE_MQTT

* Update cmd_newLEDDriver.c

* tr

* header

* fx

* Update user_main.c

* t

* Update hal_main_bk7231.c

* w

* ENABLE_DRIVER_IR

* RESTORE

* fx

* #warning "Platform not defined"

* fx 1

* Update obk_config.h

* ENABLE_DRIVER_TESTPOWER

* DS1820

* fx

* fx

* enable DHT on W800

* Update Makefile

* ntp w800

* ntp

* ssdp

* OWM AND CHARTS

* why utils net has flash pub included

* nmakefile only, no refs

* makefile only

* drv

* Update Makefile

* drcs

* ENABLE_DRIVER_BMP280

* Update Makefile

* d

* ENABLE_I2C

* Update Makefile

* fin
2025-01-10 19:50:17 +01:00
0efec12de6 feat(httpserver): improved mimetype handling for frontend files (#1481) 2025-01-04 10:41:36 +01:00
3331f721b0 Try no state request on pages with no "state" div (#1464)
* Try no state request on pages with no "state" div

* move test for psence of "state" div
2024-12-29 11:00:46 +01:00
c50515603a ESP32 support (#1344)
* esp-idf

* fix, add s2, s3

* fix + ci

* fix naming

* ota

* adc

* reboot reason

* wdt + uart

* dht + ds1820

* fix esp32

* pwm

* uart hack

* fix build

* charts

* increase stack size

* tests

* fix timer

* optimize

* further c2 optimization

* gpio test, wifi reconnect fix

* gpio test

* Revert ledc freq

* cht83xx, increase inttemp stack size

* fix

* S3 fix, enable sht3x, pwm freq selection

* gpio & i2c fix attempt

* s2 fix

* Update defines for DHT

* Update sdk

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
2024-11-06 14:47:22 +01:00
5583cac32f allow setting index refresh interval 2024-09-11 14:36:53 +02:00
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
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
8a7a68cb09 Rebase and squash, add ALERT to CHT831X (#1259) 2024-07-28 13:24:24 +02:00
c95eea4373 cleared up MaxineMuster DS1820 driver 2024-07-16 18:30:32 +02:00
9e32046068 Fix unknown method handling, lock on logging (#1224) 2024-05-11 09:09:23 +02:00
d02008b7ca MAIN page item added to HTML footer. (#1115) 2024-03-08 00:12:26 +01:00
95c30dd800 Add HTTP basic authentication (#996)
* add http basic auth

* add feature check for basic auth process

* fix http basic auth build for unsupported platforms (W800, W600)

* fix includes in http_basic_auth

* fix basic auth invocations when unavailable

* add http basic auth allow checks to http_fns

* remove unnecessary checks

* add my_strnicmp export

* silence warning

* update web password config ui

* update submodules

* add base64 lib to boufallo.mk for BL602

* add safe mode http basic auth bypass flag

* fix bl602 build with http auth bypass flag

* disable shared led driver

---------

Co-authored-by: Tester23 <openshwprojects@gmail.com>
2023-12-13 15:19:11 +01:00
e130cfddbe Respond to POSTs as well as GETs in /cm handler (#900)
* add method to parse args from body instead of just url

* Allow /cm to POST and PUT as well as GET

* forgot to ensure didn't misparse non GET/PUT/POST in /cm requests

---------

Co-authored-by: Tim Connors <tconnors@rather.puzzling.org>
2023-08-16 08:15:48 +02:00
043f341683 IOR_KP18058_CLK IOR_KP18058_DAT 2023-07-25 08:16:03 +02:00
52524bc6c5 hue - p2, unfinished 2023-06-26 13:21:31 +02:00
808f65c8ad add smoke percent channel type and add bat_relay_n 2023-05-20 20:26:36 +02:00
696dc6fa5a support "None" pin 2023-05-05 12:16:53 +02:00
133ad88ff1 footer update, remove old flash tool 2023-04-27 14:16:17 +02:00
2fdb3b56f8 remove old uart tool 2023-04-27 13:52:47 +02:00
6e22209ee4 NTP_SendRequest: Unable to send message - retry quickly after reboot 2023-04-25 11:34:04 +02:00
48acf3c825 tm1638 driver 2023-04-24 16:11:49 +02:00
567c5756b4 ability to set GN6932_STB pins 2023-04-24 13:09:33 +02:00
c96b696089 ip test1 2023-04-18 00:08:10 +02:00
f5e245a75f adc button (multiple buttons on adc) driver 2023-04-14 21:57:32 +02:00
28556c06c7 Adding SGP Air Sensor I2C Driver (#769)
* Adding new driver for SGP30

* correct tasmota detection for SGP

* Correct mqtt publish

* Adding dependency in drv_tuyaMCU for bl0602
2023-04-14 08:37:12 +02:00
99438ea05f for a test - door sensor pin with pull down? 2023-04-11 21:03:03 +02:00
e5416d83a9 add requested BL0937_SEL_n - inverted SEL 2023-04-02 11:18:44 +02:00
141af2f514 remove old quickconfig 2023-03-26 15:40:55 +02:00
9346b55f4d TM1637 display driver p2 2023-03-03 16:16:11 +01:00
55022a1a54 Changing behaviour of battery driver (#697)
To provide Zero configuration for End User :
  - 2 new pins BAT_ADC and BAT_Relay
  - Autostart of driver if pins associated
  - change vdivider default value to 2.29 Seems like default for 2AA battery sensor
2023-02-26 16:42:40 +01:00
df7d1878f6 shorter role name - it was breaking app CSS! 2023-02-24 18:45:33 +01:00
4265f67303 deep sleep door sensor driver? 2023-02-24 15:09:15 +01:00
d6db57c577 smart ledd button 2023-02-22 15:18:01 +01:00
263a3df18a Added Bridge Driver for polarized relays. Teardown: TONGOU TO-Q-SY1-JWT (#662)
* Added Bridge Driver for polarized relays. Teardown: TONGOU TO-Q-SY1-JWT

* W600/W800 logging bug fix

* EnergyMetering
- negative values correction.
- Enenrgy metering must continue with high precission values can not be skipped.
  In case of negative values zero value must be used for calculation
  Energy is calculated as power/time. Timing calculation is measured between sampels.
  If skipping samples, timing calculation it then incorrect as well as energy calculation

* Logical filterring and correction for peaks in measuremed values.

---------

Co-authored-by: valeklubomir <valeklubomir@gmail.com>
2023-02-13 13:07:34 +01:00
6ac2d75868 http page add cmds link 2023-01-30 22:54:42 +01:00
c28f3fd4bf unfinished wemo 2023-01-23 16:35:24 +01:00
9a2735cccf confusing pin naming ERROR fixed (one name was missing...) SM2235 2023-01-20 12:55:19 +01:00
bd84eb4878 SM2235 driver - not tested, but based on the datasheet and SM2135 code 2023-01-15 23:09:31 +01:00
d42c1652d6 Adding SHT3X Driver (#607)
Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
2023-01-15 20:06:06 +01:00
5428f29393 Consolidate styles (#608)
* Moved repeated styles to css

* Updated startup section

* Fixed pin configuration message

* Fixed indentation
2023-01-15 15:55:34 +01:00
ec1a054508 CHT8305 driver - please test 2023-01-10 02:12:27 +01:00