a simple site to track satellite using open apis
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Hours of headaches later I HAVE DONE IT.
I spent a lot of time just thinking and working it out. I'm just so annoyed. it felt like it was gonna be a simple project. it ended up being way harder than I expected.
It was about 5 hours of coding, but so much more time just spent bashing my head against a wall.
Okay so I ditched my own algo as its was insanely incorrect and I'm and working on it being better but for now but now look at this. THIS TOOK WAY TO LONGG
Another dev log time. i have set up a node server to stream the json data and i finally rendered all the satellites
red dot is my calculations and green is the real data. i can see how far off my calcs are. its insane :(
okay now works for json. and il work on the map after i sleep this was some real 3 am coding work and it was pain.
Well so what is J2. so earth is not a perfect round its fatter around the middle. Earths chubbiness ig is the j2 and it makes orbits wobble. so for better estimates I needed to calculate it. also needed to calculate drag for low earth sats. so i did that. this has effort reaffirmed what i know in school I'm good at maths if i have the equations anway enjoy more code :)))))
UPDATE LETS GOO so i got the lip down it taking wayyyy to long imo.
so im hating maths now but i love how this works next on the list is to get real geo cords and then put them on a map butt progress is going. anway enjoy some more of the 3 am code
OKAY MATHS I HATE IT. after research i needed a SGP4 Library and i thought im good at physics il make it my self. annnnnndddd the answer is why did i do this to myself. anyway here a code snippet from my lib for now
Ima write a step by step how I'm building this ig. Well I thought about using and API but then rate limiting and how certain sites use APIs like Space-Track.org use cookies and CelesTrak has no API, N2YO API only has objects above you. I'm going to get data from CelesTrak and then use TLE data (i just learnt about) and build my own js lib to use the TLE data to get the current pos in the sky. enjoy my project structure :)