Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
then check if the current time is between the start and end time.
If so it will turn the lights on, otherwise off.
first dial sets the hour (0-24) when the lights are supposed to be turned on
second dial sets the hour when the lights are supposed to be turned off.
amount of light per day is calculated and only displayed to console
The special feature of this script is that it does not use timers. Its not working like turns the lights on and then waits certain time then turns them off. This would have a number of issues, you cannot change already running wait timer. This script applies changes instantly. There is no waiting. You can change dials at any times and the changes will take effect instantly.
We are setting an interval with lights on and lights off time here.