Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't see all rooms, only 2 #13

Open
karba78 opened this issue Feb 25, 2018 · 18 comments
Open

can't see all rooms, only 2 #13

karba78 opened this issue Feb 25, 2018 · 18 comments

Comments

@karba78
Copy link

karba78 commented Feb 25, 2018

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
Copy link

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
Copy link
Author

karba78 commented Feb 26, 2018

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

@atoomic
Copy link
Owner

atoomic commented Feb 26, 2018

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
Copy link
Author

karba78 commented Feb 26, 2018 via email

@atoomic
Copy link
Owner

atoomic commented Feb 26, 2018

@karba78 not sure to be able to view the screenshot

@karba78
Copy link
Author

karba78 commented Feb 26, 2018 via email

@atoomic
Copy link
Owner

atoomic commented Feb 26, 2018

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
Copy link
Author

karba78 commented Feb 26, 2018

screen shot 2018-02-26 at 16 54 52

@karba78
Copy link
Author

karba78 commented Feb 26, 2018 via email

@karba78
Copy link
Author

karba78 commented Feb 26, 2018

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
Copy link
Owner

atoomic commented Feb 26, 2018

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
Copy link
Author

karba78 commented Feb 26, 2018

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
Copy link
Owner

atoomic commented Feb 26, 2018

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

@karba78
Copy link
Author

karba78 commented Feb 26, 2018

nope they are the ignore from sample file

@atoomic
Copy link
Owner

atoomic commented Feb 26, 2018

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

@karba78
Copy link
Author

karba78 commented Feb 26, 2018

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
Copy link
Owner

atoomic commented Feb 27, 2018

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
Copy link
Author

karba78 commented Feb 27, 2018

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:~ $

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants