You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the example code shown in the documentations I get this error message: ApiError: Problems resolving hue bridges, HTTP error status: 429
This is the example code:
constv3=require('node-hue-api').v3;constLightState=v3.lightStates.LightState;constUSERNAME=User// The name of the light we wish to retrieve by name,LIGHT_ID=2;v3.discovery.nupnpSearch().then(searchResults=>{consthost=searchResults[0].ipaddress;returnv3.api.createLocal(host).connect(USERNAME);}).then(api=>{// Using a LightState object to build the desired stateconststate=newLightState().on().ct(200).brightness(100);returnapi.lights.setLightState(LIGHT_ID,state);}).then(result=>{console.log(`Light state change was successful? ${result}`);});
This code worked fine for 5 minutes and then it just stopped working...
The text was updated successfully, but these errors were encountered:
It is on Hue, they restrict the number of calls coming from an IP address to the cloud endpoint and expect you to cache the results, or use local mDNS discovery.
When I use the example code shown in the documentations I get this error message:
ApiError: Problems resolving hue bridges, HTTP error status: 429
This is the example code:
This code worked fine for 5 minutes and then it just stopped working...
The text was updated successfully, but these errors were encountered: