Skip to content

Commit

Permalink
eslint + readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Mar 2, 2019
1 parent a852ed6 commit f55fa4b
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 146 deletions.
213 changes: 75 additions & 138 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p align="center"><img src="https://farm8.staticflickr.com/7889/46259778995_68130be69d_o.jpg"></p>
<p align="center"><img src="https://farm5.staticflickr.com/4882/39684490143_6ca2a58d37_k.jpg"></p>

<h1 align="center">SpaceX REST API</h1>

Expand Down Expand Up @@ -28,30 +28,32 @@ curl -s https://api.spacexdata.com/v3/launches/latest | jq

```json
{
"flight_number": 75,
"mission_name": "Nusantara Satu (PSN-6) / S5 / Beresheet",
"mission_id": [],
"flight_number": 76,
"mission_name": "CCtCap Demo Mission 1",
"mission_id": [
"EE86F74"
],
"launch_year": "2019",
"launch_date_unix": 1550799900,
"launch_date_utc": "2019-02-22T01:45:00.000Z",
"launch_date_local": "2019-02-21T20:45:00-05:00",
"launch_date_unix": 1551512700,
"launch_date_utc": "2019-03-02T07:45:00.000Z",
"launch_date_local": "2019-03-02T02:45:00-05:00",
"is_tentative": false,
"tentative_max_precision": "hour",
"tbd": false,
"launch_window": 1920,
"launch_window": 0,
"rocket": {
"rocket_id": "falcon9",
"rocket_name": "Falcon 9",
"rocket_type": "FT",
"first_stage": {
"cores": [
{
"core_serial": "B1048",
"flight": 3,
"core_serial": "B1051",
"flight": 1,
"block": 5,
"gridfins": true,
"legs": true,
"reused": true,
"reused": false,
"land_success": true,
"landing_intent": true,
"landing_type": "ASDS",
Expand All @@ -63,149 +65,87 @@ curl -s https://api.spacexdata.com/v3/launches/latest | jq
"block": 5,
"payloads": [
{
"payload_id": "Nusantara Satu (PSN-6)",
"payload_id": "CCtCap Demo Mission 1",
"norad_id": [
44048
],
"reused": false,
"customers": [
"Pasifik Satelit Nusantara"
44063
],
"nationality": "Indonesia",
"manufacturer": "SSL",
"payload_type": "Satellite",
"payload_mass_kg": 5000,
"payload_mass_lbs": 11023.11,
"orbit": "GTO",
"orbit_params": {
"reference_system": "geocenteric",
"regime": "geostationary",
"longitude": 146,
"semi_major_axis_km": 44995.626,
"eccentricity": 0.6723643,
"periapsis_km": 8364.038,
"apoapsis_km": 68870.944,
"inclination_deg": 12.1348,
"period_min": 1583.124,
"lifespan_years": 15,
"epoch": "2019-02-24T06:14:19.000Z",
"mean_motion": 0.90959342,
"raan": 10.6904,
"arg_of_pericenter": 180.602,
"mean_anomaly": 339.0784
}
},
{
"payload_id": "S5",
"norad_id": [],
"cap_serial": "C201",
"reused": false,
"customers": [
"Air Force Research Laboratory"
"NASA (CCtCap)"
],
"nationality": "United States",
"manufacturer": "Applied Defense Systems",
"payload_type": "Satellite",
"payload_mass_kg": 60,
"payload_mass_lbs": 132.28,
"orbit": "GTO",
"manufacturer": "SpaceX",
"payload_type": "Crew Dragon",
"payload_mass_kg": 12259,
"payload_mass_lbs": 27026.47,
"orbit": "ISS",
"orbit_params": {
"reference_system": "geocentric",
"regime": "geostationary",
"regime": "low-earth",
"longitude": null,
"semi_major_axis_km": null,
"eccentricity": null,
"periapsis_km": null,
"apoapsis_km": null,
"inclination_deg": null,
"period_min": null,
"semi_major_axis_km": 6671.344,
"eccentricity": 0.0087165,
"periapsis_km": 235.058,
"apoapsis_km": 351.36,
"inclination_deg": 51.6368,
"period_min": 90.381,
"lifespan_years": null,
"epoch": null,
"mean_motion": null,
"raan": null,
"arg_of_pericenter": null,
"mean_anomaly": null
}
},
{
"payload_id": "Beresheet",
"norad_id": [
44049
],
"reused": false,
"customers": [
"SpaceIL"
],
"nationality": "Israel",
"manufacturer": "SSL",
"payload_type": "Lander",
"payload_mass_kg": 585,
"payload_mass_lbs": 1289.7,
"orbit": "GTO",
"orbit_params": {
"reference_system": "geocenteric",
"regime": "highly-elliptical",
"longitude": null,
"semi_major_axis_km": 40963.344,
"eccentricity": 0.8391448,
"periapsis_km": 211.031,
"apoapsis_km": 68959.387,
"inclination_deg": 27.578,
"period_min": 1375.158,
"lifespan_years": 0.00547945,
"epoch": "2019-02-24T03:50:24.000Z",
"mean_motion": 1.04715181,
"raan": 10.711,
"arg_of_pericenter": 180.362,
"mean_anomaly": 325.304
}
"epoch": "2019-03-02T15:41:00.000Z",
"mean_motion": 15.93245467,
"raan": 171.0737,
"arg_of_pericenter": 56.5274,
"mean_anomaly": 41.0649
},
"mass_returned_kg": null,
"mass_returned_lbs": null,
"flight_time_sec": null,
"cargo_manifest": null
}
]
},
"fairings": {
"reused": false,
"recovery_attempt": false,
"recovered": false,
"ship": null
}
"fairings": null
},
"ships": [
"OCISLY"
],
"telemetry": {
"flight_club": null
"flight_club": "https://www2.flightclub.io/result/2d?code=DEM1"
},
"launch_site": {
"site_id": "ccafs_slc_40",
"site_name": "CCAFS SLC 40",
"site_name_long": "Cape Canaveral Air Force Station Space Launch Complex 40"
"site_id": "ksc_lc_39a",
"site_name": "KSC LC 39A",
"site_name_long": "Kennedy Space Center Historic Launch Complex 39A"
},
"launch_success": true,
"links": {
"mission_patch": "https://images2.imgbox.com/1c/8e/rJ4HAYkk_o.png",
"mission_patch_small": "https://images2.imgbox.com/50/65/wAkWv7k7_o.png",
"reddit_campaign": "https://www.reddit.com/r/spacex/comments/afxyrd/nusantara_satu_launch_campaign_thread/",
"reddit_launch": "https://www.reddit.com/r/spacex/comments/assxjz/rspacex_psnvi_official_launch_discussion_updates/",
"reddit_recovery": "https://www.reddit.com/r/spacex/comments/atbmp3/psnvi_recovery_discussion_updates_thread/",
"reddit_media": "https://www.reddit.com/r/spacex/comments/at5mu8/rspacex_psn6_media_thread_videos_images_gifs/",
"presskit": "https://www.spacex.com/sites/spacex/files/nusantara_satu_press_kit.pdf",
"article_link": "https://spaceflightnow.com/2019/02/22/israeli-moon-lander-hitches-ride-on-spacex-launch-with-indonesian-comsat/",
"wikipedia": "https://en.wikipedia.org/wiki/PT_Pasifik_Satelit_Nusantara",
"video_link": "https://www.youtube.com/watch?v=XS0E35aYJcU",
"youtube_id": "XS0E35aYJcU",
"mission_patch": "https://images2.imgbox.com/e6/a4/YKd36su1_o.png",
"mission_patch_small": "https://images2.imgbox.com/be/7e/gOkzvXPe_o.png",
"reddit_campaign": "https://www.reddit.com/r/spacex/comments/a65clm/dm1_launch_campaign_thread/",
"reddit_launch": "https://www.reddit.com/r/spacex/comments/av1asz/rspacex_cctcap_demo_mission_1_official_launch/",
"reddit_recovery": null,
"reddit_media": "https://www.reddit.com/r/spacex/comments/aw6g7j/rspacex_cctcap_demo_mission_1_media_thread_videos/",
"presskit": "https://www.spacex.com/sites/spacex/files/crew_demo-1_press_kit.pdf",
"article_link": "https://spaceflightnow.com/2019/03/02/spacex-launches-first-crew-dragon-ferry-ship/",
"wikipedia": "https://en.wikipedia.org/wiki/SpX-DM1",
"video_link": "https://youtu.be/2ZL0tbOZYhE",
"youtube_id": "2ZL0tbOZYhE",
"flickr_images": [
"https://farm8.staticflickr.com/7800/47173936271_b8ddb5bc5b_o.jpg",
"https://farm8.staticflickr.com/7821/47121969172_37428a280e_o.jpg",
"https://farm8.staticflickr.com/7923/47173936181_c0bf7a22a6_o.jpg",
"https://farm8.staticflickr.com/7829/46259779115_8982c2c8c2_o.jpg",
"https://farm8.staticflickr.com/7889/46259778995_68130be69d_o.jpg"
"https://farm8.staticflickr.com/7851/46535572784_7eb295968e_o.jpg",
"https://farm8.staticflickr.com/7826/46535572564_a022f9c43a_o.jpg",
"https://farm8.staticflickr.com/7889/40294395933_f429c12e83_o.jpg",
"https://farm8.staticflickr.com/7914/40294395873_0a328f2d87_o.jpg",
"https://farm8.staticflickr.com/7866/46535572294_22499c1223_o.jpg",
"https://farm8.staticflickr.com/7850/46535573034_03da10f899_o.jpg",
"https://farm8.staticflickr.com/7848/46535572664_316c466742_o.jpg"
]
},
"details": "SpaceX will launch this rideshare to GTO for Space Systems Loral (SSL). The primary payload for this mission is Nusantara Satu, a communications satellite built by SSL for the private Indonesian company PT Pasifik Satelit Nusantara (PSN). Spaceflight Industries' GTO-1 mission consists of two secondary payloads. One of those is Beresheet, the lunar lander built by the Israeli non-profit organization, SpaceIL. Beresheet will make its own way to the moon from GTO. The other secondary is Air Force Research Lab's (Space Situational Awareness) S5 mission, which hitches a ride to GEO aboard Nusantara Satu. This mission launches from SLC-40 at Cape Canaveral AFS. The booster is expected to land on OCISLY.",
"details": "Demonstration Mission 1 (DM-1) will launch Dragon 2 as part of NASA's Commercial Crew Transportation Capability program. This mission will demonstrate Dragon 2, and Falcon 9 in its configuration for crewed missions. DM-1 will launch from LC-39A at Kennedy Space Center, likely carrying some cargo to the International Space Station. The booster is expected to land on OCISLY.",
"upcoming": false,
"static_fire_date_utc": "2019-02-18T17:03:00.000Z",
"static_fire_date_unix": 1550509380,
"static_fire_date_utc": "2019-01-24T19:03:00.000Z",
"static_fire_date_unix": 1548356580,
"timeline": {
"webcast_liftoff": 719,
"webcast_liftoff": 2941,
"go_for_prop_loading": -2280,
"rp1_loading": -2100,
"stage1_lox_loading": -2100,
Expand All @@ -216,18 +156,15 @@ curl -s https://api.spacexdata.com/v3/launches/latest | jq
"go_for_launch": -45,
"ignition": -3,
"liftoff": 0,
"maxq": 67,
"meco": 157,
"stage_sep": 160,
"second_stage_ignition": 168,
"fairing_deploy": 226,
"first_stage_entry_burn": 404,
"seco-1": 487,
"first_stage_landing": 512,
"second_stage_restart": 1623,
"seco-2": 1688,
"payload_deploy_1": 2019,
"payload_deploy_2": 2678
"maxq": 58,
"meco": 155,
"stage_sep": 158,
"second_stage_ignition": 162,
"first_stage_entry_burn": 468,
"seco-1": 539,
"first_stage_landing_burn": 564,
"first_stage_landing": 592,
"dragon_separation": 660
}
}
```
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"shelljs": "^0.8.3"
},
"devDependencies": {
"eslint": "^5.14.0",
"eslint": "^5.15.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jest": "^22.3.0",
Expand Down

0 comments on commit f55fa4b

Please sign in to comment.