Commit Graph

1606 Commits

Author SHA1 Message Date
Martin Preuss
403392a72e Add module test for AQH_Vars 2024-05-09 14:57:12 +02:00
Martin Preuss
2c584bbff9 vars: use const in most api functions
The idea of not using const was to reduce copy operations.
However, it is not very intuitive to know when and which arguments are const
so to simplify working with this new module and make it as close as possible
to GWEN_DB we use const now as in GWEN_DB.
At least AQH_Vars_SetStringData() still doesn't use const so if the need
arises to avoid copying we can.
2024-05-09 14:56:46 +02:00
Martin Preuss
b6e4a5265a vars: also check idx. 2024-05-09 00:52:26 +02:00
Martin Preuss
b473d62cdc aqhome: more work on path and vars modules. 2024-05-09 00:49:57 +02:00
Martin Preuss
3e5bff90d1 aqhome: make delimiter a function argument instead of hardcoding "/". 2024-05-08 00:41:14 +02:00
Martin Preuss
d5b1dbd5ee aqhome: minor modifications. 2024-05-08 00:20:42 +02:00
Martin Preuss
29eb910881 increased minimum gwen version required. 2024-05-07 23:57:26 +02:00
Martin Preuss
bcc7629b1e aqhome: added PATH module, started VARS module.
those might later get incorporated into libgwenhywfar.
2024-05-07 23:57:07 +02:00
Martin Preuss
f400104bbc aqhome-react: added unit for timer programs. 2024-05-07 23:56:02 +02:00
Martin Preuss
a3d0fad984 aqhome-react: generalize command handling. 2024-04-27 13:24:00 +02:00
Martin Preuss
075fbc1cb5 Added another test for program rules. 2024-04-27 10:55:34 +02:00
Martin Preuss
c9d82cc88e aqhome-react: added program rules with test code. 2024-04-26 01:29:27 +02:00
Martin Preuss
2342dfbe4a incremented version. 2024-04-21 00:34:09 +02:00
Martin Preuss
dbc8fdf35d aqhome-react: decreased verbosity. 2024-04-21 00:34:00 +02:00
Martin Preuss
89dd230b8f aqhome-react: fixed a typo. 2024-04-21 00:33:34 +02:00
Martin Preuss
243754c15d aqhome-react: minor changes to example network file. 2024-04-21 00:33:22 +02:00
Martin Preuss
d17274c6d6 aqhome-react: decreased verbosity. 2024-04-20 19:44:45 +02:00
Martin Preuss
9b2b9dccea aqhome-react: improve log messages. read params of suntimes unit on first process call. 2024-04-20 19:44:31 +02:00
Martin Preuss
83106327fa aqhome-react: increase interval between network file checks. 2024-04-20 19:43:50 +02:00
Martin Preuss
87114cecea aqhome-react: more work on modules and networks.
- tested AND network and new suntime units.
- add unit XML property "invert" (inverts output for logical units)
2024-04-20 17:28:20 +02:00
Martin Preuss
f3c68a8bba aqhome-react: fixed typo. 2024-04-20 02:03:49 +02:00
Martin Preuss
f083fb1c00 aqhome-react: handle MULTI inputs, set input port flags. 2024-04-20 02:03:32 +02:00
Martin Preuss
88d049d68a aqhome-react: added code to determine sunset/sunrise times. 2024-04-20 02:00:06 +02:00
Martin Preuss
7ee7edffec aqhome-react: rename "name" to "typeName" in AQHREACT_Unit 2024-04-18 23:28:27 +02:00
Martin Preuss
e486a7e69d aqhome-react: finish new network reading code, improved debugging helper code. 2024-04-18 22:40:13 +02:00
Martin Preuss
2443fbca9f aqhome-react: added example network. 2024-04-18 22:39:25 +02:00
Martin Preuss
716c1c58df aqhome-react: consistently named function. 2024-04-17 23:13:15 +02:00
Martin Preuss
7ea260031e fixed compiler warnings. 2024-04-17 23:11:52 +02:00
Martin Preuss
02c256ffa2 aqhome-react: replaced example networks. 2024-04-17 23:11:15 +02:00
Martin Preuss
02f02b1ad1 aqhome-react: removed uneeded files. 2024-04-17 22:29:28 +02:00
Martin Preuss
f4902d5717 fixed a compiler warning. 2024-04-17 22:27:02 +02:00
Martin Preuss
8bb60fdba7 build: more gcc warnings. 2024-04-17 22:26:47 +02:00
Martin Preuss
1050ee1c75 aqhome-react: major rebuild of unit handling.
now nested networks are allowed to allow for complex networks.
2024-04-17 22:26:17 +02:00
Martin Preuss
ec816bddcf aqhome-react: added more logical units (or, and, xor). started "module" unit.
module units now are units created from previous networks of units
thus introducing nested units.
2024-04-14 23:42:10 +02:00
Martin Preuss
9468911451 aqhome-react: make more functions virtual. 2024-04-14 23:39:45 +02:00
Martin Preuss
61ce363a8a aqhome-react: sort list of network files before reading. 2024-04-13 00:55:00 +02:00
Martin Preuss
563e5f0eff aqhome-react: add "sourceNet" and "targetNet" to links. 2024-04-13 00:51:32 +02:00
Martin Preuss
ec5aeb9a05 aqhome-react: expand properties also when reading units and links. 2024-04-13 00:41:15 +02:00
Martin Preuss
9a4eb3c608 decrease StartLimitIntervalSec to 1m. 2024-04-13 00:04:03 +02:00
Martin Preuss
dd133c7368 added systemd file for aqhome-react. 2024-04-13 00:03:37 +02:00
Martin Preuss
a7267c061a aqhome-react: extended reading of network files.
network files can now extend a template network making it much easier
to create new networks based on existing one.
2024-04-13 00:03:08 +02:00
Martin Preuss
a94ebeca29 fixed a bug (was not using pathName). 2024-04-12 22:53:46 +02:00
Martin Preuss
1b1d2f6c9e incremented version. 2024-04-12 22:42:00 +02:00
Martin Preuss
83cdc8abe3 aqhome-react: switch locations of template files and system network files.
- template files are stored in $PATH/share/aqhome/react/networks
- system network files are in $PATH/etc/aqhome/react/networks
2024-04-12 22:41:36 +02:00
Martin Preuss
2653b16939 add AQH_FindPathOfDataFile(). 2024-04-12 22:33:56 +02:00
Martin Preuss
ee19014644 aqhome-mqttlog: remove unused var. 2024-04-12 22:33:41 +02:00
Martin Preuss
a479538743 aqhome-react: enable network loading.
This application has now basic functionality.
2024-04-12 21:29:40 +02:00
Martin Preuss
2ac4887f01 aqhome-mqttlog: removed another unneeded file. 2024-04-03 22:47:54 +02:00
Martin Preuss
8a7a4c7a64 aqhome-mqttlog: remove unneeded files. 2024-04-03 22:46:58 +02:00
Martin Preuss
c62165cd92 aqhome-react: Unified function names. 2024-04-03 21:58:34 +02:00