Loading...

plugins@lists.slimdevices.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [SlimDevices: Plugins] SqueezeIR Support Thread maf Tue Feb 14 02:01:00 2012

------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=79524
------------------------------------------------------------------------
Question: Are you interested in IR-over-IP?
    
- Yes, I'd like to have IRoIP.
- No, I don't care.
------------------------------------------------------------------------

I managed to maneuver SqueezeIR 1.11 into a state that wouldn't allow me
to access any of its two menus. As far as I can tell, I achieved that
by
- uploading a broken SqueezeIR.xml (it contained an invalid menu ID),
- trying to upload that configuration again when I didn't get the
expected result screen, and
- clearing the cache.
By now I know that the second upload probably didn't do anything
because the value mlngConfigStatus was still at 2, preventing further
uploads.

In the controller's log I found after a restart:

Code:
--------------------
    Feb 13 08:53:33 squeezeplay: INFO   squeezeplay.applets - 
AppletMeta.lua:146 entering SqueezeIR
  Feb 13 08:53:33 squeezeplay: INFO   applet.SqueezeIR - 
SqueezeIRApplet.lua:1691 *****************  SqueezeIR v1.11 (09 February 2011) 
Configuration begun.  Timestamp='Mon Feb 13 08:53:33 2012'.  *****************
  Feb 13 08:53:33 squeezeplay: INFO   applet.SqueezeIR - 
SqueezeIRApplet.lua:1692 Attempting to read configuration from local cache...
  Feb 13 08:53:33 squeezeplay: INFO   squeezeplay.applets - 
AppletManager.lua:708 store settings: SqueezeIR
  Feb 13 08:53:33 squeezeplay: WARN   applet.SqueezeIR - 
SqueezeIRApplet.lua:1715 WARN: Cached copy of 'SqueezeIR.xml' is not available.
  Feb 13 08:53:33 squeezeplay: WARN   applet.SqueezeIR - 
SqueezeIRApplet.lua:930 ERROR: Configuration failed to load.
  Feb 13 08:53:33 squeezeplay: INFO   squeezeplay.applets - 
AppletManager.lua:708 store settings: SqueezeIR
  Feb 13 08:53:33 squeezeplay: INFO   applet.SqueezeIR - 
SqueezeIRApplet.lua:992 Loading User Settings...
  Feb 13 08:53:33 squeezeplay: INFO   applet.SqueezeIR - 
SqueezeIRApplet.lua:998 User Settings loaded. ButtonsEnabled='TRUE'; 
DefaultProfile='WOHNZIMMER'; UsePlayerProfiles='TRUE'; UseIRoIP='TRUE'.
  Feb 13 08:53:33 squeezeplay: INFO   applet.SqueezeIR - 
SqueezeIRApplet.lua:1002 *****************  SqueezeIR Configuration Completed.  
Result=1 (Nicht gestartet).  *****************
  Feb 13 08:53:33 squeezeplay: ERROR  squeezeplay.applets - 
AppletManager.lua:518 Error while evaluating applet 
SqueezeIR:...usr/share/jive/applets/SqueezeIR/SqueezeIRApplet.lua:1007: attempt 
to index field 'IROIP' (a nil value)
  Feb 13 08:53:33 squeezeplay: stack traceback:
  Feb 13 08:53:33 squeezeplay:    /usr/share/jive/jive/AppletManager.lua:518: 
in function '_pevalApplet'
  Feb 13 08:53:33 squeezeplay:    /usr/share/jive/jive/AppletManager.lua:560: 
in function 'loadApplet'
  Feb 13 08:53:33 squeezeplay:    /usr/share/jive/jive/AppletMeta.lua:150: in 
function 'callback'
  Feb 13 08:53:33 squeezeplay:    /usr/share/jive/jive/ui/SimpleMenu.lua:189: 
in function 'itemListener'
  Feb 13 08:53:33 squeezeplay:    /usr/share/jive/jive/ui/Menu.lua:154: in func
--------------------


My fix was to modify FinishConfig in SqueezeIRApplet.lua on the
controller:

Code:
--------------------
    
  if mstrUseIRoIP == "TRUE" then
  if mobjIRoIPServer == nil and mtblData["IROIP"] ~= nil then
  mobjIRoIPServer = socket.bind("*", mtblData["IROIP"]["PORT"])
  end
  
  if mobjIRoIPServer ~= nil then
  mtmrIRoIP:restart(IR_OVER_IP_INTERVAL)
  end
  end
  
--------------------

After a restart, the SqueezeIR menus were available again and I
successfully uploaded a fixed configuration.

It seems to me, initially SqueezeIR had been stuck in mlngConfigStatus
2, preventing the upload of a configuration. And an invalid cached
configuration prevented menu access and subsequently configuration
upload after a restart. Is there any way short of restarting the
receiver to get back to mlngConfigStatus 1?


-- 
maf
------------------------------------------------------------------------
maf's Profile: http://forums.slimdevices.com/member.php?userid=30870
View this thread: http://forums.slimdevices.com/showthread.php?t=79524

_______________________________________________
plugins mailing list
[EMAIL PROTECTED]
http://lists.slimdevices.com/mailman/listinfo/plugins