An open API service indexing awesome lists of open source software.

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

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 day

USAGE:
day-night [FLAGS] [OPTIONS] --lat --lon

FLAGS:
--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 information

OPTIONS:
--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
```