53 Commits

Author SHA1 Message Date
Simon Stürz
4d170061fd Update license text and add SPDX identifier 2025-11-17 16:42:41 +01:00
Simon Stürz
42def79a54 Update python init depending on the py version 2025-09-11 10:09:56 +02:00
Simon Stürz
d71ce85f12 Fix interface allowed values loading and debug cathegories for thing and thing manager 2025-09-11 10:09:56 +02:00
Michael Zanetti
4e509841b0 Rework the log engine to use influxdb instead of sql 2023-05-08 23:38:34 +02:00
Michael Zanetti
a7e1ffca1f Make init call for python plugins blocking
We don't want to run setupThing() before init() is completed.
This also matches with how C++ plugins work.

Fixes #598
2022-11-09 15:12:18 +01:00
Michael Zanetti
fc8c9df40e Fix a python plugin crash when trying to login with empty credentials 2022-08-07 12:29:48 +02:00
jenkins
1a06fabda2 Merge PR #507: Add support for datetime objects to pluginStorage in python plugins 2022-05-03 23:27:03 +02:00
Michael Zanetti
b77b9a7bb6 Add support for datetime objects to pluginStorage in python plugins 2022-03-22 10:48:58 +01:00
Michael Zanetti
2596eb46b6 Fix cleaning up things when a setup fails in python plugins 2022-02-06 19:47:44 +01:00
Michael Zanetti
74029c94a6 Fix a double-free when shutting down the python engine.
Python_AddObject() will steal the reference and delete it. Since we
deleted m_logger ourselves too, a double free would corrupt memory
on nymea shutdown.
This would cause tests to crash when restarting the core within
a single process by restartServer()
2021-12-09 13:28:14 +01:00
Michael Zanetti
0e916ebbf7 Fix myCount() not being updated before thingRemoved in python plugins 2021-08-25 00:57:08 +02:00
Michael Zanetti
2b9b8cf725 Fix a threading related crash in python plugin param handling 2021-05-11 16:34:36 +02:00
Jenkins nymea
e43af9a49d Merge PR #411: Add parentId member to pyThingDescriptor 2021-04-19 11:38:31 +02:00
Jenkins nymea
07327b8bb4 Merge PR #406: Add browsing support to python plugin API 2021-04-19 11:38:27 +02:00
Jenkins nymea
d35765cb72 Merge PR #404: Clean up PyStdoutHandler on shutdown 2021-04-19 11:38:25 +02:00
Michael Zanetti
8887e13d2e Add parentId member to pyThingDescriptor 2021-04-08 00:57:35 +02:00
Michael Zanetti
e6780d947d Add support for browsing in the python plugin api 2021-04-06 23:56:31 +02:00
Michael Zanetti
193c647dc6 Also add api key storage api to python 2021-03-14 20:41:30 +01:00
Michael Zanetti
317467a05b Clean up PyStdoutHandler on shutdown 2021-03-14 20:20:59 +01:00
Michael Zanetti
9d30be2568 Add support for the plugin storage to python plugins 2021-03-08 00:47:12 +01:00
Michael Zanetti
3f0321f195 Don't crash when a python plugin fails to load 2021-01-09 11:38:26 +01:00
Michael Zanetti
befda2ec00 Revert back to qDebug, we're not ready for qInfo yet 2020-10-15 22:34:06 +02:00
Michael Zanetti
8aa2feb7c6 Make python plugins appear in the logging categories list 2020-10-15 22:34:06 +02:00
Michael Zanetti
15eead0976 Properly catch stdout and stderr and redirect it to qmessagelogger 2020-10-15 22:34:06 +02:00
Michael Zanetti
9f49187dc1 Fix tests and xenial build 2020-10-15 22:34:06 +02:00
Michael Zanetti
16c4fa3345 fix issues in teardown. 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
fdbdb02c16 Make it compatible with python 3.5 2020-10-15 22:34:06 +02:00
Michael Zanetti
be01d4c802 Restrict import paths to not use random python libs in the system 2020-10-15 22:34:06 +02:00
Michael Zanetti
75f4877f82 add settingChangedHandler, fix some issues, cleanup some warnings 2020-10-15 22:34:06 +02:00
Michael Zanetti
3436e9b998 drop usage of asyncio and run everything regularly threaded 2020-10-15 22:34:06 +02:00
Michael Zanetti
64e7d2784c checkpoint asyncio 2020-10-15 22:34:06 +02:00
Michael Zanetti
78e37f0d87 Fix shutdown 2020-10-15 22:34:06 +02:00
Michael Zanetti
b870140608 Add tests, fix shutdown 2020-10-15 22:34:06 +02:00
Michael Zanetti
746f3e4121 fix actions cleanup 2020-10-15 22:34:06 +02:00
Michael Zanetti
f132c6b006 some 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
1ce5d5980d some fixes 2020-10-15 22:34:06 +02:00
Michael Zanetti
8aa91292fe 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
f97e5bf4d0 more work 2020-10-15 22:34:06 +02:00
Michael Zanetti
59c1c8e9f2 some more work 2020-10-15 22:34:06 +02:00
Michael Zanetti
68e9c82758 run a thread for each call 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
13d10b8aa0 some more python plugin work 2020-10-15 22:34:06 +02:00
Michael Zanetti
31cf425b79 intermediate 2020-10-15 22:34:06 +02:00
Michael Zanetti
a2e6d9e185 Add an event loop 2020-10-15 22:34:06 +02:00