morphatic / astrologyjs Goto Github PK
View Code? Open in Web Editor NEWA NodeJs package that will provide core functionality for including astrological charts in projects.
License: MIT License
A NodeJs package that will provide core functionality for including astrological charts in projects.
License: MIT License
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!
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.
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!
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.
can i use it under React Native ?
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.