Commit Graph

361 Commits (4ce5d773b082fd6fae1ca7ea62811dcb60bdac7b)

Author SHA1 Message Date
Jenkins nymea 90291286df Merge PR #345: Don't use deprecated QString::sprintf and qVariantFromValue 2020-10-28 19:07:42 +01:00
Jenkins nymea 1f652ed78c Merge PR #342: Force full linking of plugins at build time 2020-10-28 19:07:40 +01:00
Jenkins nymea c956988f32 Merge PR #341: Add an API keys provider plugin mechanism 2020-10-28 19:07:39 +01:00
Jenkins nymea 82c347c3a3 Merge PR #336: Add caching information to client API 2020-10-28 19:07:35 +01:00
Jenkins nymea 0f442abe43 Merge PR #335: Fix a potential crash in logging handlers 2020-10-28 19:07:34 +01:00
Jenkins nymea 618d1589f8 Merge PR #333: Allow states, events and actions in interfaces to be optional 2020-10-28 19:07:32 +01:00
Jenkins nymea 907bd3b646 Merge PR #332: Add update interface 2020-10-28 19:07:30 +01:00
Jenkins nymea 6bd094fd72 Merge PR #330: Make the signalStrength state in wirelessconnectable interface optional 2020-10-28 19:07:29 +01:00
Michael Zanetti 166b16689f Don't use deprecated QString::sprintf and qVariantFromValue 2020-10-26 15:59:38 +01:00
Michael Zanetti dcae305625 Add an API keys provider plugin mechanism 2020-10-20 19:44:47 +02:00
Michael Zanetti 07b8515870 Force full linking of plugins at build time 2020-10-19 13:07:19 +02:00
Michael Zanetti e50eece45c Fix metatype registering for old Qt versions 2020-10-15 22:34:06 +02:00
Michael Zanetti d4889b5b78 Make it build with 0.23 2020-10-15 22:34:06 +02:00
Michael Zanetti 3296d4b417 more work 2020-10-15 22:34:06 +02:00
Michael Zanetti 0cbd1ff5ec Clenaup and polish types. 2020-10-15 22:34:06 +02:00
Michael Zanetti a90841401c more work 2020-10-15 22:34:06 +02:00
Michael Zanetti c7f957f201 some more python plugin work 2020-10-15 22:34:06 +02:00
Michael Zanetti 5d0751ae27 fix thread syncronisation 2020-10-15 22:34:06 +02:00
Michael Zanetti 3c47e59811 some more work 2020-10-15 22:34:06 +02:00
Michael Zanetti 125aee7153 Some more python plugin stuff 2020-10-15 22:34:06 +02:00
Michael Zanetti 31cf425b79 intermediate 2020-10-15 22:34:06 +02:00
Michael Zanetti 49bbd64434 Allow states, events and actions in interfaces to be optional 2020-09-20 23:32:15 +02:00
Michael Zanetti f9cd2a99df Add caching information to client API
This allows JsonHandlers to set a hash for certain API calls.
Clients can use this information to load data for such a call
from a cache instead of calling the method over the network
just to get the same result as last time.
2020-09-15 13:53:19 +02:00
Michael Zanetti 4d480f7c3b Fix a potential crash in logging handlers 2020-09-09 19:19:42 +02:00
Michael Zanetti e96d5f0d44 Add update interface 2020-09-06 03:11:27 +02:00
Michael Zanetti 60c55f0d85 Make signalStrength state in wirelessconnectable optional 2020-09-06 02:53:57 +02:00
Jenkins nymea 7ba9bc2add Merge PR #320: Rework garage door interfaces 2020-08-14 13:09:34 +02:00
Jenkins nymea 768b6a877e Merge PR #314: Fix conversion of values 2020-08-14 13:09:34 +02:00
Jenkins nymea bd0072e48f Merge PR #307: Loggingcategories 2020-08-14 13:09:34 +02:00
Michael Zanetti 075046ff70 Add simplegaragedoor 2020-08-01 00:26:22 +02:00
Michael Zanetti f66c3c4a60 add new interfaces to qrc 2020-07-31 17:42:51 +02:00
Michael Zanetti dfb62108fe inherit properly 2020-07-31 17:22:06 +02:00
Michael Zanetti 655e3a7f38 Rework garage door interfaces 2020-07-31 12:52:50 +02:00
Michael Zanetti 399f406d10 fixes 2020-07-27 19:38:21 +02:00
Michael Zanetti 680f574e41 don't use dcCore in the lib 2020-07-27 18:15:45 +02:00
Michael Zanetti 5002fad6d9 fix tests 2020-07-26 01:00:29 +02:00
Michael Zanetti 85146abca5 Fix type conversions of values
This fixes 5 issues in regard to types of values:

1) Default values for params in the metadata were not converted properly,
most visibly on integer values being loaded as double values.

2) Param values coming in from jsonrpc were not converted properly.

3) The plugin might set state values with invalid types or being out of range.

4) If, for some reason (e.g. earlier versions of nymea, or a plugin setting
its own params in code with a wrong type), there was a param value with a
wrong type in the system, we stored that wrong type and restored it on loading
of plugin params while instead it really should be converted to the specified
type in the ParamType.

5) If a plugin is not loaded for a configured thing, the old code would
not initialize the states properly but upon shutdown save those invalid
values to the cache.
2020-07-15 00:22:43 +02:00
Jenkins nymea 3aac5df9f9 Merge PR #306: Vaguely inform the plugin about the origin of actions. 2020-07-14 11:26:14 +02:00
Jenkins nymea c369bd15aa Merge PR #305: Allow emitting events from things directly 2020-07-14 11:26:14 +02:00
Michael Zanetti 75afab7eaf Add nymea logging categories as opposed to just Qt ones 2020-06-17 14:32:35 +02: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 f029184651 Allow emitting events from things directly 2020-06-16 16:16:23 +02:00
Michael Zanetti 24ecbf4f79 int precision is enough for the angle
Co-authored-by: Christian Fetzer <fetzer.ch@gmail.com>
2020-06-12 11:51:52 +02:00
Michael Zanetti 327e06367b Add better description to closables 2020-06-08 00:03:02 +02:00
Michael Zanetti ffae936125 Add venetianblind interface
And fix a bug in shutter, which should extend closable
instead of simpleclosable just like blinds and awnings.
2020-06-07 23:51:25 +02:00
Jenkins nymea 247146ceda Merge PR #298: Add ventilation interface 2020-06-07 19:16:24 +02:00
Jenkins nymea 1854604e32 Merge PR #295: Cleanup license headers/files 2020-06-07 19:16:23 +02:00
Jenkins nymea f820b7dd00 Merge PR #294: Add a helper function to more easily access ZeroConf txt records 2020-06-07 19:16:23 +02:00
Jenkins nymea 7337105073 Merge PR #291: Fix thing class translations 2020-06-07 19:16:23 +02:00
Jenkins nymea bf3a29b868 Merge PR #290: Add support for restarting nymea in the system api 2020-06-07 19:16:23 +02:00