GithubHelp home page GithubHelp logo

morphatic / astrologyjs Goto Github PK

View Code? Open in Web Editor NEW
133.0 133.0 46.0 220 KB

A NodeJs package that will provide core functionality for including astrological charts in projects.

License: MIT License

JavaScript 7.27% TypeScript 92.73%

astrologyjs's People

Contributors

morphatic avatar

Stargazers

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

Watchers

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

astrologyjs's Issues

Ephemeris source, reliability, and cost

In the ReadMe is says: “Chart data is loaded from a remote online ephemeris REST service.” Where does the ephemeris originate from (source)? This is more a question of curiosity.

A related and more significant question since I’m looking into using this as a module in an app, is: Is this service guaranteed to be offered in the future (reliability), and if so, for free (cost)? I would be unable to use this module if there’ll be a significant cost associated to it or if at some point the service is terminated.

Thank you!

Issues importing module

Hi! I pulled your npm module, did a simple var chart = require('astrologyjs').Chart, and tried to run a basic nodejs server, and got a slew of issues.

  1. You should tell people what version of node is required--I was on an older version and got the let keyword not currently supported error.
    2)Your production code currently is not complied for node-- after getting around the node version issue, I got 'unexpected token export' error. I was forced to download babel and a couple of babels friends, run babel node-modules/astrologyjs/dist/astrologyjs.js to compile your file into my own script file, and then import that new file. Consequently, I had to copy your dependency of request-promise.

After all that, I finally could get a server running without even attempting to use your code, just import it.

I could be missing something basic, but since your readme doesn't say I needed any config or setup, I didn't think importing would be an issue. Please update your readme to explain how to install, or let me know if I've made a silly mistake.

Excited to use it!

Doesnt appear to work any longer

Attempting to create a chart results in response "Unexpected token < in JSON at position 0", apparently it is returning an html document and the chart creator is not prepared for that. Seems like the REST source is compromised.

SyntaxError: Unexpected token < in JSON at position 0

SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at IncomingMessage. (K:\2023 Aug\astrolojyjs\node_modules\astrologyjs\dist\astrologyjs.min.js:1:23139)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.14.0

Fetch error

Followed your example and got the following error, using both a test version (on localhost:3000) and on a website (with https://). Might you know how to work around it?

Fetch API cannot load http://www.morphemeris.com/ephemeris.php?date=1974-02-17T23%3A30Z&lat=37.4381927&lon=-79.18932.
Redirect from 'http://www.morphemeris.com/ephemeris.php?date=1974-02-17T23%3A30Z&lat=37.4381927&lon=-79.18932'
to 'https://morphemeris.com/ephemeris.php?date=1974-02-17T23%3A30Z&lat=37.4381927&lon=-79.18932'
has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:3000' is therefore not allowed access.
If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

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.