-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding sunrise_sunset to NTP (#1001)
- Loading branch information
1 parent
b0bfc23
commit fe686b4
Showing
6 changed files
with
268 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
NOTE: Set Time offset, latitude, longitude accordingly | ||
|
||
// autoexec for mini smart switch | ||
PowerSave 1 | ||
addEventHandler OnHold 8 SafeMode | ||
startDriver ntp | ||
ntp_timeZoneOfs -8 | ||
ntp_setLatlong 44.002130 -123.091473 | ||
setPinRole 6 WifiLed_n | ||
setPinRole 8 Btn_Tgl_All | ||
setPinRole 14 TglChanOnTgl | ||
setPinChannel 14 0 | ||
setPinRole 15 Rel | ||
setPinChannel 15 0 | ||
removeClockEvent 12 | ||
removeClockEvent 13 | ||
waitFor NTPState 1 | ||
addClockEvent sunrise 0x7f 12 POWER OFF | ||
addClockEvent sunset 0x7f 13 POWER ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.