We have moved at community.getvera.com

Author Topic: openLuup: AV plugins  (Read 32666 times)

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #15 on: November 08, 2015, 02:11:53 pm »
Well that seems to have fixed the help tab, but the player tab is a bit ill..

Edit: Looking at my test system, the help tab worked. So the help file working was more the result of my copying it from test to production. Adding a new Sonos to my production system failed and oddly enough I noticed this.

Ah, I think I may know what that might be.  Can you set the MAC address to a space rather than nothing?
« Last Edit: November 08, 2015, 02:30:37 pm by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #16 on: November 08, 2015, 02:16:08 pm »
I actually tried to set it to the actual mac and it didn't save. Correction, it just doesn't show in the Attributes but rather the Variables...
« Last Edit: November 08, 2015, 02:20:50 pm by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #17 on: November 08, 2015, 03:04:51 pm »
Added 5 speakers to my Raspberry Pi Ubuntu Mate system. No issues. Even grouped they work perfect.
Copied over the user_data.json file to the Ubuntu Server.

I can't imagine why these systems act so different....

Code: [Select]
2015-11-08 14:02:15.360   luup_log:36: Sonos: UPnP proxy event identified - API version
2015-11-08 14:02:15.586   openLuup.context_switch::  ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:15.586   luup.delay_callback:: function: 0x18f8ed0 ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:15.587   luup_log:37: Sonos: UPnP proxy event identified - API version
2015-11-08 14:02:15.781   openLuup.context_switch::  ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:15.781   luup.delay_callback:: function: 0x1bf9640 ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:15.781   luup_log:38: Sonos: UPnP proxy event identified - API version
2015-11-08 14:02:17.265   openLuup.context_switch::  ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:17.266   luup.delay_callback:: function: 0x1896720 ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:17.266   luup_log:39: Sonos: UPnP proxy event identified - API version
2015-11-08 14:02:17.465   openLuup.context_switch::  ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:17.465   luup.delay_callback:: function: 0x1bcc300 ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:17.465   luup_log:40: Sonos: UPnP proxy event identified - API version
2015-11-08 14:02:17.620   openLuup.context_switch::  ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
2015-11-08 14:02:17.620   luup.delay_callback:: function: 0x1d320c0 ERROR: ./L_Sonos1.lua:947: attempt to compare number with nil
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: openLuup: AV plugins
« Reply #18 on: November 08, 2015, 03:07:41 pm »
So, apparently, a system configuration problem.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #19 on: November 08, 2015, 03:21:25 pm »
Perhaps something got askew with testing at some point in time. Might have to level the Ubuntu Server and start from scratch. Seems to be something outside of the /cmh-ludl/ as I've copied the directories over from the Pi and it didn't help. Sigh !

So, apparently, a system configuration problem.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #20 on: November 08, 2015, 03:50:41 pm »
AND the leveling begins...
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: openLuup: AV plugins
« Reply #21 on: November 08, 2015, 05:11:35 pm »
Seems to be something outside of the /cmh-ludl/ as I've copied the directories over from the Pi and it didn't help. Sigh !

You do have /usr/bin/GetNetworkState.sh?  That's the major external dependency I know.  If you DO have it, did you force a fixed IP?  It won't then work on a different machine.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #22 on: November 08, 2015, 06:01:11 pm »
Yes, that was one of the first things I checked & re-checked. All my IP's are dhcp'd with reservations set at the firewall. So all should 'have' been good. I'll know soon if this resolved the issue....

Seems to be something outside of the /cmh-ludl/ as I've copied the directories over from the Pi and it didn't help. Sigh !

You do have /usr/bin/GetNetworkState.sh?  That's the major external dependency I know.  If you DO have it, did you force a fixed IP?  It won't then work on a different machine.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #23 on: November 08, 2015, 06:31:08 pm »
Apparently it has everything to do with Ubuntu Server, totally fresh install and the exact same symptoms. Ubuntu Mate has no issues other than the TTS (just so others know). On to plan B, move them back to Vera and use them in bridge mode.

openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: openLuup: AV plugins
« Reply #24 on: November 08, 2015, 06:47:03 pm »
So what's wrong with using RPi?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #25 on: November 09, 2015, 12:37:12 am »
Actually nothing, however I've quite enjoyed taking it with me to work for testing. Since the cost of these are so low, I could always get another one...
Having a hard time getting past this thing not working on the server, can't imagine what's happening.

So what's wrong with using RPi?
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #26 on: November 10, 2015, 10:42:37 pm »
@akbooer

OK, Chaos Calmer has Sonos working quite nicely... In testing the TTS again tonight I found it interesting...

Code: [Select]
rm: can't remove '/www/Say.7.mp3': No such file or directory
wget: server returned error: HTTP/1.1 403 Forbidden

And then I checked the URL and changed it from [http://10.0.3.11:8080/] to this  [http://10.0.3.11:8080]...
And then there was perfect speech...

Can you confirm on your end if this corrects anything. I do still see the message though...

Code: [Select]
rm: can't remove '/www/Say.7.mp3': No such file or directory
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup: AV plugins
« Reply #27 on: November 11, 2015, 01:00:10 am »
Hmm,

Well seems that was short lived..... Will try to get more detailed logs tomorrow, need sleep. Google Chrome console shows errors when opening a Sonos device and openLuup extensions. Seems if I mess with the Sonos TTS enough, I can make it work for a short period of time. So it seems there's hope if we can isolate the 'why'.

Code: [Select]
2015-11-10 23:51:07.745   openLuup.server:: /data_request?id=lu_action&output_format=xml&DeviceNum=7&serviceId=urn:micasaverde-com:serviceId:Sonos1&action=Say&Text=Hey%20You&Language=en&Engine=OSX_TTS_SERVER&Volume=22&GroupZones=&SameVolumeForAll=false tcp{client}: 0x1951878
2015-11-10 23:51:07.746   luup.call_action:: 7.urn:micasaverde-com:serviceId:Sonos1.Say
2015-11-10 23:51:07.907   openLuup.context_switch::  ERROR: [string "device_10"]:1413: bad argument #1 to 'find' (string expected, got nil)

@akbooer

OK, Chaos Calmer has Sonos working quite nicely... In testing the TTS again tonight I found it interesting...

Code: [Select]
rm: can't remove '/www/Say.7.mp3': No such file or directory
wget: server returned error: HTTP/1.1 403 Forbidden

And then I checked the URL and changed it from [http://10.0.3.11:8080/] to this  [http://10.0.3.11:8080]...
And then there was perfect speech...

Can you confirm on your end if this corrects anything. I do still see the message though...

Code: [Select]
rm: can't remove '/www/Say.7.mp3': No such file or directory
« Last Edit: November 11, 2015, 01:56:55 am by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: openLuup: AV plugins
« Reply #28 on: November 11, 2015, 02:52:42 am »
Very hard to debug with a full system And so little information.  What is device #10 in this case?  It looks like the Sonos is #7?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: openLuup: AV plugins
« Reply #29 on: November 11, 2015, 03:28:19 am »
And then I checked the URL and changed it from [http://10.0.3.11:8080/] to this  [http://10.0.3.11:8080]...
And then there was perfect speech...

Can you confirm on your end if this corrects anything. I do still see the message though...


Which URL would that be?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.