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

Method getSunriseOffset

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

Source from the content-addressed store, hash-verified

315 return state.getValue().at("config").at("configured").get<bool>();
316}
317int DaylightSensor::getSunriseOffset() const
318{
319 return state.getValue().at("config").at("sunriseoffset").get<int>();
320}
321void DaylightSensor::setSunriseOffset(int minutes)
322{
323 sendPutRequest("/config", nlohmann::json {{"sunriseoffset", minutes}}, CURRENT_FILE_INFO);

Callers 1

TEST_FFunction · 0.80

Calls 1

getValueMethod · 0.80

Tested by 1

TEST_FFunction · 0.64