https://github.com/maxverevkin/day-night
A simple program that executes shell commands based on the time of day
https://github.com/maxverevkin/day-night
automation daynight daynighttoggle rust timeofday
Last synced: 3 months ago
JSON representation
A simple program that executes shell commands based on the time of day
- Host: GitHub
- URL: https://github.com/maxverevkin/day-night
- Owner: MaxVerevkin
- License: mit
- Created: 2021-03-23T10:33:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-28T07:37:04.000Z (almost 4 years ago)
- Last Synced: 2025-01-31T10:42:24.050Z (5 months ago)
- Topics: automation, daynight, daynighttoggle, rust, timeofday
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# day-night
A simple program that executes shell commands based on the time of day
## Options
```
❯ day-night --help
day-night 0.1.0
Max Verevkin
A simple program that executes shell commands based on the time of dayUSAGE:
day-night [FLAGS] [OPTIONS] --lat --lonFLAGS:
--always-run If set, a command will be run on each update. Otherwise, a command will be run only when
changing states (from night to day and vice versa)
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
--day A shell command to run in day time
--interval The interval between updates in seconds [default: 600]
--lat Your geographical latitude
--lon Your geographical longitude
--night A shell command to run in night time
```