Click the flag to run. Press d for day. Press n for night. Press r to reset.
Created using the good old trial and error method.