Commit Graph

843 Commits (6084d5b8f1165cb92191ad1d0bbf346d9bfa53e0)

Author SHA1 Message Date
jenkins 17189a6582 Merge PR #666: Update install directory for tests 2024-01-29 12:22:28 +01:00
Simon Stürz 1a1b268421 Update install directory for tests 2024-01-29 09:55:41 +01:00
Michael Zanetti 46e6232021 Enable logging for signal strength by default
Since the new log engine this isn't that heavy on the resources any more
2023-12-29 13:11:20 +01:00
jenkins 856c3503ee Merge PR #653: LogEngine: provide possibility to disable the log engine 2023-11-29 14:13:34 +01:00
jenkins 4765e1174f Merge PR #651: Make possibleValues for states dynamic and translatable 2023-11-29 14:13:32 +01:00
Simon Stürz 84dca158b3 LogEngine: provide possibility to disable the log engine 2023-08-22 09:21:03 +02:00
Michael Zanetti 0c09e07112 Add support for connection to actionExecuted in scripts 2023-08-01 10:53:14 +02:00
Michael Zanetti 4b3ec64e58 Make possibleValues for states dynamic and translatable 2023-08-01 10:45:41 +02:00
jenkins 21061e91a0 Merge PR #637: Rework the log engine to use influxdb instead of sql 2023-05-23 11:49:12 +02:00
jenkins 2cd6db2b8f Merge PR #630: Add location setting 2023-05-23 11:49:05 +02:00
Michael Zanetti 4e509841b0 Rework the log engine to use influxdb instead of sql 2023-05-08 23:38:34 +02:00
jenkins 4c29386bbd Merge PR #629: Drop cloud settings which aren't used any more 2023-02-21 17:43:45 +01:00
jenkins 9f4c3bc27a Merge PR #628: Allow users with ControlThings permission to read things logs 2023-02-21 17:43:44 +01:00
jenkins e9e734dc60 Merge PR #625: Stabilize logging tests 2023-02-21 17:43:41 +01:00
jenkins 9355694c24 Merge PR #620: Refactor NymeaCore class 2023-02-21 17:43:34 +01:00
Michael Zanetti 3a8fa74fcf Add location information to NymeaConfiguration 2023-02-18 22:35:02 +01:00
Michael Zanetti 15bcff1e6f Drop cloud settings which aren't used any more
Actually not bumping the jsonrpc version which in theory is a violation,
however, the largest part of this has been gone already with the bump to
7.0 and no known client applications are using this anways any more.
2023-02-16 14:07:35 +01:00
Michael Zanetti 5ea014a507 Allow users with ControlThings permission to read things logs 2023-02-13 14:29:03 +01:00
Michael Zanetti 2be6032718 Bind a client connection to the token given in the hello call.
This is a prerequisite for enabling dispatching notifications
based on user permissions.
2023-02-13 14:15:10 +01:00
Michael Zanetti 51d08f94cf Stabilize logging tests 2023-02-08 19:45:14 +01:00
Michael Zanetti 92197cb97c Refactor NymeaCore class
This moves all the things and rules logic away from NymeaCore
into their respective modules where it belongs.

One major change is the removal of the removePolicy functionality.
This was somewhat broken as it was only working for rules but not
for all the other modules like scripts, experiences etc. After
an attempt to create something that works with all modules it
really seemed that this does not make a lot of sence after all,
given that updating rules would in most cases leave something
very broken behind and removing them was the only sane thing to do.

On the other hand, experience plugins may not work well with such
a policy eithre as they may require to do their own special thing.

So in the end the removePolicy was dropped altogether. Apps should
instead figure out themselves what removal of a thing may imply and
inform the user about that beforehand.
2023-01-24 17:56:04 +01:00
jenkins 15ab9c06d1 Merge PR #606: Drop old nymea:cloud support 2022-12-13 21:05:05 +01:00
jenkins ff1a841352 Merge PR #603: Fix a crash when the same plugin file is loaded twice 2022-12-13 21:05:02 +01:00
Michael Zanetti 7c4b6494bb Drop old nymea:cloud support 2022-12-01 16:37:51 +01:00
Michael Zanetti 9296c1183c Fix permissions for tags and appdata
This ties those namespaces to the things permissions but won't
allow having different tags/appdata per user, which arguably would
be desirable. However, that's currently not that straight forward
to do, as at the moment there is no way to direct jsonrpc notifications
to a single user.
2022-11-30 15:30:50 +01:00
Michael Zanetti 5f8f8b2e62 Fix a crash when the same plugin file is loaded twice
If the same directory is passed twice QPluginLoader
would return the same object for the instance() call.
Deleting that would lead to deleting the instance for
the originally loaded plugin too.
2022-11-25 11:17:02 +01:00
jenkins 6008303b5b Merge PR #583: Rework air quliaty interfaces 2022-10-25 02:37:14 +02:00
jenkins 1d5144fb66 Merge PR #582: Add API to configure the wired network 2022-10-25 02:37:13 +02:00
jenkins 8c67dd8bd8 Merge PR #580: Remove extern plugin info from testlib header 2022-10-25 02:37:10 +02:00
jenkins 3e5e9ac738 Merge PR #574: Add Thing and Things types to script engine 2022-10-25 02:37:03 +02:00
jenkins 094c32ecf1 Merge PR #572: Add API to interact with ZigBee bindings 2022-10-25 02:37:01 +02:00
jenkins 68c0fad975 Merge PR #564: Expose Zigbee neighbor tables to jsonrpc 2022-10-25 02:36:57 +02:00
Michael Zanetti 7c7955b66b Rework air quliaty interfaces
Removes the indoorairquality and airquality interfaces as the
plugin isn't the right place for these sort of voncersion.
Instead, this PR specifies the individual compounds that
for the base for air quality measurements and ties them down
to export raw data.

It's the client apps responsibility to translate those values
into Air Quality Index scales based on the location of user. I.e.
while Europe would use the CAQI (Common Air Quality Index), the
US would use the EPA AQI etc.
2022-10-17 23:00:39 +02:00
Michael Zanetti 22e75b08df Add Thing and Things types to script engine 2022-10-13 15:18:06 +02:00
Michael Zanetti b4eca2a94f Add API to interact with ZigBee bindings 2022-10-13 11:05:04 +02:00
Michael Zanetti 1fc4c7f2d7 Expose Zigbee neighbor and routing tables to jsonrpc 2022-10-13 10:59:24 +02:00
Michael Zanetti baab4ed8c6 Add API to configure the wired network 2022-10-06 13:41:30 +02:00
Simon Stürz 41a5d2caf0 nymea testbase: remove extern plugin info from testlib header 2022-10-03 15:17:29 +02:00
Michael Zanetti 327fba5797 Fix creating rules without giving action params that have a default value 2022-09-07 20:25:33 +02:00
jenkins f3b9441861 Merge PR #549: Add support for Z-Wave 2022-08-26 12:57:56 +02:00
jenkins c4ea75a809 Merge PR #540: Provide experience manager access in core instance 2022-08-26 12:57:45 +02:00
Michael Zanetti a8b02a4869 Add support for Z-Wave 2022-08-26 00:28:56 +02:00
Simon Stürz 3e1e7b5a01 Update nymea-tests and provide libnymea-tests as development package 2022-08-05 15:33:18 +02:00
Michael Zanetti c004c0d81d Make thingclassId optional in AddThing() when there's already a ThingDescriptor 2022-07-28 19:55:32 +02:00
Michael Zanetti f6da6d47a9 Properly use pkgconfig to find nymea-mqtt 2022-05-31 17:19:33 +02:00
jenkins 8a3f85ca25 Merge PR #518: Fix webserver tests 2022-05-03 23:27:15 +02:00
Simon Stürz e4ff2d9422 Update mac address test naming 2022-04-25 08:06:17 +02:00
Michael Zanetti 192bdac209 Fix webserver tests
canonicalFilePath() behavior seems to have changed at some point
and not existing files outside the public dir will return a 404
rather than a 403. Ideally the logic would be fixed to first
check for the file being outside the public directory, directly
returning a 403, then checking if the file exists, return a 404
if not, and lastly check for permissions on the file and return
a 403 again of denied. However, that would result in a bigger
change.

Also, the tests were failing all along if syslog exists but is
not readable (code is ok, just bad test) but none of our
autotesters seemed to have such a setup till now.
2022-04-23 00:23:21 +02:00
Simon Stürz c59185672f Add mac address class and unit tests
Finish updated network discovery
Improve ARP and monitor handling
Introduce network device info cache housekeeping
2022-04-13 11:08:29 +02:00
Jenkins nymea 20956525b3 Merge PR #498: Add discoveryType thing class property 2022-03-27 19:49:35 +02:00