Commit Graph

76 Commits (b86a062a878e87ac1da1e849e2c06976f63fee21)

Author SHA1 Message Date
Simon Stürz b86a062a87 added deviceresources and first tests 2019-04-01 20:48:17 +02:00
Simon Stürz fb4f1cf1a2 add multiple time filters for log filter 2019-04-01 20:48:17 +02:00
Simon Stürz 21ac449b3d first working filter version 2019-04-01 20:48:17 +02:00
Simon Stürz 91afe4f29e add guhserver namespace to server 2019-04-01 20:48:17 +02:00
Simon Stürz 5bbf1fc70b rename logging 2019-04-01 20:48:17 +02:00
Simon Stürz a8727407eb added logging category to core and lib 2019-04-01 20:48:17 +02:00
Simon Stürz 2ab185d215 update plugin json files
add unit to states
2019-04-01 20:48:17 +02:00
Simon Stürz 1ec69f8d6f add units to the API 2019-04-01 20:48:17 +02:00
Simon Stürz 01b92e325a add rule active status to rule details
add rule active status changed notification
add RuleDescription (and change API Rules.GetRules method)
2019-04-01 20:48:17 +02:00
Simon Stürz 516e825067 fixed readOnly in packParams 2019-04-01 20:48:17 +02:00
Simon Stürz 745107c469 changed editable property to readOnly
added guhcore documentation
bump JSONRPC api version
2019-04-01 20:48:17 +02:00
Simon Stürz b366d45229 first version of edit device 2019-04-01 20:48:17 +02:00
Simon Stürz 2aa55e469e added copyright 2019-04-01 20:48:17 +02:00
Simon Stürz 90622e5edb improove RuleAction logic
add tests
fix documentation
2019-04-01 20:48:17 +02:00
Simon Stürz 0603b8a3b7 fixed tests and bump api 2019-04-01 20:48:17 +02:00
Simon Stürz 6bd8983ec2 added RuleAction and RuleActionParam to RuleEngine 2019-04-01 20:48:17 +02:00
Simon Stürz 79cbab42a1 fixed packRule 2019-04-01 20:48:17 +02:00
Simon Stürz 0652646240 added exitActions for state based rules 2019-04-01 20:48:17 +02:00
Simon Stürz 9e10d1a99d added name for rules 2019-04-01 20:48:17 +02:00
Simon Stürz c1a0895a3f added Uint and Color to base types 2019-04-01 20:48:17 +02:00
Simon Stürz f331fe1591 added input types in plugin json files 2019-04-01 20:48:17 +02:00
Simon Stürz a336077521 fixed reference to InputType in ParamType 2019-04-01 20:48:17 +02:00
Simon Stürz d510157b26 added input type to API 2019-04-01 20:48:17 +02:00
Michael Zanetti 240c5e36d6 implement a logging framework 2019-04-01 20:48:17 +02:00
Michael Zanetti 56ca42e1ca finish off the stateevaluator handling 2019-04-01 20:48:17 +02:00
Michael Zanetti 5cd3154b64 add possibility to disable/enable rules
Fixes #58
2019-04-01 20:48:17 +02:00
Michael Zanetti c57773883d return correct enum name
Fixes #68
2019-04-01 20:48:17 +02:00
Michael Zanetti 352a2dcca1 don't pack invalid/empty stateevaluator contents
Fixes #56
2019-04-01 20:48:17 +02:00
Michael Zanetti 477a95477b add operator to stateevaluator in json api
Fixes #57
2019-04-01 20:48:17 +02:00
Michael Zanetti aad334c799 switch json api to better type system and enhance error reporting 2019-04-01 20:48:17 +02:00
Michael Zanetti 1aba1643f8 first attempt to clean up type system 2019-04-01 20:48:17 +02:00
Michael Zanetti ba8e3d7ec9 fix some plugin's json 2019-04-01 20:48:17 +02:00
Michael Zanetti b252ff9706 port new plugins to json system 2019-04-01 20:48:17 +02:00
Michael Zanetti 0614e79193 convert the remaining param lists 2019-04-01 20:48:17 +02:00
Michael Zanetti 824464e09b fix some param handling issues 2019-04-01 20:48:17 +02:00
Michael Zanetti f32abc8a2e add support for allowedValues 2019-04-01 20:48:17 +02:00
Michael Zanetti 53fe5557e0 fix issues in param handling in json api 2019-04-01 20:48:17 +02:00
Michael Zanetti be90f47f63 more work on rules
disallow removing a device if a rule still refers to it unless
parameters contain information on what to do with those rules.
2019-04-01 20:48:17 +02:00
Michael Zanetti 16645498db write more tests for the rules engine.
decouple jsonrpc versioning from application versioning
2019-04-01 20:47:51 +02:00
Michael Zanetti d2f02d650b fix eventdescriptor's paramdescriptors handling 2019-04-01 20:47:51 +02:00
Michael Zanetti 9d21f32366 allow calling AddRule with a single eventDescriptor but also with a list 2019-04-01 20:47:51 +02:00
Michael Zanetti 373af5bde5 add tests for loading/storing rules to disk 2019-04-01 20:47:51 +02:00
Michael Zanetti 08223606ee introduce StateDescriptor and StateEvaluator for use with Rules 2014-06-09 04:34:37 +02:00
Michael Zanetti 21738b3907 state changes emit events now 2014-06-08 20:52:30 +02:00
Michael Zanetti bbd05ca7fd align jsonrpc param descriptions with the rest of the type system 2014-06-08 17:08:51 +02:00
Michael Zanetti b07433a8b5 Add discoveryParams to DeviceClass
Fixes #12
2014-05-05 20:40:02 +02:00
Michael Zanetti d84319fdcc Finish off param handling. New param structures now used everywhere.
Plugin params reworked. Added Devices.GetPluginConfiguration.
Cover params stuff with tests.
2014-05-04 23:59:08 +02:00
Michael Zanetti c54e289403 added a mechanism to bump the version
added a test that checks for JSONRPC api changes and enforces a version bump
2014-05-03 17:22:44 +02:00
Michael Zanetti 7c3ffbd5d6 make executeAction more verbose 2014-04-28 23:52:05 +02:00
Michael Zanetti e4c007070f add vendorId to DeviceClass in JSONRPC
Fixes #6
2014-04-28 21:09:04 +02:00