
Originally Posted by
HTLuke

Originally Posted by
ewingr
Network issue in Andre
I find that sometimes, particularly when I have had the Tablet shutdown overnight, that when I launch Andre and try to use the WOL, it doesn't work. If I click one of the other buttons a couple times (doesn't happen when clicking the WOL button for some reason], I get a 'No Connection...check network' error. But the tablet is on the network and working fine.
Thanks for pointing this out, part of it is a flaw with the WOL implementation since I kinda tossed it in there quickly. Buttons which trigger web service communication calls ("serviceParams" Parameters) go through a fairly complex test to check if the device has a net connection and whether or not it can actually communicate with the server, and it tries to rectify this situation with retries and requests to the OS to reconnect the WiFi. When this happens, you see the No Connection warning. WOL doesn't go through this which means it probably is trying once to send the packet and fails silently. I will add replicating the improved logic to the WOL stuff to my list of to-dos.
There also may be some quirkiness still around various devices/OS versions different implementation of WiFi sleep policies. I noticed several custom ROMs behave very oddly and don't reliably re-enable WiFi all the way once the sleep policy has kicked in. I'm still looking at how best to bullet-proof this. There is a checkbox in the settings which turns on an 'aggressive' restart of WiFi, which basically, if critical comm failure happens, turns off all WiFi and re-enables it. But this is experimental, and I've not tweaked it in awhile so it may be more problematic than good.
BTW I'm replying to this somewhat as I read them and I know rkirmeier and perhaps others are responding so I may be saying stuff that people have already answered further down the thread; if so, ignore my reply and accept my appologies for being so far behind.

FYI>..I still find that the WOL is not working if Andre has been unloaded after the PC was put to sleep.
In working around the WOL issue, I have an app that will create a widget which I can call with a widget container. Now I would like to call that from another button and not having luck. Here is the code for the widget button, which is working when I directly push it:
Code:
<ButtonGroup id="btngrp_wolwidget" margins="20,235,0,0">
<Button id="btn_wid_wol">
<Locale id="default">
<Parameter name="imageUrl">/buttons/blue.png</Parameter>
<Parameter name="buttonTintColor" action="touch">FFa09d9d</Parameter>
<Parameter name="buttonTintColor" action="display,release">FFFFFFFF</Parameter>
<Parameter name="inactiveElement">true</Parameter>
</Locale>
</Button>
<WidgetContainer id="wid_WOL" alignParentCenter="true" width="140" height="70"/>
</ButtonGroup>
And here is the code I am trying to call it with from another button:
Code:
<Button id="btn_UpstairsMacro" alighRightOf="btn_wid_wol" margins="170,235,0,0">
<Locale id="default">
<Parameter name="imageUrl">/buttons/Blue.png</Parameter>
<Parameter name="buttonLabel">Music Upstairs</Parameter>
<Parameter name="triggerButton">pg_HTPC|btn_wid_wol|touch</Parameter>
<Parameter name="startTimer">MusicUpTimer</Parameter>
</Locale>
</Button>
Any thoughts?