356 Commits

Author SHA1 Message Date
Michael Zanetti
0f262116b6 implement node js bridge, mostly working, some issues still 2019-04-02 01:02:45 +02:00
Michael Zanetti
de40dbd55f cache supported devices map instead of re-parsing it all the time 2019-04-02 01:02:45 +02:00
Simon Stürz
225ff90c7d reenable debug output 2019-04-02 01:02:45 +02:00
Simon Stürz
1766cec6b6 clean up debug outputs 2019-04-02 01:02:45 +02:00
Simon Stürz
74397da6c1 add state/calendarItem/event tests 2019-04-02 01:02:45 +02:00
Michael Zanetti
87af2e1843 more interfaces 2019-04-02 01:02:45 +02:00
Michael Zanetti
d0231d5cdd some more work on interfaces 2019-04-02 01:02:45 +02:00
Michael Zanetti
7aa6ab2795 make it build in jessie again 2019-04-02 01:02:45 +02:00
Michael Zanetti
a22d220cb7 add interface for notifications, finish param checking implementation 2019-04-02 01:02:45 +02:00
Michael Zanetti
b0d707080b fix snappy settings file path 2019-04-02 01:02:45 +02:00
Simon Stürz
2d53d3dc83 fix houskeeping of ruleengine 2019-04-02 01:02:45 +02:00
Simon Stürz
d2bfd0e11f add default webinterface path for snap environment
fix settings path double slash
2019-04-02 01:02:45 +02:00
Simon Stürz
900f409485 add avahi colition handling 2019-04-02 01:02:45 +02:00
Michael Zanetti
ac0c035566 add some housekeeping 2019-04-02 01:02:45 +02:00
Michael Zanetti
daf8f4533f make the devicemanager save all the states (unless opted out in plugin.json) 2019-04-02 01:02:45 +02:00
Michael Zanetti
3b42d16777 prevent auto devices from being manually removed, allow plugins to remove them again 2019-04-02 01:02:45 +02:00
Michael Zanetti
921c13c656 add sslEnabled flags to avahi txt record, fix something in avahi :D 2019-04-02 01:02:45 +02:00
Simon Stürz
07e2b87665 prevent double shotdown 2019-04-02 01:02:45 +02:00
Michael Zanetti
4beb296439 autogenerate the "index" property to not bother the plugin developer with it 2019-04-02 01:02:45 +02:00
Michael Zanetti
1451ba9a46 fix crash if a JsonReply times out but we still get a result afterwards 2019-04-02 01:02:45 +02:00
Simon Stürz
028b21fcb8 fixing translation path for snap packages 2019-04-02 01:02:45 +02:00
Michael Zanetti
d74f208a30 fix broadcast of UPnP information
also fixes a Unexpected null receiver warning which might happen now
because of the timing of various deleteLater() calls on disconnect
2019-04-02 01:02:45 +02:00
Michael Zanetti
101ddc2331 read proper settings in upnpdiscovery 2019-04-02 01:02:45 +02:00
Michael Zanetti
66870dccfe add support for auto generated self-signed certificates for SSL encryption 2019-04-02 01:02:45 +02:00
Michael Zanetti
08727a07ba Added API authentication 2019-04-02 01:02:45 +02:00
Michael Zanetti
2677ad0afd fix some more paths 2019-04-02 01:02:45 +02:00
Michael Zanetti
1c35e6be59 drop todo which is actually done now 2019-04-02 01:02:45 +02:00
Michael Zanetti
4fc0ef01fa add a test 2019-04-02 01:02:45 +02:00
Michael Zanetti
f48a1d185b add docs for interfaces 2019-04-02 01:02:45 +02:00
Michael Zanetti
37f2e47ca5 make this static, not needed for every plugin 2019-04-02 01:02:45 +02:00
Michael Zanetti
ce3a21bd4e revert unneeded change 2019-04-02 01:02:45 +02:00
Michael Zanetti
85c96f6b4f revert change in devicemanager 2019-04-02 01:02:45 +02:00
Michael Zanetti
45caf66851 initial work on interfaces
have some interfaces defined and in use by DeviceManager and the API.
this can be used to build first prototypes in apps using the interfaces
stuff. Currently the lights interfaces are mostly defined and fully
implemented by the Hue plugin.

TODO: more interfaces to be defined, make more plugins follow
interfaces.
TODO: tests for the interface code
TODO: docs for the interface code
2019-04-02 01:02:45 +02:00
Michael Zanetti
ce123f9352 emit a notification when a plugin config is changed
fixes #418
2019-04-02 01:02:45 +02:00
Michael Zanetti
ac179d0f70 fix avahi service browser destruction
without keeping track of the avahi service resolvers and
destroying them when the parent object goes away, callbacks
might be called after after the dhe destruction and passing
an invalid userdata pointer.
2019-04-02 01:02:45 +02:00
Michael Zanetti
98748e800d make logging optional 2019-04-02 01:02:45 +02:00
Michael Zanetti
3577f37e1e fix some docs typos 2019-04-02 01:02:45 +02:00
Michael Zanetti
4355be5b4b some improvements for developing plugins 2019-04-02 01:02:45 +02:00
Simon Stürz
2e4b02099b update license headers 2019-04-02 01:02:21 +02:00
Simon Stürz
e05ef20c97 update copyright 2019-04-02 01:02:07 +02:00
Simon Stürz
9c8097919d update license header 2019-04-02 01:02:06 +02:00
Simon Stürz
7cfd7bf293 fixed issue #410
fixed issue #405
2019-04-02 01:01:32 +02:00
Simon Stürz
a64441bdf5 fix plugin path for snap 2019-04-02 01:01:32 +02:00
Simon Stürz
1ce508f665 add arch triplet to lib and plugins 2019-04-02 01:01:32 +02:00
Simon Stürz
51a4dda185 translations installation path 2019-04-02 01:01:32 +02:00
Simon Stürz
24c48e8af3 Add gpio plugin with raspberry pi 2 support 2019-04-02 01:01:32 +02:00
Simon Stürz
cb982ac4f1 final fix for gpio 2019-04-02 01:01:32 +02:00
Simon Stürz
78306cf751 fix GPIO class 2019-04-02 01:01:32 +02:00
Simon Stürz
68d0ed1b34 update source documentation 2019-04-02 01:01:32 +02:00
Simon Stürz
642b5c8331 basic networkmanager functionality 2019-04-02 01:01:32 +02:00