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

Devices not showing up #88

Open
Paul243-gif opened this issue Dec 28, 2023 · 0 comments
Open

Devices not showing up #88

Paul243-gif opened this issue Dec 28, 2023 · 0 comments

Comments

@Paul243-gif
Copy link

Paul243-gif commented Dec 28, 2023

I was running the original usage code from README.md, but it didn't work. So I modified it a bit to be sure I'm getting devices:

const ChromecastAPI = require('chromecast-api');
const client = new ChromecastAPI();

console.log(client.devices);
client.update();
console.log(client.devices);
client.on('device', (devices) => console.log(devices) );
console.log(client.devices);

But nothing seemed to work.
The output was:

[]
[]
[]

I can't get it to find devices, even though I have my devices all turned on, with chromecast working. And I know it works, because when I use Popcorn Time it finds the devices with chromecast. What am I doing wrong?

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

1 participant