Commit Graph

142 Commits (299052d2f7ccc9666b6ec30bdbfcfd16a1f55fe7)

Author SHA1 Message Date
Michael Zanetti 299052d2f7 Fix processing of rule action params and make tests pass again 2019-04-10 13:40:16 +02:00
Michael Zanetti 5fcfe1a11c Update removeConfiguredDevice to update rules as appropriate 2019-04-10 13:40:16 +02:00
Michael Zanetti 6afe3e5161 fixup api 2019-04-10 13:40:16 +02:00
Michael Zanetti 774452ff7c Add support for state based rule action params 2019-04-10 13:40:16 +02:00
Michael Zanetti 5808da8f86 Make the initial handshake (JSONRPC.Hello) mandatory. 2019-04-10 12:43:03 +02:00
Michael Zanetti 50aa691087 Add test, fix some issues with loading internal and built-in plugin translations 2019-04-08 16:49:31 +02:00
Michael Zanetti 8ebd1ddc4e Rework translation mechanism
This branch moves the translation logic out of the DevicePlugin
into the JsonRpc layers (JsonRpcHandlers and Rest handlers) and
deprecates the Configuration.SetLanguage method call. Instead
it adds a "locale" property in the JSONRPC.Hello message. This
will allow multiple clients to connect to a single core using
different languages.
2019-04-08 16:49:24 +02:00
Simon Stürz e80c713fff Make sure all uuid values in the API get converted correctly and unified to string 2019-04-08 16:41:53 +02:00
Michael Zanetti 5badc066fb Add a deviceId to DeviceDescriptors to allow reconfiguring them 2019-04-08 13:55:15 +02:00
Michael Zanetti 948eff8319 Drop Janus and WebRTC support 2019-04-08 13:55:15 +02:00
Simon Stürz a44b82c497 Fix push button auth finished notification API documentation 2019-04-08 13:55:15 +02:00
Michael Zanetti 49bcfe72f5 Fix Scenes getting activated by state changes 2019-04-08 13:55:15 +02:00
Michael Zanetti 309240ed47 Support providing a custom remote proxy url 2019-04-08 13:55:15 +02:00
Michael Zanetti 81e4db3a90 Handle binding loops in rules properly 2019-04-08 13:55:15 +02:00
Michael Zanetti c6d9bdd75c Make loading and tearing down of the core more predictable 2019-04-08 13:55:15 +02:00
Michael Zanetti 69de953d5e make it more solid 2019-04-08 13:55:15 +02:00
Michael Zanetti bd84f5c633 revert part of the fix, it makes it crash 2019-04-08 13:55:15 +02:00
Michael Zanetti 1094f589d1 Small fixes in AWS connection
* Fix uncategorized debug print
* Disable the mqtt lib's autoreconnect feature as AWS doesn't support that
* Manually reconnect on errors too
2019-04-08 13:55:15 +02:00
Michael Zanetti d956df8483 Allow overriding device parameters from discovered devices 2019-04-08 13:55:15 +02:00
Michael Zanetti 15938cafb3 Fix an issue where Rules might not be initialized properly at startup 2019-04-08 13:55:15 +02:00
Simon Stürz e51508ee33 Update webserver debug output, add WebServerTraffic category and fix favicons for debugserver 2019-04-08 13:55:15 +02:00
Michael Zanetti 7764bc8757 fix issues from review 2019-04-08 13:55:15 +02:00
Michael Zanetti 7b1c848c07 add MqttPolicy to Json introspect 2019-04-08 13:55:15 +02:00
Michael Zanetti e1affe17d0 fix init order 2019-04-08 13:55:15 +02:00
Michael Zanetti cb38dc0853 add license headers 2019-04-08 13:55:15 +02:00
Michael Zanetti 7b483bb087 don't leak policies 2019-04-08 13:55:15 +02:00
Michael Zanetti 1d903862ed replace emqtt with nymea-mqtt 2019-04-08 13:55:15 +02:00
Michael Zanetti 5bf1fb5bc4 add API to request a client connected to the internal mqtt broker to mqttprovier 2019-04-08 13:55:15 +02:00
Michael Zanetti 5847d6831d add support for an MQTT hardware resource 2019-04-08 13:55:15 +02:00
Michael Zanetti 751359c528 added missing files 2019-04-08 13:55:15 +02:00
Michael Zanetti 8d05f984c0 mqtt broker now working 2019-04-08 13:55:15 +02:00
Michael Zanetti 371c2f76c2 move servers into subdir, cleanup some includes 2019-04-08 13:55:15 +02:00
Simon Stürz 89f146ef1d Fix report file extension, add microsoft browser favicon support and fix tags show button 2019-04-08 13:55:15 +02:00
Simon Stürz 384544ca15 Set working directory to standard paths and add timer for async function in order to show progress 2019-04-08 13:55:15 +02:00
Simon Stürz 80789c256b Add missing license headers 2019-04-08 13:55:15 +02:00
Simon Stürz a0c2143c4b Add status report generator and finish debug interface improvements 2019-04-08 13:55:15 +02:00
Simon Stürz b2cb22df66 Add tabs for better overview 2019-04-08 13:55:15 +02:00
Simon Stürz c17fe76027 Add autoscoll for log view 2019-04-08 13:55:15 +02:00
Michael Zanetti 74293535b8 fix it 2019-04-08 13:55:15 +02:00
Simon Stürz 4bd3b836f8 Add network test functionality and add live log viewer for debug server interface 2019-04-08 13:55:15 +02:00
Michael Zanetti c7f4dda9d3 check for duplicates when an update comes in 2019-04-08 13:55:15 +02:00
Michael Zanetti f243d383e4 Revert "add a hack for meeting the zapf deadline"
This reverts commit 8df8d70535.
2019-04-08 13:55:15 +02:00
Michael Zanetti b49dafa7e3 add limits and offset to GetLogEntries 2019-04-08 13:55:15 +02:00
Michael Zanetti 2d98e9d6b9 Rafactor Packet fragmentation
- Move Json packet fragmentation into the JsonRpcServer.
  This way we only have to do it once.

- fixes a bug in TcpServer and BluetoothServer
  where multiple clients would corrupt each others buffer

- fixes a bug in CloudTransport where it would leak client
  sockets after a remote connection disconnect
2019-04-08 13:55:15 +02:00
Michael Zanetti cdf5c63b59 remove rules which are left without any action after a device removal 2019-04-08 13:55:15 +02:00
Michael Zanetti 6d2ab278a8 don't emit connected() when we've already been connected 2019-04-08 13:55:15 +02:00
Simon Stürz a500baf5d8 Add notifications to introspect desciption. Fix #76 2019-04-08 13:55:15 +02:00
Michael Zanetti da831133c8 fix introspect for TagError and UserError 2019-04-08 13:55:15 +02:00
Michael Zanetti 83168772f3 fix issues from code review 2019-04-08 13:55:15 +02:00
Michael Zanetti 699065f689 update to use nonce 2019-04-08 13:55:15 +02:00