Hi,leecollings wrote:Can you give some advice or assistance please? Running v3.7613 Beta
if you are using prebuilt beta binary tarballs, they are compiled without Python suport - from v3.7602 hash f39f21d.
viewtopic.php?f=6&t=17778#p136671
Moderator: leecollings
Hi,leecollings wrote:Can you give some advice or assistance please? Running v3.7613 Beta
Code: Select all
CMake Error: The source directory "/home/pi" does not appear to contain CMakeLists.txt
Any chance on an update so it works again with the newest beta of Domoticz ?G3rard wrote:There were some huge changes in the Python framework in the last beta releases. I believe the plugins are currently not working in the latest version, but I guess it will be fixed soon.
Yes that would be great! I am using the plugin to swithc my receiver, and this stopped working after the recent updates.\bdormael wrote:Any chance on an update so it works again with the newest beta of Domoticz ?G3rard wrote:There were some huge changes in the Python framework in the last beta releases. I believe the plugins are currently not working in the latest version, but I guess it will be fixed soon.
Code: Select all
self.SonosConn = Domoticz.Connection(Name="Sonos", Transport="TCP/IP", Protocol="JSON", Address=Parameters["Address"])
self.SonosConn.connect()
self.SonosConn.Send(...)
I had an look at this today and it requires quite some work to get this back working.mvzut wrote:Yes that would be great! I am using the plugin to swithc my receiver, and this stopped working after the recent updates.\bdormael wrote:Any chance on an update so it works again with the newest beta of Domoticz ?G3rard wrote:There were some huge changes in the Python framework in the last beta releases. I believe the plugins are currently not working in the latest version, but I guess it will be fixed soon.
I have been looking into the code myself a bit. I'm not an experienced programmer, but I think I understand just enough to see that the connection part has to be rewritten. It is now using a custom sendMessage function, which uses a http.client.HTTPConnection method to connect to the Sonos players. This should probably be changed into something likeWhen I have time I may give it a go, but success not guaranteed.Code: Select all
self.SonosConn = Domoticz.Connection(Name="Sonos", Transport="TCP/IP", Protocol="JSON", Address=Parameters["Address"]) self.SonosConn.connect() self.SonosConn.Send(...)
Tester 22, are you still using the plugin yourself? Would you consider making rhe necessary changes?
Would be great if you can have a look! I'm sure you'll make quite a few people happy if you can get it back to work. Thanks for your help!tester22 wrote:I had an look at this today and it requires quite some work to get this back working.
This was one of the first plugins written and there have been some added functionality to the framework since this was built that would be good to implement.
I am note sure when this can be done but will have an look this weekend.
Apart from that domoticz beta seems a bit unstable since it is crashing once every hour even if no plugins are installed.
Ok, actually had some time today so I have pushed an version to github.mvzut wrote:Would be great if you can have a look! I'm sure you'll make quite a few people happy if you can get it back to work. Thanks for your help!tester22 wrote:I had an look at this today and it requires quite some work to get this back working.
This was one of the first plugins written and there have been some added functionality to the framework since this was built that would be good to implement.
I am note sure when this can be done but will have an look this weekend.
Apart from that domoticz beta seems a bit unstable since it is crashing once every hour even if no plugins are installed.
By the way, I don't experience the instability issues you are mentioning?! Maybe you can try disabling some hardware to see if one of those is causing the problem.
Great! I'll give it a go tonight. Unfortunately, I do also need the possibility to read the state. I was using this to switch an amplifier on and off for my Sonos Connect. I hope you find a solution to the segfault issue...tester22 wrote:Ok, actually had some time today so I have pushed an version to github.mvzut wrote:Would be great if you can have a look! I'm sure you'll make quite a few people happy if you can get it back to work. Thanks for your help!tester22 wrote:I had an look at this today and it requires quite some work to get this back working.
This was one of the first plugins written and there have been some added functionality to the framework since this was built that would be good to implement.
I am note sure when this can be done but will have an look this weekend.
Apart from that domoticz beta seems a bit unstable since it is crashing once every hour even if no plugins are installed.
By the way, I don't experience the instability issues you are mentioning?! Maybe you can try disabling some hardware to see if one of those is causing the problem.
Unfortuanly this version can't read the state of the players (the xml parsing is whats causing the plugin to segfault) but it is possible to controle players.
BUT it won't be possible to get player state with this version!
Managed to get the built in xml parser to work.mvzut wrote:Great! I'll give it a go tonight. Unfortunately, I do also need the possibility to read the state. I was using this to switch an amplifier on and off for my Sonos Connect. I hope you find a solution to the segfault issue...tester22 wrote:Ok, actually had some time today so I have pushed an version to github.mvzut wrote:
Would be great if you can have a look! I'm sure you'll make quite a few people happy if you can get it back to work. Thanks for your help!
By the way, I don't experience the instability issues you are mentioning?! Maybe you can try disabling some hardware to see if one of those is causing the problem.
Unfortuanly this version can't read the state of the players (the xml parsing is whats causing the plugin to segfault) but it is possible to controle players.
BUT it won't be possible to get player state with this version!
UPDATE: The new version works! Indeed only for controlling.
Works, thanks! You say that (only) radio stations are not shown, but when I play something from a streaming service like Spotify it also doesn't show the title.tester22 wrote:Managed to get the built in xml parser to work.
Currently only player state and title.
Volume and mute is not loaded nor radio stations.
Hmmm, looks like I was too optimistic, Domoticz froze after a few minutes. Can't seem to get it running stable. Is it working reliable at your side?mvzut wrote:Works, thanks! You say that (only) radio stations are not shown, but when I play something from a streaming service like Spotify it also doesn't show the title.tester22 wrote:Managed to get the built in xml parser to work.
Currently only player state and title.
Volume and mute is not loaded nor radio stations.
For me the beta have been crashing every 2 hours.mvzut wrote:Hmmm, looks like I was too optimistic, Domoticz froze after a few minutes. Can't seem to get it running stable. Is it working reliable at your side?mvzut wrote:Works, thanks! You say that (only) radio stations are not shown, but when I play something from a streaming service like Spotify it also doesn't show the title.tester22 wrote:Managed to get the built in xml parser to work.
Currently only player state and title.
Volume and mute is not loaded nor radio stations.
To be honnest I have no idea how to solve it.rathmannm wrote:Hi,
I am still having an issue with the plugin which prevents Domoticz from startin. I am running the latest beta 3.8005 and updated the Sonos plugin from Github but this is what I get in the log:
2017-06-23 13:23:10.912 Error: Domoticz received fatal signal 11 !...
2017-06-23 13:23:10.913 Error: Domoticz received fatal signal 11 while backtracing !...
....
2017-06-23 13:23:10.920 Error: /home/pi/domoticz/domoticz() [0x1ccd84]
2017-06-23 13:23:10.920 Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1cce3c]
2017-06-23 13:23:10.920 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76a8f180]
Any idea on how to rectify this or do I have to wait for the plugin to be updated?
Cheers,
Manuel
Code: Select all
2017-06-24 08:44:26.347 Error: (Sonos) failed to load 'plugin.py', Python Path used was ':/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-06-24 08:44:26.347 Error: (Sonos Livingroom) Module Import failed, exception: 'ImportError'
2017-06-24 08:44:26.348 Error: (Sonos Livingroom) Module Import failed: ' Name: plugin'
2017-06-24 08:44:26.525 Error: (Sonos) failed to load 'plugin.py', Python Path used was ':/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-06-24 08:44:26.526 Error: (Sonos Kitchen) Module Import failed, exception: 'ImportError'
2017-06-24 08:44:26.526 Error: (Sonos Kitchen) Module Import failed: ' Name: plugin'
Users browsing this forum: No registered users and 0 guests