Commit Graph

63 Commits

Author SHA1 Message Date
Martin Preuss
ffaa27ca24 aqhome-data: limit number of open files. 2025-09-07 11:48:55 +02:00
Martin Preuss
68ee246216 aqhome-tool: added some commands
- getFirstData
- getLastData
- getPeriodData
2025-06-26 00:18:05 +02:00
Martin Preuss
b2802a37aa added AQH_Storage_GetFirstNDataPoints() 2025-06-25 00:00:39 +02:00
Martin Preuss
7e745c98e6 aqhome, aqhome-apps: cleanup, removed unneeded files. 2025-03-14 21:22:48 +01:00
Martin Preuss
dc4a02a8ff aqhome-apps: removed unneeded files. 2025-03-10 00:15:36 +01:00
Martin Preuss
58c6d12e36 aqhome: finished transformation of aqhome-data and aqhome-tool. 2025-03-02 21:48:22 +01:00
Martin Preuss
a3d5b33105 mainly built-fixes. 2025-01-01 19:33:32 +01:00
Martin Preuss
6676024cb0 aqhome: added "modality" to values. 2024-09-26 21:12:42 +02:00
Martin Preuss
b0b6efb1c3 adapted to latest changes in gwen, more work on data and nodes servers. 2024-09-26 10:45:22 +02:00
Martin Preuss
4687a8726b aqhome: moved datafile implementations into their own folder. 2024-09-13 21:43:00 +02:00
Martin Preuss
6aac577365 aqhome: fixed compiler warning. 2024-08-25 14:28:43 +02:00
Martin Preuss
85a93065a4 aqhome: added virtual function "flush" 2024-08-25 14:28:22 +02:00
Martin Preuss
37a290ce1f aqhome-react: added missing include. 2024-05-19 01:36:30 +02:00
Martin Preuss
a3bf403ac0 aqhome-react: peridocally write vars. 2024-05-19 01:36:09 +02:00
Martin Preuss
334d0e8096 aqhome: remove flag AQH_PATH_FLAGS_ROOT 2024-05-18 13:10:41 +02:00
Martin Preuss
abada7b89b aqhome: minor format changes. 2024-05-17 20:35:13 +02:00
Martin Preuss
69893640a3 aqhome: added function AQH_Vars_ReplaceVars() 2024-05-17 20:34:31 +02:00
Martin Preuss
9f7f5ab0db aqhome: fixed copyright headers. 2024-05-17 19:25:48 +02:00
Martin Preuss
6828438780 aqhome: add writer for AQH_VARS (including a test). 2024-05-17 19:16:16 +02:00
Martin Preuss
05fb3d3b0a aqhome: added AQH_Vars_Dump(). 2024-05-17 17:39:00 +02:00
Martin Preuss
66c583f866 aqhome: use our own implementation of GWEN_Text_GetWordToBuffer().
use the same flags like the original function (maybe replace the
original function in gwen later).
2024-05-17 17:16:20 +02:00
Martin Preuss
2363535fe0 aqhome: add AQH_Vars_DataTypeToString() 2024-05-17 17:15:12 +02:00
Martin Preuss
9d0037b83d vars: minor beautification. 2024-05-17 01:52:49 +02:00
Martin Preuss
f8f4380038 vars: added code to read AQH_VARS from GWEN_DB strings. 2024-05-17 00:03:51 +02:00
Martin Preuss
7ce34b0500 aqhome-react, aqhome: added units/functions for handling local variables. 2024-05-12 17:31:31 +02:00
Martin Preuss
516ac4e34e vars: added more functions. 2024-05-11 01:07:10 +02:00
Martin Preuss
36e9909060 vars: added more module tests. 2024-05-09 23:08:44 +02:00
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
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
793d12693b aqhome: make datafile a virtual class. Add datafile_direct.
this is to allow for cached data file handling later.
2024-02-11 22:21:49 +01:00
Martin Preuss
5888bc9068 Storage: make storage class virtual with default implementations. 2024-02-11 20:07:30 +01:00
Martin Preuss
f0cfbfccc4 Condensed functions for GetDataPoints to only use one.
Keep HandleGetLastData for now (for older clients).
2023-10-18 15:27:53 +02:00
Martin Preuss
161dee1667 remove unneeded includes. 2023-10-06 18:05:27 +02:00
Martin Preuss
f56b25d06f renamed deviceNameForDriver of AQH_VALUE and nameForDriver of AQH_DEVICE. 2023-10-03 13:42:21 +02:00
Martin Preuss
17d4ce5125 Change AQH_Value field NameForDriver to Name and make it only contain the value name.
Previously this field contained the device name, too. This would make it
necessary for drivers to remove the device part of the name when SetValue
is called. Instead the device name is now always provided by the driver in
the appropriate field DeviceNameForDriver.
2023-10-03 13:31:05 +02:00
Martin Preuss
45da38b64a added devices, added command getdevices. 2023-10-01 23:44:26 +02:00
Martin Preuss
1e27223dfa Simplified IPC code to use less different IPC messages. Share more code. More qork on MQTT code. 2023-10-01 21:31:02 +02:00
Martin Preuss
bf89562d51 Removed unneeded code. 2023-09-20 17:51:02 +02:00
Martin Preuss
d6ae79cf81 Decreased verbosity. 2023-09-17 19:24:06 +02:00
Martin Preuss
161b979e84 added specific IPC messages and use them instead of more generic messages. 2023-09-13 12:07:11 +02:00
Martin Preuss
71f5ce8c7e Implemented GETLASTDATA in server and aqhome-tool. 2023-09-11 22:55:38 +02:00
Martin Preuss
518a3a53f9 Heavy work on IPC.
We will now have a broker (aqhome-data) which stores data and distributes
value change messages among connected clients.
aqhomed will connect to that broker and send its values there.
aqhome-mqtt will also connect to the broker and send its values there.
Other clients can later connect to check for changes and react according
to rules.
2023-09-10 23:13:03 +02:00
Martin Preuss
3bfb39966f aqhome-data: adding datapoints basically works now. 2023-08-17 00:24:38 +02:00
Martin Preuss
5fdb33c192 started working on aqhome-data.
this will be the data daemon storing datapoints, accessable via IPC.
2023-08-14 02:00:37 +02:00
Martin Preuss
a4c0f2e6fd aqhome-storage now checks and parses mqtt messages and stores values in datafiles. 2023-08-12 16:55:06 +02:00