JohnSwenson;557427 Wrote: 
> 
> So what needs to be done to make things better? It seems that when
> running TinySBS and an internet connection is available the Touch
> should be updating its system time from an externat time server at
> least once a day. Since MySB is also an ntp server there should be no
> need to actually connect to the MySB SBS as a library, but just connect
> to the ntp server to get to the time. This should be completely
> transparent. 

I think we need a model that does not depend on NTP. There are enough
folks out there with very restrictive firewalls that we should try to
stick with SlimProto and Cometd if that's viable.

Currently Touch appears to attempt a Comet date command every hour. One
problem is that the Comet code in SqueezePlay does not allow specifying
which server to send a Comet request to -- it seems to always query the
current Music Source / master SBS/MySB instance, which is no good if
you're using TinySC. So here's my simplistic proposal:

Add code to SBS (not Squeezeplay!) so that if SBS is running on Touch
(i.e. if it is TinySC) *and* it appears that msntp is not in use (see
if the drift file has been accessed recently?), it will periodically
use async HTTP requests to MySB to get the date & update the clock on
Touch. 

Anyone concerned about privacy or network usage can configure msntp.
For everyone else running TinySC, their system would ping MySB one time
each hour. If you had 1 Touch and 4 Radios, with Touch serving as the
music source, the Touch would make one request to MySB hourly, and
Touch's clock would be used to keep the Radio clocks updated.

This would not handle the use case of TinySC without an Internet
connection; for that I'd suggest a 3rd-party applet for maintaining
something like a drift file. (IIRC, the packaging for Touch says a
broadband Internet connection is required.) Have a simple UI that tells
the applet how many seconds to add or subtract each day (week?). Let the
applet calculate the frequency of a 1 second drift and adjust the clock
in 1 second increments at the appropriate interval.


-- 
peterw

http://www.tux.org/~peterw/ 
Free plugins:  'AllQuiet'
(http://www.tux.org/~peterw/slim/AllQuiet.html) 'Auto Dim/AutoDisplay'
(http://www.tux.org/~peterw/slim/AutoDisplay.html) 'BlankSaver'
(http://www.tux.org/~peterw/slim/BlankSaver.html) 'ContextMenu'
(http://www.tux.org/~peterw/slim/ContextMenu.html) 'DenonSerial'
(http://www.tux.org/~peterw/slim/DenonSerial.html)
'FuzzyTime' (http://www.tux.org/~peterw/slim/FuzzyTime.html) 'KidsPlay'
(http://www.tux.org/~peterw/slim/KidsPlay.html) 'KitchenTimer'
(http://www.tux.org/~peterw/slim/KitchenTimer.html) 'PlayLog'
(http://www.tux.org/~peterw/slim/PlayLog.html)
'PowerCenter/BottleRocket'
(http://www.tux.org/~peterw/slim/PowerCenter.html) 'SaverSwitcher'
(http://www.tux.org/~peterw/slim/SaverSwitcher.html)
'SettingsManager'
(http://www.tux.org/~peterw/slim/SettingsManager.html) 'SleepFade'
(http://www.tux.org/~peterw/slim/SleepFade.html) 'StatusFirst'
(http://www.tux.org/~peterw/slim/StatusFirst.html) 'SyncOptions'
(http://www.tux.org/~peterw/slim/SyncOptions.html) 'VolumeLock'
(http://www.tux.org/~peterw/slim/VolumeLock.html)
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=79894

_______________________________________________
Touch mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/touch

Reply via email to