r-spacex / spacexstats-react Goto Github PK
View Code? Open in Web Editor NEWSpaceXStats, with React and using the SpaceX API
Home Page: https://www.spacexstats.xyz
SpaceXStats, with React and using the SpaceX API
Home Page: https://www.spacexstats.xyz
${format(turnarounds.lastLaunchDate, 'MMMM YYYY')}
in main.js line 52 returns an invalid date error that is then shown in the text. As of today the launch data for the last launch is for Iridium NEXT 8 (Launch 74) which includes a launch date in its JSON from the SpaceX-API. Therefore probably some date manipulation is done incorrectly.
Planned/Failed launches and launches with no recovery attempts would have same visualization as it is now on Launch History graph.
But all of the launches with attempts of first stage recovery can have its bar split in two halves. Left would represent the launcher (New/Used) and right would show landing/recovery status (similar to current Landing history graph).
Add upcoming launches as a tab next to the "next launch" tab add upcoming launches. Its supported by the API already as far as i can tell. (https://api.spacexdata.com/v2/launches/upcoming) I would be willing to help implementing this, although I don't really know a good design for it yet.
From /u/retiringonmars:
I spotted few errors with respect to pad turnaround in SpaceXStats:
Other wise, great work, guys!
https://github.com/r-spacex/spacexstats-react/blob/master/src/components/blocks/Dragon/charts/commercialCrewFlights.ts#L34 incorrectly assumes that flight time of the payload.dragon
is invalid when payload.reused is set, and thus defaults to 0.
I think that that is incorrect.
Currently, this means that flights with reused capsules are displayed as if they had 0 flight time, which is obviously incorrect.
There is no information when the page was updated.
Hi. I just wanted to notify you that the spacexstats.xyz site does not work with https. It looks like there's a problem with your certificate setup, rather than simply not having a cert at all.
Error message in Chrome: ERR_SSL_PROTOCOL_ERROR
Error message in Firefox: SSL_ERROR_INTERNAL_ERROR_ALERT
I have brought this up before but your launch count is still incorrect. On the site it states that there have been 44 Falcon 9 flights, clearly including Amos-6. But there only have been 43 launches so far. Amos-6 didn't launch. If you want to include Amos-6, please rename the section to 'Mission count' but I would prefer you just change the counter.
Two astronauts are now flying on a Dragon :-)
If you open the stats page the launch timer is running a little bit too slow. I had it open for about an hour to track the next launch (Zuma) and it lost about 10 mins so an considerable amount.
I assume the timer initiates once with the time from the api and then runs in the JS on the client and that thread was too slow.
Proposition would be:
a) change the JS on client to avoid this
b) regulary resync with the server (this would also avoid missing a scrub or postponmend during an open window)
I dont know how many people use the page for this pupose so maybe it is a low priority issue.
Hey, I noticed that the HTML returned by http://www.spacexstats.xyz/ doesn't start with a doctype (<!DOCTYPE html>
).
I'm not familiar with React, so please close if I'm just missing something and it's intentional. But I thought it's generally a good idea to declare a doctype, or browsers will render it in quirks mode.
On the top-right side of Next Launch, it display time in user's local time.
However, it show (UTC)
instead of user's time zone.
I think it should display user's timezone in case of user miss the launch.
What do you guys think about it?
CRS 23 indicates 2810 hours of flight time, but the flight time is similar to previous missions, about one month, or 700-800 hours.
https://www.spacexstats.xyz/#dragon-crs
From wikipedia:
Launch date 29 August 2021, 07:14:49 UTC
Landing date 1 October 2021, 02:57 UTC
u/Bailliesa in SpaceX thread comment requested feature:
heaviest LEO/GTO with booster landing (ASDS/JRTI/RTLS)
Currently it says:
As of October 2017, ...
The date is hard coded into the text. Should either be a date variable showing the current date or like in the F9 Tab
To date,
I would have created a pull request, but i am not familiar with the setup, sorry.
the site is no longer reachable under spacexstats.xyz www.spacexstats.xyz does still work. is this intentional?
The last panel showing Elon Musk's bet, Time since founding and Falcon Heavy is a bit off for the Falcon Heavy slide, showing a launch in 5 days.
Or maybe it's the deadline given by an official ? The website is then unclear.
u/Bailliesa in SpaceX thread comment requested feature:
Add payload mass as a subscript to the launch count ie Falcon 9 - 49 launches (xxx total payload mass)
The payloads section Starlink tab currently still shows 2 satellites when it should now be 62. This appears to be coming from a hard-coded "internetConstellation" variable in /app/helpers/payloads.js. I don't see any way this data could be pulled from the API currently as the number 60 is not anywhere in the data about the Starlink launch. Perhaps a temporary solution could be to count the number of launches containing "Starlink" in the mission_name, multiply by 60, and subtract 58 (for the Paz/Tin-Tin mission). This of course is not ideal as it assumes every launch from here on out will have 60 satellites, but it would be more correct than the current hard-coding.
The launch history graph still shows 10 planned launches as part of the initial goal of 30 for 2018, which obviously is not going to happen at this point. Planned launches should either be removed or be based on the launches/upcoming API endpoint to prevent this from being an issue in the future.
That should be ok, I have six months to do it
If necessary, i will propose a new Front to better organize data, like :
Below the Falcon 9 Launch Count, it is stated that Falcon 9 "is not far from its last iteration (Falcon 9 v1.2 Block 5) enabling rapid reusability." They have now reached Block 5, so the not far from wording could be removed. My suggestion:
It is currently flying in its final iteration (Falcon 9 v1.2 Block 5) enabling rapid reusability.
When hovering over the b1060, b1058 and b1051 sections in the reuse bar chart, their tool tips showing which missions they have launched are cut off as they are single lines which are longer than the divs they are contained in.
Add some line breaks, or make the list of missions bullet pointed?
u/Bailliesa in SpaceX thread comment requested feature:
total up mass by year (similar to launches)
API is giving:
...
{
"flight_number": 72,
"mission_name": "CRS-16",
"mission_id": [
"EE86F74"
],
"launch_year": "2018",
"launch_date_unix": 1543948680,
"launch_date_utc": "2018-12-04T18:38:00.000Z",
...
but website is showing:
CRS-16 | Dec 4th 2018, 06:38 | Falcon 9 | CCAFS SLC 40
Note the 06:38 should be 18:38
For example, today, where Zuma is was due to launch NOV 18TH, 1:00:00AM (UTC+00:00). Loading the website will say 1DAYS 13HOURS 41MINUTES 21SECONDS and then the clock will count down. When actually we are getting further away from the launch date, refreshing the page then demonstrates this.
Would it be possible to have a launch date calculation and counter that appreciated negative numbers and so could display the timer as overdue?
Edit:
I link this might be the responsible line
spacexstats-react/app/components/stats/TimeStat.js
Lines 46 to 47 in dda9336
With the countdown timer written here:
spacexstats-react/app/components/stats/TimeStat.js
Lines 54 to 73 in dda9336
Unfortunately, I don't have enough experience with react to fork, tweak this and test it myself. Although with the instructions on the README.md I may have a go when I get a moment!
As of October 2017, SpaceX has launched 54 rockets, carrying a variety of payloads to multiple destinations;including LEO, GTO, L1, and the ISS. SpaceX currently has a manifest of over 70 flights that will fly over the coming years.
Pretty sure that should be As of $MONTH_OF_LAST_LAUNCH_UPDATE
. Perhaps you could calculate the month of turnaroundsData.lastLaunchDate
and just put that in place of the hardcoded month?
Great page. I come there to find some data about re-using of the fairings. I'd love to see more detailed data about the fairings, e.g. which fairings re-flew how often, was it scooped from the water of caught by the net?
Feel free to close this issue if you feel it's inappropriate.
In the last panel (same as #23), the number of hours worked is countless. Beyond the joke, it would be interesting to put an estimation of man-hours put into the project.
I'm curious if there is any way to calculate up mass to orbit per launch.
I would be very entertained watching mass to orbit count up during the year, and especially per booster.
F9 is quite a bit smaller than Saturn V sure...but at some point the actual delivered mass to orbit by a single booster will get there. ... won't get it to the moon...but it will still be an interesting milestone.
Possibly this is out of jurisdiction for this site, but there are many launches observable for 2023 on https://www.spacelaunchschedule.com/ or https://spacelaunchnow.me/launch/upcoming/ or other sites. I don't know who owns api.spacexdata.com and why it's not updating. I polled the https://api.spacexdata.com/v5/launches endpoint with a REST client and really the last item was from December.
Follow-up to r-spacex/SpaceX-API/issues/52
I just discovered, cloned, installed, compiled and opened this app, and it's rather nice.
I'd suggest hosting on Vercel (they have a free tier available): https://vercel.com/
Their service has automated CI/CD stuff, so you don't have to do much for that.
Consider checking it out
https://something.vercel.app
) to the README.mdA 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.