Anyone figured out what other info can be derived from the API? Maybe a piston that calls on that API and kicks back all the data available? Maybe it can provide more detailed info
Rocket Launch Notifications via API
VALID (RFC 8259)
Formatted JSON Data
{
"valid_auth":false,
"count":5,
"limit":5,
"total":162,
"last_page":33,
"result":[
{
"id":148,
"cospar_id":"",
"sort_date":"1590339600",
"name":"LauncherOne Flight 1",
"provider":{
"id":34,
"name":"Virgin Orbit",
"slug":"virgin-orbit"
},
"vehicle":{
"id":25,
"name":"LauncherOne",
"company_id":34,
"slug":"launcherone"
},
"pad":{
"id":87,
"name":"Cosmic Girl, 747-400 - Runway 12\/30",
"location":{
"id":83,
"name":"Mojave Air and Space Port",
"state":"CA",
"statename":"California",
"country":"United States",
"slug":"mojave-air-and-space"
}
},
"missions":[
{
"id":143,
"name":"LauncherOne Flight 1",
"description":"Under development by Virgin Orbit since 2007, LauncherOne is an air launched rocket for small satellite payloads."
}
],
"mission_description":"Under development by Virgin Orbit since 2007, LauncherOne is an air launched rocket for small satellite payloads.",
"launch_description":"A Virgin Orbit LauncherOne rocket will launch the LauncherOne Flight 1 mission on Sunday, May 24, 2020 at 5:00 PM (UTC).",
"win_open":"2020-05-24T17:00Z",
"t0":null,
"win_close":"2020-05-24T21:00Z",
"est_date":{
"month":null,
"day":null,
"year":null,
"quarter":null
},
"date_str":"May 24",
"tags":[
{
"id":19,
"text":"Air Launch"
},
{
"id":66,
"text":"No Live Video Expected"
},
{
"id":23,
"text":"Test Flight"
},
{
"id":14,
"text":"Vehicle Debut"
}
],
"slug":"test-flight-1",
"weather_summary":null,
"weather_temp":null,
"weather_icon":null,
"weather_updated":null,
"quicktext":"LauncherOne - LauncherOne Flight 1 - Sun May 24, 2020 17:00:00 UTC (L-2 days, 01:45:32) - https:\/\/rocketlaunch.live\/launch\/test-flight-1 for info\/stream",
"media":[
],
"result":-1,
"suborbital":false,
"modified":"2020-05-22T12:43:06+00:00"
},
{
"id":92,
"cospar_id":"",
"sort_date":"1590611520",
"name":"Crew Dragon Demo-2 (DM-2)",
"provider":{
"id":1,
"name":"SpaceX",
"slug":"spacex"
},
"vehicle":{
"id":1,
"name":"Falcon 9",
"company_id":1,
"slug":"falcon-9"
},
"pad":{
"id":2,
"name":"LC-39A",
"location":{
"id":61,
"name":"Kennedy Space Center",
"state":"FL",
"statename":"Florida",
"country":"United States",
"slug":"kennedy-space-center"
}
},
"missions":[
{
"id":89,
"name":"Crew Dragon Demo-2 (DM-2)",
"description":"For the first time since the last flight of the Space Shuttle in 2011, U.S. astronauts will go to orbit from American soil. As part of NASA's Commercial Crew Program, SpaceX's Falcon 9 will launch the Crew Dragon spacecraft to the International Space Station."
}
],
"mission_description":"For the first time since the last flight of the Space Shuttle in 2011, U.S. astronauts will go to orbit from American soil. As part of NASA's Commercial Crew Program, SpaceX's Falcon 9 will launch the Crew Dragon spacecraft to the International Space Station.",
"launch_description":"A SpaceX Falcon 9 rocket will launch the Crew Dragon Demo-2 (DM-2) mission on Wednesday, May 27, 2020 at 8:32 PM (UTC).",
"win_open":"2020-05-27T20:32Z",
"t0":null,
"win_close":null,
"est_date":{
"month":null,
"day":null,
"year":null,
"quarter":null
},
"date_str":"May 27",
"tags":[
{
"id":96,
"text":"B1058"
},
{
"id":22,
"text":"Commercial Crew Program (CCP)"
},
{
"id":9,
"text":"Crewed"
},
{
"id":2,
"text":"Droneship Landing"
}
],
"slug":"crew-dragon-demo-2-d",
"weather_summary":"Overcast\nTemp: 82.69F\nWind: 11.06mph\n",
"weather_temp":82,
"weather_icon":"wi-cloudy",
"weather_updated":"2020-05-22T12:00:24+00:00",
"quicktext":"Falcon 9 - Crew Dragon Demo-2 (DM-2) - Wed May 27, 2020 20:32:00 UTC (L-5 days, 05:17:32) - https:\/\/rocketlaunch.live\/launch\/crew-dragon-demo-2-d for info\/stream",
"media":[
],
"result":-1,
"suborbital":false,
"modified":"2020-05-21T17:25:48+00:00"
},
{
"id":295,
"cospar_id":"",
"sort_date":"1592524796",
"name":"SSMS (POC)",
"provider":{
"id":4,
"name":"Arianespace",
"slug":"arianespace"
},
"vehicle":{
"id":11,
"name":"Vega",
"company_id":4,
"slug":"vega"
},
"pad":{
"id":18,
"name":"ELV",
"location":{
"id":70,
"name":"Guiana Space Centre",
"state":null,
"statename":null,
"country":"French Guiana",
"slug":"guiana-space-centre"
}
},
"missions":[
{
"id":285,
"name":"SSMS (POC)",
"description":null
}
],
"mission_description":null,
"launch_description":"An Arianespace Vega rocket will launch the SSMS (POC) mission. The launch date is currently targeted for June 18, 2020 (UTC).",
"win_open":null,
"t0":null,
"win_close":null,
"est_date":{
"month":6,
"day":18,
"year":2020,
"quarter":null
},
"date_str":"Jun 18",
"tags":[
],
"slug":"ssms-poc",
"weather_summary":"Humid and Mostly Cloudy\nTemp: 80.44F\nWind: 8.81mph\n",
"weather_temp":80,
"weather_icon":"wi-night-alt-cloudy",
"weather_updated":"2020-03-16T12:00:29+00:00",
"quicktext":"Vega - SSMS (POC) - Jun 18 (estimated) - https:\/\/rocketlaunch.live\/launch\/ssms-poc for info\/stream",
"media":[
],
"result":-1,
"suborbital":false,
"modified":"2020-05-12T13:44:19+00:00"
},
{
"id":189,
"cospar_id":"",
"sort_date":"1593561597",
"name":"GPS III SV03 (Columbus)",
"provider":{
"id":1,
"name":"SpaceX",
"slug":"spacex"
},
"vehicle":{
"id":1,
"name":"Falcon 9",
"company_id":1,
"slug":"falcon-9"
},
"pad":{
"id":3,
"name":"SLC-40",
"location":{
"id":62,
"name":"Cape Canaveral AFS",
"state":"FL",
"statename":"Florida",
"country":"United States",
"slug":"cape-canaveral-afs"
}
},
"missions":[
{
"id":182,
"name":"GPS III SV03 (Columbus)",
"description":null
}
],
"mission_description":null,
"launch_description":"A SpaceX Falcon 9 rocket will launch the GPS III SV03 (Columbus) mission. The launch date is currently targeted for June, 2020 (UTC).",
"win_open":null,
"t0":null,
"win_close":null,
"est_date":{
"month":6,
"day":null,
"year":2020,
"quarter":null
},
"date_str":"Jun 2020",
"tags":[
{
"id":26,
"text":"Navigation Satellite"
},
{
"id":70,
"text":"Series: GPS"
}
],
"slug":"gps-iii-2",
"weather_summary":"Clear\nTemp: 70.04F\nWind: 6.46mph\n",
"weather_temp":70,
"weather_icon":"wi-day-sunny",
"weather_updated":"2020-04-07T12:00:16+00:00",
"quicktext":"Falcon 9 - GPS III SV03 (Columbus) - Jun 2020 (estimated) - https:\/\/rocketlaunch.live\/launch\/gps-iii-2 for info\/stream",
"media":[
],
"result":-1,
"suborbital":false,
"modified":"2020-04-07T21:52:36+00:00"
},
{
"id":636,
"cospar_id":"",
"sort_date":"1593561597",
"name":"Starlink-8",
"provider":{
"id":1,
"name":"SpaceX",
"slug":"spacex"
},
"vehicle":{
"id":1,
"name":"Falcon 9",
"company_id":1,
"slug":"falcon-9"
},
"pad":{
"id":3,
"name":"SLC-40",
"location":{
"id":62,
"name":"Cape Canaveral AFS",
"state":"FL",
"statename":"Florida",
"country":"United States",
"slug":"cape-canaveral-afs"
}
},
"missions":[
{
"id":664,
"name":"Starlink-8",
"description":null
}
],
"mission_description":null,
"launch_description":"A SpaceX Falcon 9 rocket will launch the Starlink-8 mission. The launch date is currently targeted for June, 2020 (UTC).",
"win_open":null,
"t0":null,
"win_close":null,
"est_date":{
"month":6,
"day":null,
"year":2020,
"quarter":null
},
"date_str":"Jun 2020",
"tags":[
{
"id":74,
"text":"B1049"
},
{
"id":24,
"text":"Communications Satellite"
},
{
"id":92,
"text":"Series: SpaceX Starlink"
}
],
"slug":"starlink-8",
"weather_summary":"Partly Cloudy\nTemp: 72.32F\nWind: 12.85mph\n",
"weather_temp":72,
"weather_icon":"wi-night-alt-cloudy",
"weather_updated":"2020-05-18T12:00:20+00:00",
"quicktext":"Falcon 9 - Starlink-8 - Jun 2020 (estimated) - https:\/\/rocketlaunch.live\/launch\/starlink-8 for info\/stream",
"media":[
],
"result":-1,
"suborbital":false,
"modified":"2020-05-18T13:04:00+00:00"
}
]
}
Thats a lot of data, and also beyond my scope of how to integrate into a piston. Maybe someone can help me in the right direction? Looking to add âmission descriptionâ but only on the ones from FL which is the original piston idea.
I believe this data will be found in this list:
-
$response.result[0].missions[0].description
= âUnder development by Virgin Orbit since 2007, LauncherOne is an air launched rocket for small satellite payloads.â -
$response.result[1].missions[0].description
= âFor the first time since the last flight of the Space Shuttle in 2011, U.S. astronauts will go to orbit from American soil. As part of NASAâs Commercial Crew Program, SpaceXâs Falcon 9 will launch the Crew Dragon spacecraft to the International Space Station.â -
$response.result[2].missions[0].description
= null -
$response.result[3].missions[0].description
= null -
$response.result[4].missions[0].description
= null
Although, it looks like you can also use these for the same results:
$response.result[0].mission_description
$response.result[1].mission_description
$response.result[2].mission_description
$response.result[3].mission_description
$response.result[4].mission_description
Off Topic Side Note:
It should be easy for us to find a description for weather alerts, but so far, we have failedâŚ
(Any experts up for the challenge?)
Itâs coming along pretty good, @SergL, but with the current wording, these variables
will never be set:
(GET requests do not linger in memory like variables
do, so you either have to set those variables
at 3:56AM, or make an additional request on the date & time in question⌠My choice would be the former)
Ah gotya! I think Iâm going to leave it on the date/time trigger because I believe than it would be the most accurate description.
Iâm only looking for FL launches so if there is another one on the same day prior to FL it would populate those variables with that info instead of the FL one.
So I will add another get request to the top of the pile at the date/time trigger.
As always, most of this would not be possible without your help, thank you very much!!
Sure can. This will check everyday for the next launch in Florida and set that date and time as the piston state. From there it will take that date and time and trigger a notification at that time which will populate the variables and push out with all the available info. If you are home and have a speaker setup it will also speak that same push notification. If you are in FL the next one should be Wednesday I believe.
I finally got a bit of freetime to play around with this one.
(I hope itâs OK that I started with your piston, @SergL)
Here are some the modifications I made:
- I stored the URL in a
variable
so itâs easier for others to import - I created a customizable offset
variable
, so the final alert can come in a few min early - I captured Flight Data at both events.
(I did not want to wait until the last minute to get this info) - I added a few comments up top to help
- I tweaked all Piston States and Logs
- I added Piston States to all events now (so youâll see more info in advance)
- I added more detailed logs at all events (even the long descriptions)
- Once thereâs no more FL launches in the list, the old
variables
are flagged
(IE: {nextLaunch} will never point to a previous date)
Here is a sample log from two days in advance:
(my hours are hidden in the pics for my privacy)
⌠and a sample Piston State
:
I am tempted to add a second alert to fire off at the real event⌠but I figured most people will want a bit of warning before the launch, so theyâll have time to grab their beer binoculars, or tune into the webcast, etcâŚ
Edit:
I just tweaked the spoken phrase so it sounds more natural to me⌠Sample output:
NASA Alert⌠Falcon 9 is launching in 30 minutes. Crew Dragon Demo-2 (DM-2), at Kennedy Space Center on pad LC-39A. For the first time since the last flight of the Space Shuttle in 2011 ⌠etc
(she continues to read both sentences)
When & where is the next rocket launch worldwide?
Once again, you made something 1000% better!! I will be replacing mine with this one as it does everything I want and is WAY cleaner!!
Thank you!
edit, not sure if its because you worked off of a pervious one that was asking for a URL during import but that box still pops up even though you have it set as a variable.
edit #2, I am adding the nasa link as part of a text message option so that the user can click the link and follow on their device during launch, right out of the message.
Just FYI. Sorry, I had created a piston for this myself last week and then I forgot to post it. Of course, @WCmore outshines mine by far but I did add one additional feature which is the time to launch.
This is the piston state:
and this is the log:
5/24/2020, 11:13:59 PM +154ms
+0ms âReceived event [Las Vegas].time = 1590387240000 with a delay of -846ms
+118ms âChecking Florida Launches
+1125ms â Next launch is at 2020-05-27T20:33Z which is Wed, May 27 2020 @ 1:33:00 PM PDT
+1125ms â [in 2 days, 14 hours, 18 minutes, and 59 seconds].
+1153ms â Launch will be a Falcon 9 from pad LC-39A
+1154ms âFor the first time since the last flight of the Space Shuttle in 2011, U.S. astronauts will go to orbit from American soil. As part of NASA's Commercial Crew Program, SpaceX's Falcon 9 will launch the Crew Dragon spacecraft to the International Space Station.
+1180ms âSetting up scheduled job for Mon, May 25 2020 @ 11:14:00 PM PDT (in 86399.666s)
+1189ms âEvent processed successfully (1188ms)
For those interested in the next launch (regardless of the location), I have created a beefy piston over here.
Can you see anything obvious as to why this didnât notify me last night?
6/3/2020, 12:34:59 AM +220ms
+0ms âReceived event [Home].time = 1591158900000 with a delay of -781ms
+139ms âRunTime Analysis CS > 29ms > PS > 60ms > PE > 51ms > CE
+143ms âRuntime (65927 bytes) successfully initialized in 60ms (v0.3.110.20191009) (142ms)
+144ms ââExecution stage started
+155ms ââCancelling statement #1's schedules...
+162ms ââSending external web request to: fdo.rocketlaunch.live/json/launches/next/5
+1426ms ââExecuted virtual command httpRequest (1264ms)
+1433ms ââExecuted virtual command setVariable (4ms)
+1447ms ââComparison (dynamic) FL is (string) FL = true (1ms)
+1449ms ââCondition #20 evaluated true (6ms)
+1450ms ââCondition group #19 evaluated true (state did not change) (8ms)
+1453ms ââCancelling statement #21's schedules...
+1459ms ââExecuted virtual command setVariable (3ms)
+1467ms ââComparison (boolean) true is (boolean) true = true (2ms)
+1468ms ââCondition #26 evaluated true (4ms)
+1469ms ââCondition group #25 evaluated true (state did not change) (6ms)
+1472ms ââCancelling statement #69's schedules...
+1480ms ââExecuted virtual command setVariable (4ms)
+1488ms ââCalculating (datetime) 1591144500704 - (datetime) 1591158900705 >> (datetime) -14400001
+1493ms ââCalculating (decimal) -1.4400001E7 / (decimal) 3600000.0 >> (decimal) -4.000000277777778
+1509ms ââCalculating (date) 1591156800000 + (time) 86280000 >> (datetime) 1591243080000
+1516ms ââExecuted virtual command setVariable (4ms)
+1523ms ââExecuted virtual command setVariable (4ms)
+1530ms ââExecuted virtual command setVariable (3ms)
+1538ms ââExecuted virtual command setVariable (3ms)
+1545ms ââExecuted virtual command setVariable (3ms)
+1552ms ââExecuted virtual command setVariable (4ms)
+1559ms ââExecuted virtual command setVariable (3ms)
+1566ms ââCalculating (string) Next FL launch is at + (string) 2020-06-03T23:58Z >> (string) Next FL launch is at 2020-06-03T23:58Z
+1570ms ââCalculating (string) Next FL launch is at 2020-06-03T23:58Z + (string) which is >> (string) Next FL launch is at 2020-06-03T23:58Z which is
+1573ms ââCalculating (string) Next FL launch is at 2020-06-03T23:58Z which is + (string) Wed, Jun 3 2020 @ 7:58:00 PM EDT >> (string) Next FL launch is at 2020-06-03T23:58Z which is Wed, Jun 3 2020 @ 7:58:00 PM EDT
+1576ms ââNext FL launch is at 2020-06-03T23:58Z which is Wed, Jun 3 2020 @ 7:58:00 PM EDT
+1578ms ââExecuted virtual command log (2ms)
+1592ms ââCalculating (string) Falcon 9 + (string) is scheduled to launch the >> (string) Falcon 9 is scheduled to launch the
+1597ms ââCalculating (string) Falcon 9 is scheduled to launch the + (string) [Starlink-8] >> (string) Falcon 9 is scheduled to launch the [Starlink-8]
+1601ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] + (string) at >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at
+1605ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at + (string) Cape Canaveral AFS >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS
+1609ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS + (string) from pad >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad
+1613ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad + (string) SLC-40 >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1616ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40 + (string)
+1617ms ââ >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1620ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1620ms ââ + (string) A SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC). >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1620ms ââA SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC).
+1623ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1623ms ââA SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC). + (string)
+1623ms ââ >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1623ms ââA SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC).
+1626ms ââCalculating (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1626ms ââA SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC).
+1626ms ââ + (string) null >> (string) Falcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1626ms ââA SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC).
+1626ms âânull
+1630ms ââFalcon 9 is scheduled to launch the [Starlink-8] at Cape Canaveral AFS from pad SLC-40
+1630ms ââA SpaceX Falcon 9 rocket will launch the Starlink-8 mission on Wednesday, June 3, 2020 at 11:58 PM (UTC).
+1630ms âânull
+1631ms ââExecuted virtual command log (2ms)
+1644ms ââCalculating (string) đ + (string) Falcon 9 >> (string) đ Falcon 9
+1649ms ââCalculating (string) đ Falcon 9 + (string) is scheduled to launch from >> (string) đ Falcon 9 is scheduled to launch from
+1653ms ââCalculating (string) đ Falcon 9 is scheduled to launch from + (string) Falcon 9 is scheduled to launch from [Starlink-8]
+1657ms ââCalculating (string) đ Falcon 9 is scheduled to launch from >> (string) đ Falcon 9 is scheduled to launch from
+1661ms ââCalculating (string) đ Falcon 9 is scheduled to launch from + (string) Cape Canaveral AFS >> (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS
+1665ms ââCalculating (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS + (string) on >> (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on
+1669ms ââCalculating (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on + (string) Wed, Jun 3 2020 @ 7:58:00 PM EDT >> (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT
+1672ms ââCalculating (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT + (string) from pad >> (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT from pad
+1675ms ââCalculating (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT from pad + (string) SLC-40 >> (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT from pad SLC-40
+1678ms ââCalculating (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT from pad SLC-40 + (string) . >> (string) đ Falcon 9 is scheduled to launch from Cape Canaveral AFS on Wed, Jun 3 2020 @ 7:58:00 PM EDT from pad SLC-40.
+1681ms ââExecuted virtual command setState (0ms)
+1683ms ââExecution stage complete. (1540ms)
+1708ms âSetting up scheduled job for Thu, Jun 4 2020 @ 12:35:00 AM EDT (in 86399.072s)
+1717ms âEvent processed successfully (1717ms)
That piston is scheduled to run once daily, (with no notifications) âŚ
The alert should happen 30 min prior to {nextLaunch}âŚ
Did that variable
get set properly?