Joery-M / Govee-LAN-Control

An Node.js package to control Govee devices with LAN
https://joery.com/govee-lan-control
MIT License
21 stars 4 forks source link

Library not working #6

Closed JustJoostNL closed 1 year ago

JustJoostNL commented 1 year ago

Hey @Joery-M! I have some issues when using the library in my Electron app, I am using the following code:

import Govee from 'govee-lan-control'

export default async function goveeInitialize(){
    let theGovee;
    try {
        theGovee = new Govee();
    } catch (error) {
        console.log(error);
    }
    theGovee.on("ready", () => {
        console.log('ready!')
    });
    theGovee.on("deviceAdded", (device) => {
        console.log("Govee device found: " + device.model);
    });
}

I have the following issues when using this:

Any idea how I can fix this?

I really appreciate your work!

Thanks in advance!

JustJoostNL commented 1 year ago

Oh and btw, I use version V3.0.0.

csinatsch commented 1 year ago

I am also having this issue

Joery-M commented 1 year ago

Unfortunately UDP is one of those "if it works, it works, if it doesn't, good luck" things.

This error message appears when there is no response to the ping command on any network interface.

This can mean a couple of things.

One troubleshooting step you can do is run dgramTest.js in the src folder to find where the issue is.

JustJoostNL commented 1 year ago

Just tried it again, and it works now. (didn't change anything). So I'll close this.