Commit Graph

15 Commits (ecaa0c8dc5616d15ea2791770cf89ea1d6592cca)

Author SHA1 Message Date
Michael Zanetti eeb1feade0 Add a jitter filtering mechanism 2021-01-02 14:33:15 +01:00
Michael Zanetti ae38e185b6 more work... not really working yet 2021-01-02 14:33:15 +01:00
Michael Zanetti 56448543df An attempt to make it configurable 2021-01-02 14:33:15 +01: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
Michael Zanetti 9f856f3ce9 Add support for generic IO connections 2020-05-01 14:43:23 +02:00
Michael Zanetti 8f5536ba1a Update copyright 2020-01-23 20:07:26 +01:00
Michael Zanetti 3cbd01c1d2 drop all pack/unpack methds 2019-11-03 21:24:16 +01:00
Michael Zanetti bdd9876a88 Allow registering QMetaObjects on JSON api 2019-11-01 20:55:45 +01:00
Michael Zanetti 7893328534 drop ruleRelevant, eventRuleRelevant and graphRelevant 2019-04-10 12:48:02 +02:00
Simon Stürz 8a93fd8f68 Update properties methods and remove JSON information for mor generic definition formats 2019-04-08 13:55:15 +02:00
Simon Stürz 023a223908 Improve plugin json parsing and fix generate-plugininfo script 2019-04-08 13:55:15 +02:00
Simon Stürz 1f58300352 Add API documentation 2019-04-08 13:55:15 +02:00
Michael Zanetti 79cc563eb0 docs guh -> nymea 2019-04-08 13:55:15 +02:00
Michael Zanetti b8a86b095d copyright headers guh -> nymea 2019-04-08 13:55:15 +02:00
Michael Zanetti eb316a7a0c libguh -> libnymea 2019-04-08 13:55:15 +02:00