Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-30 Thread PasTim

mherger wrote: 
> > Thanks.  Sorry to be so ignorant, but how do I run that with the
> patch
> > command (I've only ever run patch a few times in my life)?
> 
> Hehe... I would have to look it up myself... I'm using a graphical tool.
> 
> But it's only two lines anyway. Replace the 1 with a 0, and copy/paste 
> the other line to the corresponding file. :-)
> 
> -- 
> 
> Michael
Done, that works - thanks. I did look for the 'Internet Radio' plugin
before realising it was just 'Radio' :)



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.

PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-30 Thread Paul Webster

mherger wrote: 
> > 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.
> 
> --nointernet would be difficult to enforce, as we have little control 
> over eg. 3rd party plugins.

True - but the end-user could disable the plugin (or choose not to
install it if it was clear that it needed internet to function).

mherger wrote: 
> But right now the InternetRadio plugin is 
> enabled by default and can't be disabled. I think the right thing to do
> 
> would be allowing this plugin to be disabled. After all that's what's 
> causing your problem.

Yes - that would certainly fix it for this case.

mherger wrote: 
> In addition with --nomysqueezebox pretty much 
> every default internet activity would be disabled by this.

Yep.



Paul Webster
http://dabdig.blogspot.com

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-30 Thread Michael Herger

Thanks.  Sorry to be so ignorant, but how do I run that with the patch
command (I've only ever run patch a few times in my life)?


Hehe... I would have to look it up myself... I'm using a graphical tool. 
But it's only two lines anyway. Replace the 1 with a 0, and copy/paste 
the other line to the corresponding file. :-)


--

Michael
___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-30 Thread PasTim

mherger wrote: 
> If you want to give this a try, then edit the
> Slim/Plugin/InternetRadio/install.xml, remove the "enforce" line.
> Restart LMS. Now you should be able to disable it in the plugin
> settiongs.
> 
> Full patch:
> 
> > 
Code:

  >   > diff --git a/Slim/Formats/XML.pm b/Slim/Formats/XML.pm
  > index 928373f..59f6d9c 100644
  > --- a/Slim/Formats/XML.pm
  > +++ b/Slim/Formats/XML.pm
  > @@ -143,7 +143,8 @@
  > 
  > if ( $url =~ /(?:radiotime|tunein\.com)/ ) {
  > # Add the TuneIn username
  > -   if ( $url !~ /username/ && $url =~ /(?:presets|title)/ 
  > +   if ( $url !~ /username/ && $url =~ /(?:presets|title)/
  > +   && 
Slim::Utils::PluginManager->isEnabled('Slim::Plugin::InternetRadio::Plugin') 
  > && ( my $username = 
Slim::Plugin::InternetRadio::TuneIn->getUsername($params->{client}) )
  > ) {
  > $url .= '=' . uri_escape_utf8($username);
  > diff --git a/Slim/Plugin/InternetRadio/install.xml 
b/Slim/Plugin/InternetRadio/install.xml
  > index c33ca47..ec6cdc9 100644
  > --- a/Slim/Plugin/InternetRadio/install.xml
  > +++ b/Slim/Plugin/InternetRadio/install.xml
  > @@ -8,7 +8,7 @@
  > PLUGIN_INTERNET_RADIO_MODULE_NAME_DESC
  > Logitech
  > enabled
  > -   1
  > +   0
  > http://www.mysqueezebox.com/support
  > 2
  > 
  > 

> > 
> 
> -- 
> 
> Michael
Thanks.  Sorry to be so ignorant, but how do I run that with the patch
command (I've only ever run patch a few times in my life)?   

I've tried unsuccessfully with -i and the name of the patch file (when
in the perl5 directory).



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.

PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-29 Thread Michael Herger
If you want to give this a try, then edit the 
Slim/Plugin/InternetRadio/install.xml, remove the "enforce" line. 
Restart LMS. Now you should be able to disable it in the plugin settiongs.


--

Michael
___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-29 Thread Michael Herger

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.


--nointernet would be difficult to enforce, as we have little control 
over eg. 3rd party plugins. But right now the InternetRadio plugin is 
enabled by default and can't be disabled. I think the right thing to do 
would be allowing this plugin to be disabled. After all that's what's 
causing your problem. In addition with --nomysqueezebox pretty much 
every default internet activity would be disabled by this.


--

Michael
___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-29 Thread PasTim

Roland0 wrote: 
> 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;
  > 

> > 
Thanks - much to think about there.  I don't have busybox on my server
(it's an old vortexbox PC running xubuntu) but I do have a basic apache
web server (of which I know little, but just enough so far for a few
simple file shares and extra repos for LMS).

As I understand it you are suggesting I redirect all requests to
opml.radiotime.com to my local host, and that I should pull down the
index from opml.radiotime.  OK so far.

However, you have an httpd.conf file and contents specified.  I don't
have such a file and don't quite understand the contents. I shall
experiment to see whether the web address gets picked up or not without
that file.



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.

PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-29 Thread Roland0

PasTim wrote: 
> 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;
  




SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-29 Thread PasTim

Roland0 wrote: 
> 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.

PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-28 Thread Roland0

A simple workaround would be to redirect the request to a local web
server.



SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-28 Thread Paul Webster

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

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2018-01-28 Thread PasTim

mherger wrote: 
> > 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.

PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2017-09-09 Thread afriend

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.



afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2017-09-09 Thread bpa

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 knwo whether lMS will work OK without the plugin.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2017-09-09 Thread afriend

mherger wrote: 
> 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...



afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


Re: [SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2017-09-08 Thread Michael Herger

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
___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta


[SlimDevices: Beta] Can I disable html call to opml.radiotime.com?

2017-09-08 Thread afriend

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.



afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=107956

___
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta