Commit Graph

287 Commits

Author SHA1 Message Date
Martin Preuss
59c05d379c aqhome: add and implement a flush function for fd/tty objects. 2026-04-27 16:04:42 +02:00
Martin Preuss
0ac20ba82c aqhome-nodes: send heartbeat message to interface every 2mins.
e02 now expects this message. If for at least 10mins no such msg is
received the USB interface is reset.
2026-04-27 16:01:12 +02:00
Martin Preuss
8085043ef6 extended memstats message and handling. 2026-03-17 00:00:38 +01:00
Martin Preuss
1d39c3c773 fixed a bug (dayOfWeek starts with 0 in GWEN_TIMESTAMP, 1 in DS3231) 2026-03-16 18:04:00 +01:00
Martin Preuss
b6f710bd8b added node message type TIME. 2026-03-15 20:21:30 +01:00
Martin Preuss
d6e87aeba5 eventloop_select: introduce error variable
abort process if too many select errors. Prevents error logs from
filling log partition.

after 90 select errors the log level will be increased for the next calls.
after 100 select errors the process aborts (will be restarted by systemd).

TODO: inspect sockets to find the bad one.
2026-02-26 23:18:55 +01:00
Martin Preuss
bb9f86211d decreased verbosity. 2025-10-26 16:59:01 +01:00
Martin Preuss
617c8551dc fixed a bug (was not closing connection on error). 2025-10-25 16:37:11 +02:00
Martin Preuss
c32be5cd38 increased verbosity. 2025-10-25 16:36:52 +02:00
Martin Preuss
7c320b210f more work on mdevices module. 2025-10-25 16:36:24 +02:00
Martin Preuss
5a16117240 More work on aqhome-cgi. 2025-10-09 20:19:04 +02:00
Martin Preuss
d0c8b3b284 let setData use double values instead of strings.
this allows for storing value set with setData which can then be used in
the cgi module to retrieve the last value set.
2025-10-07 23:50:50 +02:00
Martin Preuss
0095b38c9f added OnOffAuto. 2025-10-07 00:26:07 +02:00
Martin Preuss
5040ccc065 sharply decrease verbosity. 2025-10-01 23:20:04 +02:00
Martin Preuss
494e7b3fbc aqhome-data: send data in multiple messages. remove limits. 2025-10-01 23:19:48 +02:00
Martin Preuss
12a64b8c91 log raw type 2025-09-22 22:41:57 +02:00
Martin Preuss
8f2bd23dc5 added modality "onOff". 2025-09-15 18:06:33 +02:00
Martin Preuss
53e076c2ad added argument "DEVICENAME" to GETDEVICES request.
faster if only a specific device is requested.
2025-09-12 15:06:26 +02:00
Martin Preuss
ffaa27ca24 aqhome-data: limit number of open files. 2025-09-07 11:48:55 +02:00
Martin Preuss
51d55128a9 Decreased verbosity. 2025-09-07 01:43:13 +02:00
Martin Preuss
a256c6261c decreased verbosity. 2025-09-06 00:38:08 +02:00
Martin Preuss
21830321f7 dataclient: fixed a typo. 2025-09-06 00:37:57 +02:00
Martin Preuss
809439fd26 aqhome-nodes: handle new statistics messages. 2025-09-01 23:20:38 +02:00
Martin Preuss
64854506e5 fixed recvstats message handling. 2025-08-25 14:11:57 +02:00
Martin Preuss
ec3774c7a5 fixed a bug in field order 2025-08-25 11:22:54 +02:00
Martin Preuss
6e062d3f60 improve stats reporting
now again use three messages to transmit stats (much more efficient than
sending single values, also more acurate).
2025-08-25 10:22:05 +02:00
Martin Preuss
cbd498150f avr: fully implemented router functionality in network and router app. 2025-07-07 16:05:53 +02:00
Martin Preuss
86982d0000 reuse code. 2025-07-06 14:39:16 +02:00
Martin Preuss
f549ef5d27 added debug output. 2025-07-06 14:39:02 +02:00
Martin Preuss
72acef3aaf Increased max message size. 2025-06-26 00:31:11 +02:00
Martin Preuss
68ee246216 aqhome-tool: added some commands
- getFirstData
- getLastData
- getPeriodData
2025-06-26 00:18:05 +02:00
Martin Preuss
2ba802bb06 More work on dataclient library. 2025-06-26 00:16:52 +02:00
Martin Preuss
cbf88e05fe added "mode" argument to "getdata" command. 2025-06-25 00:03:58 +02:00
Martin Preuss
a808450fa2 add dataclient sublib to be used by multiple tools. 2025-06-25 00:03:09 +02:00
Martin Preuss
63ebcbadc9 added msg "getValues" 2025-06-25 00:01:12 +02:00
Martin Preuss
b2802a37aa added AQH_Storage_GetFirstNDataPoints() 2025-06-25 00:00:39 +02:00
Martin Preuss
0ce70e48b1 avr: added type "light" 2025-06-16 23:27:37 +02:00
Martin Preuss
d32e2f4b81 handle stats values in nodes server. added missing code. 2025-05-28 00:44:58 +02:00
Martin Preuss
24dc3e1c0a aqhome: fixed flashing messages and code
use consisten order of arguments.
2025-03-23 22:38:37 +01:00
Martin Preuss
52eb92a00c fixed memory leaks. 2025-03-23 16:58:07 +01:00
Martin Preuss
2964347e7b adjusted to latest changes. 2025-03-21 20:55:11 +01:00
Martin Preuss
3f0e9c9294 increased verbosity. 2025-03-21 20:54:57 +01:00
Martin Preuss
c808f8640e aqhome-nodes: allow for TTY interface without ATTN line. 2025-03-21 20:54:19 +01:00
Martin Preuss
daa07428eb aqhome apps: decreased verbosity. 2025-03-19 23:19:52 +01:00
Martin Preuss
a14c2c892c libtest: no longer include old files. 2025-03-18 22:55:32 +01:00
Martin Preuss
cc64f793ec build: add missing files. 2025-03-18 22:55:08 +01:00
Martin Preuss
7e745c98e6 aqhome, aqhome-apps: cleanup, removed unneeded files. 2025-03-14 21:22:48 +01:00
Martin Preuss
216a13e90d aqhome: decreased verbosity. 2025-03-11 23:00:53 +01:00
Martin Preuss
44c5eb65bd aqhome: added AQH_Message_dup() 2025-03-11 23:00:41 +01:00
Martin Preuss
263ce00a14 more work on new events2-based apps. 2025-03-11 00:56:18 +01:00