Flowm / satvis

Satellite orbit visualization and pass prediction with Cesium.js
https://satvis.space
MIT License
297 stars 103 forks source link

Document query parameters #7

Open Flowm opened 5 years ago

Flowm commented 5 years ago

Document the currently available query parameters.

Example query params: https://satvis.space/?gs=48.2663,11.6683&sat=MOVE-II

dom-robinson commented 3 years ago

These queries are interesting - I seem to be able to query with gs= and get the ground stations, but whatever i do with the sat= setting the satvis.space page seems to default to the MOVE satellites. Looking through the source I found what i assume is the default setup in embedded.html, but attempts to work from that to make https://satvis.space/?elements=Point,Label,Orbit&layers=OfflineHighres&gs=50.99,-0.199&tag=METEOR-M%202&sat=METEOR-M%202 default to showing Meteor-M2 around my Lat/Lon dont work - it always defaults to MOVE (althpugh the gs= and elements= settings seem to work, so I assume the hosted system on satvis.space is forcing the default MOVE satellites?). For my limited amount of use I

Is there a 'trick' in the URL formation or something missing?

Happy to help with the documentation - I am still picking through the source to find out where and how it is all handled.

(amazing project by the way :)

dom-robinson commented 3 years ago

So after quite some picking through code https://satvis.space/?elements=Point,Label,Orbit%20track,Sensor%20cone&layers=OfflineHighres&gs=50.8515,-0.1446&tags=Weather&sat=NOAA%2018

Now takes me direct to NOAA18. Which is awesome.

But since i only track the Amatuer APT signals i would ideally like to show NOAA 15,18,19 and METEOR-M2, but given this would seem to require a custom 'tag' or some other way to define this list and having gone through the code I think my query above is likely to be as good as I can do without forking / self hosting and modifying the source..

..unless I am missing something :)

Flowm commented 3 years ago

Hey there, sorry for the slow response as always, quite busy with other projects during the week.

Right now it is only possible to enable/disable groups of satellites based on their tags through the URL params. The sat params determines which satellite is tracked/ focused on so only allows a single satellite.

Exposing the active satellites directly seems like a useful thing for multiple use cases, I'll try to add it in the next few weeks.

dom-robinson commented 3 years ago

Awesome!

dom-robinson commented 3 years ago

Hey @Flowm - wondering if you wanted to point me at the logic around the tags if it would be as simple as me creating a tag containing Noaa 15,18 and 19, and METEOR M 2 (and offering a PR) which are the 4 that the amateur sat chasers are hungry for. For context, last autumn I embedded Satvis in my own weather satellite project which caught the eye of the folks driving https://github.com/jekhokie/raspberry-noaa-v2 so the embed and my hotlinks to the satellites in satvis have been included as an option :) - I am now quite active with that group. At the moment the issue is that when you hot link you still have many other default satellites showing which are not the 4 being tracked! (Hence the interest to polish that corner :) )

dom-robinson commented 3 years ago

Hey @Flowm - I had a read of the code and worked out what might be a way forward. The tags are populated by the contents of the tle files from NORAD. we kinda need a shortlist 'grepped' from the weather.txt to be 'Amweather.txt' or similar which only contains the Noaa 15,18,19 and Meteor M2 satellites. Then we can pull the tag in this way and only show the 4 we are keen on:

https://satvis.space/?elements=Point,Label,Orbit%20track,Sensor%20cone&layers=OfflineHighres&tags=Amweather

I realise its a bit tall to ask you to make that tweak on your hosted version, but if you do that would 'solve' (or at least workaround) the issue our side :)