MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / getSunsetOffset

Method getSunsetOffset

dependencies/hueplusplus-1.0.0/src/Sensor.cpp:326–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326int DaylightSensor::getSunsetOffset() const
327{
328 return state.getValue().at("config").at("sunsetoffset").get<int>();
329}
330void DaylightSensor::setSunsetOffset(int minutes)
331{
332 sendPutRequest("/config", nlohmann::json {{"sunsetoffset", minutes}}, CURRENT_FILE_INFO);

Callers 1

TEST_FFunction · 0.80

Calls 1

getValueMethod · 0.80

Tested by 1

TEST_FFunction · 0.64