Commit Graph

38 Commits (91c3cf88a82c652d7af9f6b75bffa812ff42de51)

Author SHA1 Message Date
Michael Zanetti c716f57e9c Add more debug prints to script console when ThingState fails 2023-12-30 18:08:41 +01:00
jenkins 7ca78aff08 Merge PR #654: Make script runtime errors appear in the script console 2023-11-29 14:13:35 +01:00
Michael Zanetti 748e599537 Make script runtime errors appear in the script console 2023-09-12 13:39:07 +02:00
Michael Zanetti 0c09e07112 Add support for connection to actionExecuted in scripts 2023-08-01 10:53:14 +02:00
Michael Zanetti 4e509841b0 Rework the log engine to use influxdb instead of sql 2023-05-08 23:38:34 +02:00
Michael Zanetti 22e75b08df Add Thing and Things types to script engine 2022-10-13 15:18:06 +02:00
Jenkins nymea 8153e551c1 Merge PR #499: Fix for ThingState which reports minValue instead of maxValue 2022-03-27 19:49:36 +02:00
doctorseus e76a2fe3d4 Fix: correctly report max instead of min value in ThingState 2022-02-16 14:19:19 +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
Michael Zanetti e3bba0534e Allow calling ScriptAction::execute() without parameters 2021-02-08 12:29:15 +01:00
Michael Zanetti f42aef106e Cleanup scripts on shutdown 2020-12-16 01:27:13 +01:00
Jenkins nymea e6b8d31d8d Merge PR #339: Add support for interface based script events and actions 2020-10-28 19:07:37 +01:00
Michael Zanetti 79dd00cb57 Add support for interface based script events and actions 2020-10-02 13:18:27 +02:00
Michael Zanetti 4d480f7c3b Fix a potential crash in logging handlers 2020-09-09 19:19:42 +02:00
Michael Zanetti 021f2479d9 Vaguely inform the plugin about the origin of actions.
Fixes #277
2020-06-16 17:49:41 +02:00
Jenkins nymea 777dba7439 Merge PR #278: Fix initialization of ScriptState values on startup 2020-04-05 14:43:24 +02:00
Michael Zanetti 944c0b8b5a Properly initialize ScriptState values 2020-04-05 11:54:32 +02:00
Michael Zanetti d82054df5d Fix param values getting lost in ScriptEvents 2020-03-18 18:16:00 +01:00
Michael Zanetti a894d27a18 Update script api 2020-03-05 19:50:15 +01:00
Michael Zanetti 3e425fc55b Rename devices to integrations/things 2020-03-02 13:40:26 +01:00
Michael Zanetti c0d0e13b71 Fix ScriptAction qqmlparserstatus 2020-02-09 19:06:44 +01:00
Michael Zanetti 8f5536ba1a Update copyright 2020-01-23 20:07:26 +01:00
Michael Zanetti 744f25312b Cleanup as code review suggests 2020-01-15 12:32:32 +01:00
Michael Zanetti 24cecf9d47 Add tests for the scriptengine 2019-12-10 18:49:28 +01:00
Michael Zanetti dd70129a4d Add ScriptAlarm 2019-12-10 00:22:49 +01:00
Michael Zanetti 9ecb2d0af4 Support params 2019-12-08 22:13:36 +01:00
Michael Zanetti 5ae3af6cbf Only install our filter once 2019-12-02 00:02:14 +01:00
Michael Zanetti 22bacf09e1 fix build 2019-12-01 01:14:26 +01:00
Michael Zanetti 5a36c2347f fix logging system to cope with the qml output redirection 2019-12-01 00:08:57 +01:00
Michael Zanetti bffdf9cb88 add copyright headers 2019-12-01 00:08:57 +01:00
Michael Zanetti ebf4d83286 Make it build with Qt 5.5 2019-12-01 00:08:57 +01:00
Michael Zanetti 53a79c52d6 fixes 2019-12-01 00:08:57 +01:00
Michael Zanetti 3c274b04ab More work on scripting 2019-12-01 00:08:57 +01:00
Michael Zanetti 3a9a0a0abc Add scripts api namespace 2019-12-01 00:08:57 +01:00
Michael Zanetti 6ab6f8a80b tune script types a bit 2019-12-01 00:08:57 +01:00
Michael Zanetti d4081195d4 Some more work on the script engine 2019-12-01 00:07:35 +01:00
Michael Zanetti 4c0c95b1a8 Add a ScriptEngine 2019-12-01 00:07:35 +01:00