Commit Graph

4061 Commits

Author SHA1 Message Date
cf0bcf2ea4 Fix ADC mappings (#1887) 1.18.226 2025-12-09 09:05:46 +01:00
5f45f69768 Doc updates to "getcommands.js" (#1888)
* getcommnads.js:

Add text and link to obk_config.h for defines used to enable a driver

Added first simple way to generate basic "events" documentation

* Add first version for the new documents "docs/events.md" and "docs/json/events.json"

* Changed handling of HTML-encoding of "<" and ">"

* Add new version of driver.md, too
2025-12-09 09:05:22 +01:00
3f93828622 Update getcommands.js, some minor doc-fixes (#1884)
updated documentation
1.18.225
2025-12-05 18:56:16 +01:00
c166966e02 OpenRTL8710B CloudCutter UG image + release (#1882)
* Realtek RTL8710B CloudCutter Try #1

* rename tool

* .img

* Update workflow.yaml
1.18.224
2025-12-05 00:08:59 +01:00
a34f90bcbb DS3231 RTC driver embedded in "local clock" (PR#1729) (#1792)
* Try NTP split update to actual source

* fix windows makefiles and timed_events

* fix typo

* Fix sprintf format

* sprintf format - next try to fix for ESP and ESP8266

* sprintf - special case for ESP8266

* Adding GUI button to set clock

* fix

* Add debug output

* fix missing HTTP output
use original obk_config.h - only renaming functions - to see filesizes

* limit functions to NTP ode CLOCK present

* try fix selftests

* Enable simple clock for all platforms, even if NTP is not enabled

* test fixing merge-conflict

* try fixing merge conflicts #1

* try fix merge conflict

* Fix typos
consolidate time display on main page
fix double comments preventing several documentation details ($mday, $month ...) on docs/constants.md
enabling more time stuff for W800 for local testing.

* Fix setDST argument passing

* only test DST if clock is running

* Fix setting epoch time - use atol(<string arg>) instead of Tokenizer_GetArgInteger(0) for epoch
Change user_main.c to use xticks as uptime for g_secondsElapsed

* Fix g_secondsElapesd for Windows - no xTicks there so stick to old way with g_secondsElapesd++ here ...

* Fix simulator build
remove additional defines for W800 used for testing

* Use esp_timer_get_time() instead of xTicks for ESP.
Seems much better, 30 seconds difference in one day
(used to be over 10 minutes off in 12 hours)

* Include DS3231 code

* Include DS3231 RTC driver

* Try simple fix for TXW81X without RTOS

* Second try fix TXW81X

* Fix comments for doc

* fix obk_config (still using "#define ENABLE_NTP_SUNRISE_SUNSET" instead of new "#define ENABLE_CLOCK_SUNRISE_SUNSET")
fix RDA5981
(as already done in branch Split_NTP_new)

* fix deviceclock code for corrected #define

* enable DS3231 driver for all platforms to test compilation and compare sizes

* fix selftest DST and sunrise/sunset (command names are "CLOCK_..." not "NTP...")

* Fix selftest for DST and sunset/sunrise events

* Add debug to try fixing selftest issue

* more debug

* Disable bedug output after fix.

* Disable DS3231 for all platforms. To tes, use previous commit

* Fix comments and handling of year when setting time of DS3231
Switch to internal time functions to reduce flash usage (avoid gmtime and mktime)

* Fix direct acces of NTP-time via g_ntpTime - use function "Clock_GetCurrentTime()"
switch to obktime instead of time.h "gmtime"

* Fix missing include for deviceclock and obktime

* made ds3231 driver dependent on "#define ENABLE_DRIVER_DS3231"
change "deviceclock.c" to set DS3231 RTC on every clock set command if driver is running, so e.g. every NTP update will also adjust RTC time

* fix missing includes for DRV_IsRunning() and DS3231_SetEpoch()

* introducing DS3231_informClockWasSet(bool force) - called by drv_deviceclock whenever clock is set.
so DS3231 driver can ste the clock, if needed - using "force" will force setting (no supprise ;-))

* Fixes to drv_main.c (missing args for onHassDiscovery)
Fixed missing arg "bPreState" in XX_AppendInformationToHTTPIndexPage()
Changed name from CLOCK to TIME
changed some "gmtime" to obktime "calculateComponents()a

* fixes

* fix obk_config.h

* fix missing include

* fix include for drv_txw81x_camera.c

* Directly call TIME "driver" functions, but don't use as real driver - so hiding it's presence in GUI

* fix missing OnEverySecond for TIME

* Prepare for merge: disable DS3231 driver for all platforms

* fix broken obk_config.h

* revert unintended change of src/driver/drv_max72xx_single.c
2025-12-04 14:46:51 +01:00
a23e4183c2 Fix missing "onHassDiscovery" and "XX_AppendInformationToHTTPIndexPage()" (#1877)
* Fix missing "onHassDiscovery" and "XX_AppendInformationToHTTPIndexPage()"

Fixes to drv_main.c (some missing args for "onHassDiscovery") - changed format to have one line per argument and driver
Fixed missing arg "bPreState" in some XX_AppendInformationToHTTPIndexPage() functions

* fix getcommands for new structure of drv_main.c (commands may be mutliple lines long)

* Make comments for "duplicate" drivers more readble

* Fix sourcefiles for documentation done with getcommands.js
Mainly missing comments or comments "contradicted" by function calls

* fixed one missed comment

* Fix path in descriprion command
make getcommands.js testing duplicates for content
 - if content (=documentation) is equal, show that ist potentially safe to ignore
1.18.223
2025-12-03 16:01:28 +01:00
2898d57ed5 added vars: - $mqtt_client - $shortName - $name
* exp

* fix

* Update cmd_tasmota.c
1.18.222
2025-12-03 09:59:37 +01:00
3f8677f110 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.18.221 2025-11-30 21:16:01 +01:00
4ced41bf4c on ha discovery event 2025-11-30 20:26:22 +01:00
30c8fc1a93 TCL AC - gen setting (reported as working by user) 1.18.220 2025-11-26 22:57:33 +01:00
0d8a6054c0 fx 1.18.219 2025-11-25 19:03:04 +01:00
a0a5e7a513 fx 2025-11-25 19:02:57 +01:00
deb6c7352a led_dimmerScale command so you can reduce LED heating but still hide it from HA/UI (it reduces brightnerss at 100% UI 2025-11-25 18:16:14 +01:00
22daaeb07e sm2235 add currents 1.18.218 2025-11-25 15:59:14 +01:00
db211a0429 garage cover entity discovery - just impl, not called anywhere 2025-11-25 15:58:26 +01:00
35fca72376 esp8266 optimize + idle hooks (#1869) 1.18.217 2025-11-23 14:47:39 +01:00
e9e20ed445 esp8266 ADC, EEPROM driver, max7219 simulator
* test

* Update workflow.yaml

* t

* makes

* Update drv_simpleEEPROM.c

* Update drv_simpleEEPROM.c

* ber

* Update workflow.yaml

* tt

* ber

* charts

* owm

* tt

* rem charts

* smaller

* test

* test

* fixes

* test

* charts

* comments

* test

* tt

* test

* add file to proj

* try to add pin 13 as ADC (testing in progress)

* test

* test

* MAX7219 simulator HACK

* final fixes

* Update drv_max72xx_internal.c

* restore

* fx
1.18.216
2025-11-23 14:01:04 +01:00
9581b34b95 bl602 fast connect (#1868) 1.18.215 2025-11-22 16:32:21 +01:00
c31cdd9d1c berry time and openweathermap access with self tests
* test

* owm

* fix

* test

* test
1.18.214
2025-11-20 13:30:13 +01:00
2086cb84fc Implementation of girier MCU driver for 2ch dimmer (#1846)
* Implementation of girier MCU driver for 2ch dimmer

* Fixed review notices

* makefiles

* dpType = 0; // TODO - uninitialized

* header

* add to vcproj

* header

* #if ENABLE_DRIVER_GIRIERMCU

* clear

---------

Co-authored-by: Tester <85486843+openshwprojects@users.noreply.github.com>
2025-11-18 22:00:19 +01:00
787558adb1 Update hal_pins_espidf.c (#1864)
#1863
2025-11-18 21:50:19 +01:00
99cb33dae0 fx 1.18.213 2025-11-16 23:23:04 +01:00
59c6156d88 DP_TYPE_RAW_TAC2121C_VCP 2025-11-16 23:11:55 +01:00
ad15c7d586 Current_div10 1.18.212 2025-11-16 20:32:03 +01:00
0a46262731 better wifi stability fix after reboot 1.18.211 2025-11-14 14:22:49 +01:00
60ca11183f Add support for Frequency variable in AddChangeHandler (#1853)
* add support for frequency variable in AddChangeHandler

* bl0942 frequency variable rounding correction

* move frequency to last args for VCPPublishThreshold

* frequency selftest precision adjustments

---------

Co-authored-by: kcstonacek <stonacek@stonacek.nz>
1.18.210
2025-11-11 21:35:39 +01:00
8be0c3bb6c uart cosmetic fixes
* fx

* tttttttttttttttt

* dis
2025-11-11 21:31:31 +01:00
f2c87bf690 merge max72xx clock progress and i2c pinwide scanner and misc fixes
* MAX72XX

* better

* faster buof

* eext

* test

* fx

* fxes

* tr

* fx

* Update drv_max72xx_clock.c

* fxes

* test

* fxes

* tests fxes

* fxes

* scr

* fx

* Update drv_local.h

* show

* Update drv_max72xx_clock.c

* test

* Delete lastEnumTemplate.txt

* TEST

* scan

* Update drv_main.c

* Update obk_main.cmake

* Update drv_multiPinI2CScanner.c

* dbg

* fxes

* Update drv_multiPinI2CScanner.c

* Update drv_multiPinI2CScanner.c

* Update drv_multiPinI2CScanner.c

* owm

* osm test

* restorew platfotms

* Update selftest_openWeatherMap.c

* test

* getter

* Update obk_config.h
1.18.209
2025-11-11 16:27:13 +01:00
f58a25fc3d Fix RDA5981 ADC status in platforms.md (#1858)
revert. accident. OTA only should have been toggled
1.18.208
2025-11-10 19:30:14 +01:00
b28266261c readme tweaks, update RDA platforms.md, fix BK7231M QIO (#1856)
* Update platforms.md

* Update README.md

* Update README.md

* Update README.md

* Update OpenBK7231N
1.18.207
2025-11-06 11:38:12 +01:00
73bbc45126 merge partition search driver (disabled by default)
* test

* search

* fx

* fx1

* enavble

* Update obk_main.mk

* 0x200000

* Update drv_bkPartitions.c

* chk

* crc

* finalize

* fxes
2025-11-04 20:29:54 +01:00
c23984d7e3 If we have both daylight saving time (DST) and sunset/sunrise calculation, (#1843)
a DST switch should fix the upcomming sunset/sunrise events
(which were calculated before the switch, hence with "old" time.)
Added one simple test case
2025-10-29 18:56:26 +01:00
36e2c0bc18 ws2812 + CW test 1.18.206 2025-10-26 05:06:53 +01:00
f2335b803f Fix RDA release (#1840)
* fix rda release

* ali bootloader
1.18.205
2025-10-22 01:09:49 +02:00
365a0dbcf9 rda5981 ota (#1839)
* rda5981 ota

* easyflash and lfs

* adjust offsets

* mac change
1.18.204
2025-10-21 09:08:48 +02:00
5a83d0268b tr6260 quick pwm fix (#1838)
* tr6260 fix pwm

* forgot gpio14

* tr6260 interrupts
1.18.203
2025-10-20 22:52:22 +02:00
3a6d7bcecc delay_ms 50 test 1.18.202 2025-10-18 17:13:37 +02:00
689a97c3c9 UART tcp usage comment 2025-10-18 17:13:21 +02:00
7d8cbe824b Update selftest_enums.c 1.18.201 2025-10-18 01:29:35 +02:00
e69ba795b1 next enum self test 1.18.200 2025-10-18 01:17:13 +02:00
b35a6731e4 reduce stack size iusage n ha discovery, next enum self test 2025-10-18 01:17:03 +02:00
0ec4b6a404 fix leak 2 1.18.199 2025-10-18 00:28:43 +02:00
39c4590296 fix one leak in simulator 2025-10-18 00:16:25 +02:00
d264e92500 better self test for enums 1.18.198 2025-10-17 23:48:06 +02:00
42976ee561 few more fixes 2025-10-17 23:04:33 +02:00
60a7d1371c HA ENUMS PR FIX (remove 1kB from stack) 2025-10-17 22:47:16 +02:00
1a291a82ad fix handling of "sunset" events (#1834)
* fix handling of "sunset" events:

Old code was

if (e->sunflags & (SUNRISE_FLAG || SUNSET_FLAG)) {

This will ignore sunset events ( SUNSET_FLAG = 1 << 1)
for the or of two values ( 1 || 2) is always true
and will result in testing (sunflags & 1)
so never true for sunset (2 & 1) is false.
probaly meant

if ((e->sunflags & SUNRISE_FLAG) || (e->sunflags & SUNSET_FLAG))

but it's sufficient to check is "sunsetflags" is not 0, so simple fix:

if (e->sunflags){

Additionally added code to change liste vents ("listClockEvents") so it also shows if a time is derived from sunset or sunrise:

before the output would be like:

Info:CMD:Ev 32 - 7:31:0, days 0xff, cmd setChannel 0 0
Info:CMD:Ev 31 - 19:7:0, days 0xff, cmd setChannel 0 1

and you won't see this is an "dynamic" time. Now it's (I also used %02i to fix time format)

Info:CMD:Ev 32 - 07:31:00 (sunrise), days 0xff, cmd setChannel 0 0
Info:CMD:Ev 31 - 19:07:00 (sunset), days 0xff, cmd setChannel 0 1

* forgot to commit fix for time display using "%02i" for hours, minutes and seconds
1.18.197
2025-10-17 10:08:41 +02:00
f5a3b2642b RTL new fix OTA (#1836)
* RTL new fix OTA
clean-up workflow

* fix esp cache?
1.18.196
2025-10-17 08:44:13 +02:00
fba323f3aa Enum examples (#1832)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

* ChType_Enum autoexec example corrections

---------

Co-authored-by: root <root@stonacek.nz>
Co-authored-by: kcstonacek <kcstonacek@stonacek.nz>
2025-10-16 21:01:16 +02:00
28bc5e16e6 Update OpenTXW81X (#1831) 1.18.195 2025-10-15 15:56:56 +02:00