Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1

    Can I disable html call to opml.radiotime.com?

    Hi.

    One of my LMS (latest 7.9.1 nightly, macOS 10.12) has no internet connection. To make debugging easier and my log less cluttered, I would very much like to get rid of the error messages that complain (every couple of minutes or so) about timed out connection attempts:

    Code:
    Connect timed out: 
    [17-09-08 17:36:10.0633] Slim::Plugin::InternetRadio::Plugin::_gotRadioError (67) Unable to retrieve radio directory from SN: Connect timed out: 
    [17-09-08 17:37:05.0670] Slim::Formats::XML::gotErrorViaHTTP (310) Error: getting http://opml.radiotime.com/Index.aspx?partnerId=16
    If there is no option in the settings (I didn't find one), I'd gladly settle for a little hack or someting like this.
    Thank you.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,014

    Can I disable html call toopml.radiotime.com?

    > One of my LMS (latest 7.9.1 nightly, macOS 10.12) has no internet
    > connection. To make debugging easier and my log less cluttered, I would
    > very much like to get rid of the error messages that complain (every
    > couple of minutes or so) about timed out connection attempts:


    Don't use the Radios menu. Or accept those messages as another potential
    pointer to your issue? If you get an error complaining about connection
    time outs every few minutes, then you've got a networking issue.


    --

    Michael

  3. #3
    Quote Originally Posted by mherger View Post
    you've got a networking issue.
    Ok, what I meant was "has no internet connection" because it's by design, like a stand-alone setup, only LAN with a local server. I don't use the Radio Menu, was just curious if it's possible to disable what seems to be downloading a radio station list or something. I figured the error messages would go away then. Well, nevermind...

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,882
    A hack that might work you would be to edit the install.xml file in the plugin/InternetRadio directory. Change MaxVersion from "*" to 7.3, save and restart LMS. This will break loading of the InternetRadio plugin. I don't know whether LMS will work OK without the plugin as it seems to be one that cannot be disabled in the Plugins tab..

  5. #5
    Thank you very much, bpa. Really appreciate your help however stupid my little problem may seem. In the end I just disabled/commented most of the retry subfunction in the plugin.pm file. This way the plugin is not broken and it won't endlessly retry to connect to the internet in vain. Sure, I'll have to edit this file after every update. I'll just update less often then. So thank you very much.

  6. #6
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    2,711
    Quote Originally Posted by mherger View Post
    > One of my LMS (latest 7.9.1 nightly, macOS 10.12) has no internet
    > connection. To make debugging easier and my log less cluttered, I would
    > very much like to get rid of the error messages that complain (every
    > couple of minutes or so) about timed out connection attempts:


    Don't use the Radios menu. Or accept those messages as another potential
    pointer to your issue? If you get an error complaining about connection
    time outs every few minutes, then you've got a networking issue.


    --

    Michael
    I quite often deliberately run without any internet connection. However, with a connection (as far as I know) on starting LMS last night I saw a delay of 4 minutes waiting for LMS to start. The log was as below. It's as if LMS then went to sleep and was then 'woken' by my "server power control" plugin. This may be just a one-off. Any views?

    Code:
    [18-01-27 22:59:35.1598] Plugins::SrvrPowerCtrl::Settings::new (242) Server Power Control, version 20141101.163656, is running on LMS version 7.9.1 on unix:Debian, user squeezeboxserver  
    [18-01-27 23:00:19.7854] Slim::Formats::XML::gotErrorViaHTTP (338) Error: getting http://opml.radiotime.com/Index.aspx?partnerId=16
    Timed out waiting for data
    [18-01-27 23:00:19.7863] Slim::Plugin::InternetRadio::Plugin::_gotRadioError (67) Unable to retrieve radio directory from SN: Timed out waiting for data
    [18-01-27 23:04:41.5512] Plugins::SrvrPowerCtrl::Watchdog::OnWakeupWatchdog (651) Wakeup Call!!
    LMS 7.9.1 on VortexBox Midi box, Xubuntu 17.10, FLACs 16->24 bit, 44.1->192kbps. Touch & EDO. 2nd Touch standard.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 17.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    941
    Maybe a new --nointernet switch for LMS would be a good thing to have.
    Then various bit of code that cannot be disabled from Settings could check for that.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  8. #8
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    742
    A simple workaround would be to redirect the request to a local web server.

  9. #9
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    2,711
    Quote Originally Posted by Roland0 View Post
    A simple workaround would be to redirect the request to a local web server.
    It may be simple for those who understand such stuff well, but I wouldn't have a clue where to start :-)
    LMS 7.9.1 on VortexBox Midi box, Xubuntu 17.10, FLACs 16->24 bit, 44.1->192kbps. Touch & EDO. 2nd Touch standard.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 17.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

  10. #10
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    742
    Quote Originally Posted by PasTim View Post
    It may be simple for those who understand such stuff well, but I wouldn't have a clue where to start :-)
    Assuming the following:
    - web server will run on the same server as LMS
    - busybox is installed (it usually is)
    - files needed go into /home/user/www (can be any dir)
    Code:
    mkdir /home/user/www; cd /home/user/www
    wget -O Index.aspx "http://opml.radiotime.com/Index.aspx?partnerId=16"
    edit /home/user/www/httpd.conf
    Code:
    A:127.0.0.1
    D:*
    
    .aspx:text/xml
    edit /etc/hosts
    Code:
    127.0.0.1 opml.radiotime.com
    start server:
    Code:
    sudo busybox httpd -p 80 -h /home/user/www -c /home/user/www/httpd.conf
    Test without network:
    Code:
    wget "http://opml.radiotime.com/Index.aspx?partnerId=16"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •