atoomic / snapcast-volume-ui

Simple perl dancer webapp to control volume of all snapcast clients using JSON::RPC
42 stars 8 forks source link

can't see all rooms, only 2 #13

Open karba78 opened 6 years ago

karba78 commented 6 years ago

Hello installed like a charm, but can not see all my 5 rooms just 2. one with a configured name (CHAMBRE) and one with a random name (CLIENT FROM 196B3013EED4D7E37AA0BC4D5A899054) see config section below Any idea ? on what i am doing wrong thks

  demo: 0
  server:
     host: '192.168.0.242'
     port: 1705
  rooms:
    'B8:27:EB:AD:CD:00':
       color: '#0C0'
       name:  'Bureau'
    'E8:DE:27:A0:AF:CB':
       color: '#C00'
       name:  'Chambre'
    'B8:27:EB:03:B9:DE':
       color: '#00C'
       name: 'Salon'
#    'E8:DE:27:A0:AF:CB':
#       color: '#edb91e'
#       name: 'Portable WIFI'
    'B8:27:EB:E5:80:5E':
       color: '#edb91e'
       name: 'Portable Eth'
  ignore:
    - 'b8:27:eb:a6:76:a5'
matrix321321 commented 6 years ago

try to use lowercase letters in your server/client config. I ran into the same issue when I used Uppercase letters in room names...

Read the the FAQ / common issues for more info about this ...

karba78 commented 6 years ago

thks just tried now, even change the mac adress to lower caps,, no change....

atoomic commented 6 years ago

any chance you can provide a screenshot of your browser with the console window opened (can view it when right click then inspect), then refresh the page to allow the console to display the error

Maybe it could come from space in your names

thanks

karba78 commented 6 years ago

sure here you go

On 26 Feb 2018, at 16:52, Nicolas R. notifications@github.com wrote:

any chance you can provide a screenshot of your browser with the console window opened (can view it when right click then inspect), then refresh the page to allow the console to display the error

Maybe it could come from space in your names

thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/atoomic/snapcast-volume-ui/issues/13#issuecomment-368548415, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai9ypMyf87Gw1VqjqtAPBuhKg7smSaOGks5tYtNEgaJpZM4SSfRu.

atoomic commented 6 years ago

@karba78 not sure to be able to view the screenshot

karba78 commented 6 years ago

Ok here the code How do I send the screenshot so you see it

Sent from Mail for Windows 10

From: Nicolas R. Sent: lundi 26 février 2018 16:58 To: atoomic/snapcast-volume-ui Cc: karba78; Mention Subject: Re: [atoomic/snapcast-volume-ui] can't see all rooms, only 2 (#13)

@karba78 not sure to be able to view the screenshot — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

!DOCTYPE html>

Multiroom audio system
Client from 196b3013eed4d7e37aa0bc4d5a899054
portable Eth

Snapcast WebUI on github by @atoomic
using Blocks Theme from Alvarez.is
powered by Perl Dancer

atoomic commented 6 years ago

on github you can attach files by dragging & topping them in the message or you can also click the "selecting them", just check the message at the bottom of the text area when you are typing new message

karba78 commented 6 years ago
screen shot 2018-02-26 at 16 54 52
karba78 commented 6 years ago

Done 😊 thks for the tip

Sent from Mail for Windows 10

From: Nicolas R. Sent: lundi 26 février 2018 18:02 To: atoomic/snapcast-volume-ui Cc: karba78; Mention Subject: Re: [atoomic/snapcast-volume-ui] can't see all rooms, only 2 (#13)

on github you can attach files by dragging & topping them in the message or you can also click the "selecting them", just check the message at the bottom of the text area when you are typing new message — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

karba78 commented 6 years ago

Server config with lower caps now even in mac dress

  demo: 0
  server:
     host: '192.168.0.242'
     port: 1705
  rooms:
    'b8:27:eb:ad:cd:00':
       color: '#0C0'
       name:  'bureau'
    'e8:de:27:a0:af:cb':
       color: '#C00'
       name:  'chambre'
    'b8:27:eb:03:b9:de':
       color: '#00C'
       name: 'salon'
#    'e8:de:27:a0:af:cb':
#       color: '#edb91e'
#       name: 'portable wifi'
    'b8:27:eb:e5:80:5e':
       color: '#edb91e'
       name: 'portable Eth'
  ignore:
    - 'b8:27:eb:a6:76:a5'
    - '00:00:00:00:00:00'
    - 'b8:27:eb:9b:7d:50'
atoomic commented 6 years ago

ok any chance you can show me the debugging console from the browser? using chrome, right click then inspect, then select console tab and refresh the page then do a screenshot

thanks

karba78 commented 6 years ago

sure pi@pi2-snapcaslt-client-01:~/snapvol-0.11.0 $ ./devel-server perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_GB.UTF-8"). Watching . bin/lib bin/app.psgi for file updates. HTTP::Server::PSGI: Accepting connections at http://0:5000/ [snapdance:6181] core @2018-02-26 18:06:55> looking for get / in /usr/share/perl5/Plack/Middleware/Head.pm l. 9 [snapdance:6181] core @2018-02-26 18:06:55> Entering hook core.app.before_request in /usr/share/perl5/Dancer2/Core/App.pm l. 1167 [snapdance:6181] core @2018-02-26 18:06:56> Entering hook core.app.after_request in /usr/share/perl5/Dancer2/Core/App.pm l. 1116 192.168.0.104 - - [26/Feb/2018:18:06:56 +0100] "GET / HTTP/1.1" 200 6263 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" [snapdance:6181] core @2018-02-26 18:06:56> looking for get /img/sep-half.png in /usr/share/perl5/Plack/Middleware/Head.pm l. 9 [snapdance:6181] core @2018-02-26 18:06:56> Entering hook core.app.before_request in /usr/share/perl5/Dancer2/Core/App.pm l. 1167 [snapdance:6181] core @2018-02-26 18:06:56> Entering hook core.error.init in /usr/share/perl5/Dancer2/Core/Error.pm l. 188 [snapdance:6181] core @2018-02-26 18:06:56> Entering hook core.error.before in /usr/share/perl5/Dancer2/Core/Error.pm l. 271 [snapdance:6181] core @2018-02-26 18:06:56> Entering hook core.error.after in /usr/share/perl5/Dancer2/Core/Error.pm l. 280 192.168.0.104 - - [26/Feb/2018:18:06:56 +0100] "GET /img/sep-half.png HTTP/1.1" 404 514 "http://192.168.0.240:5000/css/main.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"

atoomic commented 6 years ago

Just noticed that your configuration file include several ignore rules, and two of them might be the one you are not viewing, no?

karba78 commented 6 years ago

nope they are the ignore from sample file

atoomic commented 6 years ago

ok I'm trying to get the output of your browser console.. you copy pasted the terminal output where the server is run

karba78 commented 6 years ago

that ?

HTML1300: Navigation occurred. 192.168.0.240:5000 (1,1)

2 CSS3121: The media query -ms-viewport has been deprecated.

5 HTML1508: Unmatched end tag. 192.168.0.240:5000 (139,77)

HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - http://192.168.0.240:5000/img/sep-half.png

SCRIPT5009: 'Highcharts' is not defined lineandbars.js (19,4)

atoomic commented 6 years ago

no not really, any chance you can run this perl script?

just copy the following content to a file, like test.pl then run perl test.pl and copy paste the output here

 #!/usr/bin/env perl

 my $snapserver = q{192.168.0.242}; # <== address of your snap cast server
 my $port       = 1705;

 my $req = {'jsonrpc' => '2.0', 'method' => 'Server.GetStatus', 'id' => 1};

 use JSON::XS;
 use Net::Telnet;
 use Data::Dumper;

 my $json = JSON::XS->new->utf8->encode( $req );

 $t = Net::Telnet->new(Timeout => 10, Prompt => "/\n/" );
 $t->open(Host => $snapserver, Port => $port) or die;
 #$t->login($username, $passwd);
 my ($reply) = $t->cmd($json . "\r\n");
 my $results = JSON::XS->new->utf8->decode( $reply );
 print Dumper($results->{result}{clients});
karba78 commented 6 years ago

hello thks not sure i am missing something here, see disappointing output below

pi@pi2-snapcaslt-client-01:~ $ perl test.perl $VAR1 = undef; pi@pi2-snapcaslt-client-01:~ $