{"repo":"mfreeborn/heliocron","free":true,"listed":false,"github":"https://github.com/mfreeborn/heliocron","clone":"git clone https://github.com/mfreeborn/heliocron.git","description":"A command line application written in Rust capable of delaying execution of other programs for time periods relative to sunrise and sunset.","language":"Rust","stars":272,"topics":["rust","linux","cron","sunrise","sunset","scheduler"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"heliocron A simple command line application that integrates with cron to execute tasks relative to sunset, sunrise and other such solar events. Table of Contents Installation Usage Examples Configuration Edge Cases Reference Installation There are several ways to install heliocron on your device. 1. Pre-compiled binaries You can download a pre-compiled binary from the releases page. Here's a quick compatibility table to help choose the correct binary to download: Platform Binary -------- ------ Raspberry Pi 0/1 heliocron-arm-unknown-linux-gnueabihf.tar.xz Raspberry Pi 2/3/4 heliocron-armv7-unknown-linux-gnueabihf.tar.xz Raspberry Pi 5 heliocron-aarch64-unknown-linux-gnu.tar.xz Linux desktop heliocron-x86 64-unknown-linux-gnu.tar.xz 2. Install with cargo 3. Build from source Usage Examples Delay execution of a command relative to sunrise or sunset The following code snippet entered into the terminal will wait until sunset on 25th Feb 2020 at the Royal Greenwich Observatory (17:32:17 +00:00) before listing the files and folders contained within the user's home directory. Integration with cron for recurring tasks is easy. The following snippet shows a crontab entry which will run every morning at 2am. heliocron will wait until 30 minutes before sunrise, before allowing the execution of the turn-on-lights.sh script. Show a report of sunrise and sunset times for a given location and date Display real time data pertaining to the current position of the Sun Use the poll subcommand t","default_branch":null,"files":null,"tree":[],"storefront":"/r/mfreeborn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mfreeborn/heliocron/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}