Actually, that fix doesn’t help. I can reproduce this error, but it goes away if I revert to an earlier version of AltUI. I don’t think this is an openLuup problem, so I’ve asked @amg0 to take a look.
Edit: AltUI build 979 works OK, but build 980 does not. So 979 is the one to go for, for the time being.
[quote=“akbooer”]Actually, that fix doesn’t help. I can reproduce this error, but it goes away if I revert to an earlier version of AltUI. I don’t think this is an openLuup problem, so I’ve asked @amg0 to take a look.
Edit: AltUI build 979 works OK, but build 980 does not. So 979 is the one to go for, for the time being.
[quote=“akbooer”]Actually, that fix doesn’t help. I can reproduce this error, but it goes away if I revert to an earlier version of AltUI. I don’t think this is an openLuup problem, so I’ve asked @amg0 to take a look.
Edit: AltUI build 979 works OK, but build 980 does not. So 979 is the one to go for, for the time being.
Looks like amg0 released a fix for the Sonos. I can confirm that I can easily add another device now but unfortunately having more than 1 Sonos in the mix causes both to become unresponsive. Remove the second and all is well. I can’t do much right now and this is all I can provide in the way of logs (AltUI non-debug log)… Right now my test box is busy tracing down another problem. I’ll enable debug tonight and re-add the speaker…
And as promised, more data in hopes of isolating the Sonos problem.
Steps leading to issue:
[1] I already have a Play3 loaded and it’s working (music).
[2] Run Lua
do
local sonos = luup.create_device (‘’, “Sonos”, “Sonos”, “D_Sonos1.xml”)
luup.ip_set (“10.0.4.22”, sonos)
end
[3] Inspect device and attempt to play music on device 50 (Play1). No operation.
[4] Attempt to play music on device 37 (Play3). No operation.
[5] Delete device 50. Reload engine.
[6] Attempt to play music on device 37. Works.
AltUI v1.01.1076, ? 2015 amg0
Google Chrome Version 47.0.2526.106 m
2016-01-06 08:19:05.558 :: openLuup STARTUP ::
2016-01-06 08:19:05.558 openLuup.init:: version 2015.11.27 @akbooer
2016-01-06 08:19:05.570 openLuup.scheduler:: version 2015.11.27 @akbooer
2016-01-06 08:19:05.570 openLuup.server:: version 2015.12.05 @akbooer
2016-01-06 08:19:05.572 openLuup.plugins:: version 2015.11.06 @akbooer
2016-01-06 08:19:05.574 openLuup.scenes:: version 2015.11.12 @akbooer
2016-01-06 08:19:05.576 openLuup.chdev:: version 2015.11.09 @akbooer
2016-01-06 08:19:05.577 openLuup.io:: version 2015.10.15 @akbooer
2016-01-06 08:19:05.577 openLuup.luup:0: version 2015.11.16 @akbooer
2016-01-06 08:19:05.580 openLuup.rooms:: version 2015.10.15 @akbooer
2016-01-06 08:19:05.581 openLuup.requests:: version 2015.11.09 @akbooer
Does anybody have any idea why I cant see sonos as a device in homewave from openluup??
I have added the devices in my startup.lua and they seem to be working ok except i cant see them in homewave.
If i manually create the device from the ALtUI … Then they show up in homewave but i am unable to set the ip if i do it that way.
Also any device i manually create gets deleted when i reboot as it is not in my statup.lua
I’ve never tried looking for Sonos in Homewave - I’ll take a look!
I have added the devices in my startup.lua and they seem to be working ok except i cant see them in homewave.
If i manually create the device from the ALtUI .. Then they show up in homewave but i am unable to set the ip if i do it that way.
That doesn’t make much sense to me… in the end the same code is creating the device. Why can’t you set the IP? Just use:
luup.ip_set ("1.2.3.4", devNo)
or, set it from AltUI… you may need to reload to see the change.
Also any device i manually create gets deleted when i reboot as it is not in my statup.lua
You should not be running a startup.lua every time you reboot. Simply invoke ./openLuup_reload without any parameter and it will pick up the last user_data.json file and you should be up and running where you left off.
You should not be running a startup.lua every time you reboot. Simply invoke ./openLuup_reload without any parameter and it will pick up the last user_data.json file and you should be up and running where you left off.
Oh ok I have been reloading using openLuup_reload startup.lua as I thought it needed the startup.lua everytime.
That had me confused.
So is the startup.lua only run the very first time?
And also what is the best practice to load plugins?
Should they be put in startup.lua or just create the device manually?
That doesn't make much sense to me... in the end the same code is creating the device. Why can't you set the IP? Just use:
Code: [Select]
luup.ip_set ("1.2.3.4", devNo)
or, set it from AltUI... you may need to reload to see the change.
I have managed to get the ip set but am having problems with the plugin… I can press play and stop but cannot choose playlist or song ?
[quote=“JCH, post:150, topic:189395”]I have been reloading using openLuup_reload startup.lua as I thought it needed the startup.lua everytime.
That had me confused.
So is the startup.lua only run the very first time?[/quote]
Sorry it wasn’t clear. The openLuup_reload loop internally just picks up the last user_data.json file. The only reason you need a parameter is either for a factory reset, or to configure a new system with a startup.lua file from scratch. So, yes, startup.lua for the first time, although read on…
And also what is the best practice to load plugins?
Should they be put in startup.lua or just create the device manually?
I always recommend that you keep an up-to-date startup.lua file which reflects any additions you may have made manually. This just makes it so easy to rebuild from scratch - not that you ever really have to do that. It would only be in the case of having royally screwed up your current configuration by hacking the user_data.json file or something equally dreadful. If you do start from scratch you will lose any scene definitions - I have yet to provide an automated solution for that, although it’s not too hard to add back manually from a backup.
I have managed to get the ip set but am having problems with the plugin... I can press play and stop but cannot choose playlist or song ?
Can you elaborate on the symptoms? Is there anything in the log that’s relevant?