Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Console Daylight Hours Clock (gist.github.com)
3 points by godDLL on Nov 28, 2021 | hide | past | favorite | 6 comments


It's in fish, so I can't use it myself (zsh), but I like this idea because where I live it's hot right up until about 45 minutes to sunset and everyone, including my family, goes out for a walk right at that "cool time of the day". I'm going to write a similar one for myself that I can use to find out when "walk time" is, thanks for the idea.


That's the spirit!

If you are successful, and it is a literal translation I'd like to add it as Suntime.ZSH

If you end up formatting it differently, or doing it significantly differently I'd still like to see it.

Can you please report back here when, and if you get to do it? I'd like to see how it went. <3


Sure, I can try, but it's definitely going to be a hacky, one-trick-pony script for my personal use, haha. I was more saying I would "rewrite" the idea of your script (it's very nice code, btw) into something for my walk time management.


It _is_ very nice code to look at, come to think. I would have Fish installed, if only for the scripting aspect.

But do show what you come up with. I am very into how people use automation in daily life.


Updated to v0.2 with less bugs and maths, more exact time

FYI fish is a scripting language that doesn't have to be your shell to run this script


Updated to v0.3 with optional clock and error code for scripting




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: