mfreeborn / heliocron

A command line application written in Rust capable of delaying execution of other programs for time periods relative to sunrise and sunset.
Apache License 2.0
241 stars 11 forks source link

Config File issue #52

Closed jei-gaither closed 2 years ago

jei-gaither commented 2 years ago

Howdy from Texas!

I stumbled upon Heliocron while working on a timelapse project designed to run on a RPi. I am trying to get it set up to use in crontab for launching my script at sunrise each day.

I love the elegance of your solution, thanks for contributing it to the world!

My issue is with setting my GPS location in the config file I created at ~/.config/heliocron.toml.

# ~/.config/heliocron.toml
# set the default location to Texas Capitol    
latitude = "30.274N"
longitude = "-97.740W"

Perhaps I'm doing something stoopid?

When I run heliocron --version, I get: Config error: Error parsing TOML file. Ensure that it is of the correct format.

mfreeborn commented 2 years ago

Good evening :)

Try removing that -. I should probably make the error message a bit clearer!

jei-gaither commented 2 years ago

Oh, of course!!! The negative would make it W. 🤦‍♂️

Thanks for the quick and gracious response! 👍

mfreeborn commented 2 years ago

Super :)