Git Product home page Git Product logo

moon-phase's People

Stargazers

 avatar  avatar

Watchers

 avatar

moon-phase's Issues

For use in local time zone only

This widget expects you're running it for the location you're in, not some remote location.

The file timezone-snippet.txt grabs the remote time zone based on location and seems to work well for DST. I'm not sure there's a reason to have this; using the local date +%z saves an API call.

Icons not appearing

The math to determine which icon to use looks right (and the proper code appears in console.error) but I'm a Javascript/Coffeescript/SVG neophyte. I need to learn why this is failing.

Temporary file

The file illumtab.txt.* is a plain text, space-formatted table of the moon's illumination from USNO, created and deleted by get-phase.sh. It's parsed using grep and cut to pull data from the proper row and column, which works well enough.

I have no idea if this can be done any other way given the format of the source data.

Failed to reach USNO...

I have been getting a message "Failed to reach USNO illumination table" for about a week now. When I checked the USNO website it appears to be be unreachable... Anyone know what is going on?

Rotate icon for hemispheres and/or phase

The icon font has a (roughly) 2.5:1 aspect ratio. Equatorial will widen the layout and might break the CSS display; should be no issue for the southern hemisphere (180 degree flip).

For more visual accuracy, one could rotate the icon based on the current phase. For example, a one-day old crescent will be rotated about 90 degrees as it leads/follows the sun.

I just have to figure out how.

US Cyber Command Block

I pull astronomical data from USNO but, as of today, the site is no longer serving the public:

"You have attempted to access a blocked website. Access to this website has been blocked for operational reasons by the DOD Enterprise-Level Protection System."

I've added a check to help with parsing this and I'll give the issue some time to resolve itself but I may be forced to switch data sources.

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.