Re: [SlimDevices: Plugins] Web Browser Now Playing display using widget for Smashing dashboard

2022-01-09 Thread BosseJ


BosseJ wrote: 
> Thanks for your assistance! Much appreciated. I'm still struggling a
> bit, still cannot find the .erb file or even the "layout" project. I
> must have missed some step in the installation.
> Here's what I did to install Smashing and the Squeezebox widget:
> 
> > 
Code:

  >   > $ sudo gem install smashing
  > Building native extensions. This could take a while...
  > Successfully installed eventmachine-1.2.7
  > Fetching: daemons-1.4.1.gem (100%)
  > Successfully installed daemons-1.4.1
  > Fetching: thin-1.8.1.gem (100%)
  > Building native extensions. This could take a while...
  > Successfully installed thin-1.8.1
  > Fetching: raabro-1.4.0.gem (100%)
  > Successfully installed raabro-1.4.0
  > Fetching: concurrent-ruby-1.1.9.gem (100%)
  > Successfully installed concurrent-ruby-1.1.9
  > Fetching: tzinfo-2.0.4.gem (100%)
  > Successfully installed tzinfo-2.0.4
  > Fetching: et-orbi-1.2.6.gem (100%)
  > Successfully installed et-orbi-1.2.6
  > Fetching: fugit-1.5.2.gem (100%)
  > Successfully installed fugit-1.5.2
  > Fetching: rufus-scheduler-3.8.0.gem (100%)
  > Successfully installed rufus-scheduler-3.8.0
  > Fetching: thor-1.2.1.gem (100%)
  > Successfully installed thor-1.2.1
  > Fetching: sprockets-4.0.2.gem (100%)
  > Successfully installed sprockets-4.0.2
  > Fetching: ffi-1.15.4.gem (100%)
  > Building native extensions. This could take a while...
  > Successfully installed ffi-1.15.4
  > Fetching: sassc-2.4.0.gem (100%)
  > Building native extensions. This could take a while...
  > Successfully installed sassc-2.4.0
  > Fetching: smashing-1.3.5.gem (100%)
  > Successfully installed smashing-1.3.5
  > Parsing documentation for eventmachine-1.2.7
  > Installing ri documentation for eventmachine-1.2.7
  > Parsing documentation for daemons-1.4.1
  > Installing ri documentation for daemons-1.4.1
  > Parsing documentation for thin-1.8.1
  > Installing ri documentation for thin-1.8.1
  > Parsing documentation for raabro-1.4.0
  > Installing ri documentation for raabro-1.4.0
  > Parsing documentation for concurrent-ruby-1.1.9
  > Installing ri documentation for concurrent-ruby-1.1.9
  > Parsing documentation for tzinfo-2.0.4
  > Installing ri documentation for tzinfo-2.0.4
  > Parsing documentation for et-orbi-1.2.6
  > Installing ri documentation for et-orbi-1.2.6
  > Parsing documentation for fugit-1.5.2
  > Installing ri documentation for fugit-1.5.2
  > Parsing documentation for rufus-scheduler-3.8.0
  > Installing ri documentation for rufus-scheduler-3.8.0
  > Parsing documentation for thor-1.2.1
  > Installing ri documentation for thor-1.2.1
  > Parsing documentation for sprockets-4.0.2
  > Installing ri documentation for sprockets-4.0.2
  > Parsing documentation for ffi-1.15.4
  > Installing ri documentation for ffi-1.15.4
  > Parsing documentation for sassc-2.4.0
  > Installing ri documentation for sassc-2.4.0
  > Parsing documentation for smashing-1.3.5
  > Installing ri documentation for smashing-1.3.5
  > Done installing documentation for eventmachine, daemons, thin, raabro, 
concurrent-ruby, tzinfo, et-orbi, fugit, rufus-scheduler, thor, sprockets, ffi, 
sassc, smashing after 199 seconds
  > 14 gems installed
  > byjo@Bos-T470:~
  > $ dashing install 93c6ec070af4cd2247f3c94f387c02c1
  > bash: dashing: kommandot finns inte
  > byjo@Bos-T470:~
  > $ smashing install 93c6ec070af4cd2247f3c94f387c02c1
  > create  widgets/squeezebox/squeezebox.coffee
  > create  widgets/squeezebox/squeezebox.html
  > create  jobs/squeezebox.rb
  > create  widgets/squeezebox/squeezebox.scss
  > Don't forget to edit the Gemfile and run bundle install if needed. More 
information for this widget can be found at 
https://gist.github.com/93c6ec070af4cd2247f3c94f387c02c1

> > 
> 
> Potential mistakes: I used "smashing" instead of "dashing". I didn't
> use "sudo" when installing the widget. Probably other stupid mistakes.
> 
> I don't understand the last line from the widget install. Is the
> 'Gemfile' the same file as the '.erb'? What is the 'bundle install'
> and how do I know if I need it?
> 
> Sorry for the newbie questions. Your help is very kind.

Well, at least I think I found one stupid mistake I made: I should've
created a new project immediately after installing 'smashing', called
for example SQ-NP, and cd into the new directory ~/s_q-n_p. After that I
should have installed gem : 
Code:

dashing install 93c6ec070af4cd2247f3c94f387c02c1

. This way the files would have ended up in a way I can understand.

Anyway, this is getting too complicated for me so I will leave this for
now. I cannot even get the "http://localhost:3030/layout"; to work, even
though I issue the command "smashing start" before.

Sorry for wasting your time kwarklabs.



2 Touch, 2 Picoreplayer  v6.1.0 on RaspBerry 3B
LMS 8.2.0 on Debian 10 on Intel-NUC. All wired
Main audio system: speakers Magnepan 3.6, amp "Gdis 400", DAC & pre: NAD
M5

Re: [SlimDevices: Plugins] Web Browser Now Playing display using widget for Smashing dashboard

2022-01-09 Thread kwarklabs


BosseJ wrote: 
> Thanks for your assistance! Much appreciated. I'm still struggling a
> bit, still cannot find the .erb file or even the "layout" project. I
> must have missed some step in the installation.
> Here's what I did to install Smashing and the Squeezebox widget:
> 
> > 
Code:

  >   > $ sudo gem install smashing
  > Building native extensions. This could take a while...
  > Successfully installed eventmachine-1.2.7
  > Fetching: daemons-1.4.1.gem (100%)
  > Successfully installed daemons-1.4.1
  > Fetching: thin-1.8.1.gem (100%)
  > Building native extensions. This could take a while...
  > Successfully installed thin-1.8.1
  > Fetching: raabro-1.4.0.gem (100%)
  > Successfully installed raabro-1.4.0
  > Fetching: concurrent-ruby-1.1.9.gem (100%)
  > Successfully installed concurrent-ruby-1.1.9
  > Fetching: tzinfo-2.0.4.gem (100%)
  > Successfully installed tzinfo-2.0.4
  > Fetching: et-orbi-1.2.6.gem (100%)
  > Successfully installed et-orbi-1.2.6
  > Fetching: fugit-1.5.2.gem (100%)
  > Successfully installed fugit-1.5.2
  > Fetching: rufus-scheduler-3.8.0.gem (100%)
  > Successfully installed rufus-scheduler-3.8.0
  > Fetching: thor-1.2.1.gem (100%)
  > Successfully installed thor-1.2.1
  > Fetching: sprockets-4.0.2.gem (100%)
  > Successfully installed sprockets-4.0.2
  > Fetching: ffi-1.15.4.gem (100%)
  > Building native extensions. This could take a while...
  > Successfully installed ffi-1.15.4
  > Fetching: sassc-2.4.0.gem (100%)
  > Building native extensions. This could take a while...
  > Successfully installed sassc-2.4.0
  > Fetching: smashing-1.3.5.gem (100%)
  > Successfully installed smashing-1.3.5
  > Parsing documentation for eventmachine-1.2.7
  > Installing ri documentation for eventmachine-1.2.7
  > Parsing documentation for daemons-1.4.1
  > Installing ri documentation for daemons-1.4.1
  > Parsing documentation for thin-1.8.1
  > Installing ri documentation for thin-1.8.1
  > Parsing documentation for raabro-1.4.0
  > Installing ri documentation for raabro-1.4.0
  > Parsing documentation for concurrent-ruby-1.1.9
  > Installing ri documentation for concurrent-ruby-1.1.9
  > Parsing documentation for tzinfo-2.0.4
  > Installing ri documentation for tzinfo-2.0.4
  > Parsing documentation for et-orbi-1.2.6
  > Installing ri documentation for et-orbi-1.2.6
  > Parsing documentation for fugit-1.5.2
  > Installing ri documentation for fugit-1.5.2
  > Parsing documentation for rufus-scheduler-3.8.0
  > Installing ri documentation for rufus-scheduler-3.8.0
  > Parsing documentation for thor-1.2.1
  > Installing ri documentation for thor-1.2.1
  > Parsing documentation for sprockets-4.0.2
  > Installing ri documentation for sprockets-4.0.2
  > Parsing documentation for ffi-1.15.4
  > Installing ri documentation for ffi-1.15.4
  > Parsing documentation for sassc-2.4.0
  > Installing ri documentation for sassc-2.4.0
  > Parsing documentation for smashing-1.3.5
  > Installing ri documentation for smashing-1.3.5
  > Done installing documentation for eventmachine, daemons, thin, raabro, 
concurrent-ruby, tzinfo, et-orbi, fugit, rufus-scheduler, thor, sprockets, ffi, 
sassc, smashing after 199 seconds
  > 14 gems installed
  > byjo@Bos-T470:~
  > $ dashing install 93c6ec070af4cd2247f3c94f387c02c1
  > bash: dashing: kommandot finns inte
  > byjo@Bos-T470:~
  > $ smashing install 93c6ec070af4cd2247f3c94f387c02c1
  > create  widgets/squeezebox/squeezebox.coffee
  > create  widgets/squeezebox/squeezebox.html
  > create  jobs/squeezebox.rb
  > create  widgets/squeezebox/squeezebox.scss
  > Don't forget to edit the Gemfile and run bundle install if needed. More 
information for this widget can be found at 
https://gist.github.com/93c6ec070af4cd2247f3c94f387c02c1

> > 
> 
> Potential mistakes: I used "smashing" instead of "dashing". I didn't
> use "sudo" when installing the widget. Probably other stupid mistakes.
> 
> I don't understand the last line from the widget install. Is the
> 'Gemfile' the same file as the '.erb'? What is the 'bundle install'
> and how do I know if I need it?
> 
> Sorry for the newbie questions. Your help is very kind.

Dashing has not been maintained since April 2016 so Smashing is the way
forward.

"sudo" is not needed when Smashing is installed in home directory.

The "Gemfile" is found in the root Smashing directory and it is not the
same as the .erb file.

Smashing is built with the Ruby programming language and a "gem" is a
Ruby library package: 'link' (https://www.ruby-lang.org/en/libraries/)

You need to run the "bundle install" command to install the required
gems.



'SqueezeZap - Native Android SqueezeBox Controller App'
(http://squeezezap.com)

kwarklabs's Profile: http://forums.slimdevices.com/member.php?userid=71757
View this thread: http://forums.slimdevices.com/showthread.php?t=115706

___
plugins

Re: [SlimDevices: Plugins] Web Browser Now Playing display using widget for Smashing dashboard

2022-01-08 Thread BosseJ


kwarklabs wrote: 
> 1. The .erb files get generated in the "dashboards" directory which is
> in the root Smashing folder - the same directory as you found the
> "widgets" directory in.
> 
> 2. "Project" is the Smashing terminolgy for an instance of a dashboard -
> a collection of widgets viewed together in one web page. The project
> name is the last part of URL used to access it, for example:
> http://:3030/. By default there
> should be a project called "layout" generated on installation which can
> be used to test the installation, so http:// address>:3030/layout. Once that works then a new project can be created
> with the command line "smashing new . That generates an
> .erb file to which the SqueezeBox code snippet you copied above should
> be added.

Thanks for your assistance! Much appreciated. I'm still struggling a
bit, still cannot find the .erb file or even the "layout" project. I
must have missed some step in the installation.
Here's what I did to install Smashing and the Squeezebox widget:


Code:

$ sudo gem install smashing
  Building native extensions. This could take a while...
  Successfully installed eventmachine-1.2.7
  Fetching: daemons-1.4.1.gem (100%)
  Successfully installed daemons-1.4.1
  Fetching: thin-1.8.1.gem (100%)
  Building native extensions. This could take a while...
  Successfully installed thin-1.8.1
  Fetching: raabro-1.4.0.gem (100%)
  Successfully installed raabro-1.4.0
  Fetching: concurrent-ruby-1.1.9.gem (100%)
  Successfully installed concurrent-ruby-1.1.9
  Fetching: tzinfo-2.0.4.gem (100%)
  Successfully installed tzinfo-2.0.4
  Fetching: et-orbi-1.2.6.gem (100%)
  Successfully installed et-orbi-1.2.6
  Fetching: fugit-1.5.2.gem (100%)
  Successfully installed fugit-1.5.2
  Fetching: rufus-scheduler-3.8.0.gem (100%)
  Successfully installed rufus-scheduler-3.8.0
  Fetching: thor-1.2.1.gem (100%)
  Successfully installed thor-1.2.1
  Fetching: sprockets-4.0.2.gem (100%)
  Successfully installed sprockets-4.0.2
  Fetching: ffi-1.15.4.gem (100%)
  Building native extensions. This could take a while...
  Successfully installed ffi-1.15.4
  Fetching: sassc-2.4.0.gem (100%)
  Building native extensions. This could take a while...
  Successfully installed sassc-2.4.0
  Fetching: smashing-1.3.5.gem (100%)
  Successfully installed smashing-1.3.5
  Parsing documentation for eventmachine-1.2.7
  Installing ri documentation for eventmachine-1.2.7
  Parsing documentation for daemons-1.4.1
  Installing ri documentation for daemons-1.4.1
  Parsing documentation for thin-1.8.1
  Installing ri documentation for thin-1.8.1
  Parsing documentation for raabro-1.4.0
  Installing ri documentation for raabro-1.4.0
  Parsing documentation for concurrent-ruby-1.1.9
  Installing ri documentation for concurrent-ruby-1.1.9
  Parsing documentation for tzinfo-2.0.4
  Installing ri documentation for tzinfo-2.0.4
  Parsing documentation for et-orbi-1.2.6
  Installing ri documentation for et-orbi-1.2.6
  Parsing documentation for fugit-1.5.2
  Installing ri documentation for fugit-1.5.2
  Parsing documentation for rufus-scheduler-3.8.0
  Installing ri documentation for rufus-scheduler-3.8.0
  Parsing documentation for thor-1.2.1
  Installing ri documentation for thor-1.2.1
  Parsing documentation for sprockets-4.0.2
  Installing ri documentation for sprockets-4.0.2
  Parsing documentation for ffi-1.15.4
  Installing ri documentation for ffi-1.15.4
  Parsing documentation for sassc-2.4.0
  Installing ri documentation for sassc-2.4.0
  Parsing documentation for smashing-1.3.5
  Installing ri documentation for smashing-1.3.5
  Done installing documentation for eventmachine, daemons, thin, raabro, 
concurrent-ruby, tzinfo, et-orbi, fugit, rufus-scheduler, thor, sprockets, ffi, 
sassc, smashing after 199 seconds
  14 gems installed
  byjo@Bos-T470:~
  $ dashing install 93c6ec070af4cd2247f3c94f387c02c1
  bash: dashing: kommandot finns inte
  byjo@Bos-T470:~
  $ smashing install 93c6ec070af4cd2247f3c94f387c02c1
  create  widgets/squeezebox/squeezebox.coffee
  create  widgets/squeezebox/squeezebox.html
  create  jobs/squeezebox.rb
  create  widgets/squeezebox/squeezebox.scss
  Don't forget to edit the Gemfile and run bundle install if needed. More 
information for this widget can be found at 
https://gist.github.com/93c6ec070af4cd2247f3c94f387c02c1



Potential mistakes: I used "smashing" instead of "dashing". I didn't use
"sudo" when installing the widget. Probably other stupid mistakes. 
I don't understand the last line from the widget install. Is the
'Gemfile' the same file as the '.erb'? What is the 'bundle install' and
how do I know if I need it?

Sorry for the newbie questions. Your help is very kind.



2 Touch, 2 Picoreplayer  v6.1.0 on RaspBerry 3B
LMS 8.2.0 on Debian 10 on Intel-NUC. All wired
Main audio system: speakers Magnepan 3.6, amp "Gdis 400", DAC & pre: NAD
M51, streamers: SB Touch // NAD M50
-

Re: [SlimDevices: Plugins] Web Browser Now Playing display using widget for Smashing dashboard

2022-01-08 Thread kwarklabs


BosseJ wrote: 
> Thanks for this, looks interesting and promising. However, I know very
> little of "widgets" and and I get stuck on making this work. I apologize
> for my stupid questions beforehand.
> I'm trying to make this work on a MX (Debian10) laptop with LMS 8.3.0 on
> a separate MX (Debian10) host (Intel NUC). I started with installing
> "gem" and "gem2deb" and then installed Smashing, all on the laptop.
> After that I installed the widget according to instructions on your
> github, using the 'smashing install 93c6ec070af4cd2247f3c94f387c02c1'
> rather than the manual install. I noted that the directory
> widget/squeezebox/ was populated with the files mentioned in your
> readme-file.
> 
> However I could not follow all instructions.
> 
> 1) I have no idea where to find the ".erb" file.
> > 
Code:

  >   > Add the following code snippet to your dashboard .erb file:
  > 
  > 
  > 

> > 
> 
> 2) In the Smashing github.io page there are more steps than just
> installing Smashing, like creating a project etc, but I have no idea
> how to go about this. Any hints?
> 
> Thanks

1. The .erb files get generated in the "dashboards" directory which is
in the root Smashing folder - the same directory as you found the
"widgets" directory in.

2. "Project" is the Smashing terminolgy for an instance of a dashboard -
a collection of widgets viewed together in one web page. The project
name is the last part of URL used to access it, for example:
http://:3030/. By default there
should be a project called "layout" generated on installation which can
be used to test the installation, so http://:3030/layout. Once that works then a new project can be created
with the command line "smashing new . That generates an
.erb file to which the SqueezeBox code snippet you copied above should
be added.



'SqueezeZap - Native Android SqueezeBox Controller App'
(http://squeezezap.com)

kwarklabs's Profile: http://forums.slimdevices.com/member.php?userid=71757
View this thread: http://forums.slimdevices.com/showthread.php?t=115706

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


Re: [SlimDevices: Plugins] Web Browser Now Playing display using widget for Smashing dashboard

2022-01-08 Thread BosseJ


kwarklabs wrote: 
> This widget can be used with the open source Smashing dashboard software
> to turn a web browser into a Now Playing display: 'link'
> (https://gist.github.com/kwarklabs/93c6ec070af4cd2247f3c94f387c02c1)
> 
> Smashing is lightweight and can run alongside the SqueezeBox server
> software. It can be found here: 'link' (https://smashing.github.io/)
> 
> For example, this could be used on an Android TV box connected to a TV
> in a room where using the device to control the player isn't necessary,
> like a bathroom. In this case an app can be used to launch the browser
> on boot. An example launcher app can be found here: 'link'
> (https://play.google.com/store/apps/details?id=uk.me.hardill.weblauncher)
> 
> - Credit and thanks to Tobias Brunner (tobru) for creating the original
> widget on which this fork was based.

Thanks for this, looks interesting and promising. However, I know very
little of "widgets" and and I get stuck on making this work. I apologize
for my stupid questions beforehand.
I'm trying to make this work on a MX (Debian10) laptop with LMS 8.3.0 on
a separate MX (Debian10) host (Intel NUC). I started with installing
"gem" and "gem2deb" and then installed Smashing, all on the laptop.
After that I installed the widget according to instructions on your
github, using the 'smashing install 93c6ec070af4cd2247f3c94f387c02c1'
rather than the manual install. I noted that the directory
widget/squeezebox/ was populated with the files mentioned in your
readme-file.

However I could not follow all instructions.

1) I have no idea where to find the ".erb" file.

Code:

Add the following code snippet to your dashboard .erb file:
  
  
  



2) In the Smashing github.io page there are more steps than just
installing Smashing, like creating a project etc, but I have no idea how
to go about this. Any hints?

Thanks



2 Touch, 2 Picoreplayer  v6.1.0 on RaspBerry 3B
LMS 8.2.0 on Debian 10 on Intel-NUC. All wired
Main audio system: speakers Magnepan 3.6, amp "Gdis 400", DAC & pre: NAD
M51, streamers: SB Touch // NAD M50

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=115706

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


[SlimDevices: Plugins] Web Browser Now Playing display using widget for Smashing dashboard

2022-01-07 Thread kwarklabs


This widget can be used with the open source Smashing dashboard software
to turn a web browser into a Now Playing display: 'link'
(https://gist.github.com/kwarklabs/93c6ec070af4cd2247f3c94f387c02c1)

Smashing is lightweight and can run alongside the SqueezeBox server
software. It can be found here: 'link' (https://smashing.github.io/)

For example, this could be used on an Android TV box connected to a TV
in a room where using the device to control the player isn't necessary,
like a bathroom. In this case an app can be used to launch the browser
on boot. An example launcher app can be found here: 'link'
(https://play.google.com/store/apps/details?id=uk.me.hardill.weblauncher)

- Credit and thanks to Tobias Brunner (tobru) for creating the original
widget on which this fork was based.



kwarklabs's Profile: http://forums.slimdevices.com/member.php?userid=71757
View this thread: http://forums.slimdevices.com/showthread.php?t=115706

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