Code Monkey home page Code Monkey logo

sunshine's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sunshine's Issues

Fantastic little tool – two suggestions

Thank you for this fantastic little tool. Works great on macOS with CoreLocation. Have already implemented it in a little script of my own. (Will post the link once it's up.)

Two little suggestions. The more important one would be a --floating option, i.e. don't show the sunrise and sunset for the current date, but show the previous event and the next two events, depending on the time of day. So at noon (while light) it would look like…

last sunrise: <time today>
next sunset: <time today>
next sunrise: <time tomorrow>

… and e.g. shortly after midnight (while dark) it would look like…

last sunset: <time yesterday>
next sunrise: <time today>
next sunset: <time today>

The second suggestion (less important) would be the --apparent option to calculcate not the astronomical times of sunrise and sunset, but the times of the apparent sunrises and sunsets. (Due to light refraction in the atmosphere, apparent sunset is a little later than the real sunset, and apparent sunrise is a little earlier than real sunrise.)

[BUG] thread main panicked error

When trying sunshine '#North Pole' and sunshine #South Pole, there's a thread 'main' panicked at 'invalid or out-of-range datetime' error.

Same when trying the coordinates: sunshine '@90.0 0.0' and sunshine '@-90.0 0.0

Suggestion: remote time (--remote) or UTC (--utc)

Suggestion: add a --remote option to display the times of sunrise & sunset not with the local time at the location of the querying user, but with the remote time instead, i.e. with the local time at the queried location. (Would probably have to add a trailing time zone string.)

The easiest thing could be a --utc option… then the user can convert the date himself.

(Or both.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.