Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host live demos of JavaScript browser examples #49

Open
cosinekitty opened this issue Jul 10, 2019 · 8 comments
Open

Host live demos of JavaScript browser examples #49

cosinekitty opened this issue Jul 10, 2019 · 8 comments
Assignees
Labels
documentation Tutorials, explanations, reference documents, etc.

Comments

@cosinekitty
Copy link
Owner

I was trying to use GitHub Pages just so I could host live demos of the JavaScript browser examples. It worked, but at the cost of having two different versions of this project with different Markdown renderers. I have turned off GitHub Pages. Now I need to create my own static website just for hosting the demos. Also need to automate the process of publishing there every time I hit a stable release.

@cosinekitty cosinekitty added the documentation Tutorials, explanations, reference documents, etc. label Jul 10, 2019
@cosinekitty cosinekitty self-assigned this Jul 10, 2019
@matheo
Copy link
Collaborator

matheo commented Feb 2, 2021

I could help here with an Angular App (my speciality) to show up some cool examples on the top of the engine.
I want to learn how to render some stuff with the result data, and if I get some help from you we can get it done :)

@cosinekitty
Copy link
Owner Author

Hi @matheo ! I'm glad you are interested in contributing. Yes, it would be helpful to have more examples of using Astronomy Engine in some real-world applications. I don't know very much about Angular, React, etc. My goal is to keep Astronomy Engine free of any external dependencies for all the supported languages (C/C++, C#, Python, JavaScript). However, examples and demos can have external dependencies so long as they do not creep into the core libraries.

Do you have any ideas of a project you would like to build? I can definitely help with figuring out how to do various calculations.

@matheo
Copy link
Collaborator

matheo commented Feb 2, 2021

examples and demos can have external dependencies so long as they do not creep into the core libraries.

of course, the demo app should be consuming the engine from npm (but it also could use an astronomy.js file as the existing demos.

Do you have any ideas of a project you would like to build?

Initially I want to find some cool 3D stuff like https://sanderblue.github.io/solar-system-threejs/ and try to model the engine data with such fancy displaying for a given AstroTime. In that view we could documebt the Observers.

Then for the Coordinate systems we could use another perspective from https://github.com/ofrohn/d3-celestial

So I'm thinking about an Angular App with the Documentation next to cool animations, and Demo usages with the Moon Phases, Rise/Set, Eclipses, etc.

I can definitely help with figuring out how to do various calculations.

Thank you very much
I will study and come back with some questions when I have them :)

@faisalr
Copy link

faisalr commented Dec 26, 2022

Hi @cosinekitty

I hosted a live demo here https://faisalr.github.io/

@cosinekitty
Copy link
Owner Author

That looks great! Thank you for doing that. I noticed that you ask for the geographic location, but you are not using it, so the altitude and azimuth angles of the Moon are not correct for where I live. The code has a fixed latitude and longitude:

let observer = new Astronomy.Observer(33, 33, 0);

@faisalr
Copy link

faisalr commented Dec 29, 2022

I fixed the demo.

Can you check the numbers are correct?

@cosinekitty
Copy link
Owner Author

Yes, I entered my geographic coordinates and all the numbers look correct. That is great! May I add a link to it from the browser demo page?

@faisalr
Copy link

faisalr commented Dec 29, 2022

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Tutorials, explanations, reference documents, etc.
Projects
None yet
Development

No branches or pull requests

3 participants