35 Commits

Author SHA1 Message Date
jenkins
f2ed3e1054 Merge PR #721: Update license text and add SPDX identifier 2025-12-02 10:38:45 +01:00
Simon Stürz
4d170061fd Update license text and add SPDX identifier 2025-11-17 16:42:41 +01:00
Simon Stürz
dd964d8044 RuleEngine: Improve TimeDescriptor and CalendarItem DateTime Time loading 2025-11-15 16:34:20 +01:00
Simon Stürz
2acf7784a6 Update the entire Qt6 code to new signal slot connections
Update logging cathegories and allign coding style
2025-09-11 10:09:24 +02:00
Simon Stürz
2f0077a5d1 Add compat 2025-09-11 10:09:24 +02:00
Simon Stürz
3a234066ef Fix qt5 build and test not overloading == operator 2025-09-11 10:09:24 +02:00
Simon Stürz
f5c4bd16ac Add Qt6 support
Add Qt6 debian packaging
2025-09-11 10:09:24 +02:00
Michael Zanetti
2c817247be Fix building with newer gcc 2023-10-29 23:14:51 +01:00
Michael Zanetti
4e509841b0 Rework the log engine to use influxdb instead of sql 2023-05-08 23:38:34 +02:00
Michael Zanetti
92197cb97c Refactor NymeaCore class
This moves all the things and rules logic away from NymeaCore
into their respective modules where it belongs.

One major change is the removal of the removePolicy functionality.
This was somewhat broken as it was only working for rules but not
for all the other modules like scripts, experiences etc. After
an attempt to create something that works with all modules it
really seemed that this does not make a lot of sence after all,
given that updating rules would in most cases leave something
very broken behind and removing them was the only sane thing to do.

On the other hand, experience plugins may not work well with such
a policy eithre as they may require to do their own special thing.

So in the end the removePolicy was dropped altogether. Apps should
instead figure out themselves what removal of a thing may imply and
inform the user about that beforehand.
2023-01-24 17:56:04 +01:00
Simon Stürz
a3b3eecde8 Update debug prints and improve information given by warnings 2022-10-13 12:07:20 +02:00
Michael Zanetti
327fba5797 Fix creating rules without giving action params that have a default value 2022-09-07 20:25:33 +02:00
Jenkins nymea
3c8dd98400 Merge PR #500: Add debug prints to rule engine 2022-03-27 19:49:37 +02:00
Michael Zanetti
1f743b6671 Add debug prints to rule engine 2022-02-21 13:22:53 +01:00
Michael Zanetti
2a91dad1f0 Don't generate events for state changes any more
Up until now, nymea would generate EventTypes for every StateType
as well as emit an Event (along with a StateChanged notification) for
every change. This results in a lot of duplicated network traffic
which is of not much use. The StateChanged notification contains
all the information in the Event too and nymea:app actually never
really used Events for state changes.

This commit removes the events from the ThingClass, making it a lot
smaller and stops emitting Events for state changes.

As this is breaking the behavior, the JSONRPC API major version
is bumped.
2022-02-08 10:38:41 +01:00
Michael Zanetti
717b4f33cc Remove deprecated Devices, Action, Events, States namespaces from JSONRPC 2022-02-08 00:29:07 +01:00
Jenkins nymea
9fb18494a3 Merge PR #430: Allow creating rules with exit actions and calendar items 2021-07-06 17:18:23 +02:00
Michael Zanetti
a660bdd0e2 Allow creating rules with exit actions and calendar items 2021-05-29 00:28:22 +02:00
Michael Zanetti
4290e01b1f Fix time based rules not being initialized directly after creation 2021-05-29 00:26:57 +02:00
Michael Zanetti
b9be92df2e Add state based value comparison in rules 2020-12-04 16:16:55 +01:00
Michael Zanetti
021f2479d9 Vaguely inform the plugin about the origin of actions.
Fixes #277
2020-06-16 17:49:41 +02:00
Michael Zanetti
9f856f3ce9 Add support for generic IO connections 2020-05-01 14:43:23 +02:00
Michael Zanetti
8208473302 bump api 2020-03-05 16:16:57 +01:00
Michael Zanetti
3e425fc55b Rename devices to integrations/things 2020-03-02 13:40:26 +01:00
Jenkins nymea
bfb14fe4ae Merge PR #256: Cleanup Rule definition in introspection 2020-02-23 23:38:28 +01:00
Michael Zanetti
ba6219bfd6 Cleanup Rule definition in introspection
As per feedback from client development
2020-01-29 15:16:29 +01:00
Michael Zanetti
8f5536ba1a Update copyright 2020-01-23 20:07:26 +01:00
Michael Zanetti
ec15e664e1 cleanup warnings and allow setting "unknown" debug categories 2019-11-06 13:38:22 +01:00
Michael Zanetti
3cbd01c1d2 drop all pack/unpack methds 2019-11-03 21:24:16 +01:00
Michael Zanetti
baaa719b6a Restructuring json done 2019-11-01 20:55:45 +01:00
Michael Zanetti
da0b7a04f8 Verify events coming from plugins 2019-08-23 12:10:07 +02:00
Michael Zanetti
1608e07d99 BrowserItems in rules working 2019-07-25 15:56:18 +02:00
Michael Zanetti
0fb42681af A little more work on browser item support for rules 2019-07-25 15:56:18 +02:00
Michael Zanetti
a385188d37 More work on the device browser 2019-07-25 15:56:18 +02:00
Michael Zanetti
d24abfe3d0 Move devicemanager's implementation out of libnymea into libnymea-core 2019-07-15 22:52:52 +02:00