parent
e395ccad3b
commit
ed6c85b913
@ -1,109 +0,0 @@
|
|||||||
{
|
|
||||||
"total": 1,
|
|
||||||
"launches": [
|
|
||||||
{
|
|
||||||
"id": 1079,
|
|
||||||
"name": "Minotaur-C (Taurus XL) | 6 x SkySat & 4 x Dove",
|
|
||||||
"windowstart": "November 1, 2017 21:22:00 UTC",
|
|
||||||
"windowend": "November 1, 2017 22:22:00 UTC",
|
|
||||||
"net": "October 31, 2017 21:37:00 UTC",
|
|
||||||
"wsstamp": 1509589742,
|
|
||||||
"westamp": 1509488520,
|
|
||||||
"netstamp": 1509485820,
|
|
||||||
"isostart": "2017111T152200Z",
|
|
||||||
"isoend": "20171111T222200Z",
|
|
||||||
"isonet": "20171031T213700Z",
|
|
||||||
"status": 3,
|
|
||||||
"inhold": 0,
|
|
||||||
"tbdtime": 0,
|
|
||||||
"vidURLs": [
|
|
||||||
"https://www.youtube.com/watch?v=xP_xWX9RqYU",
|
|
||||||
"https://www.youtube.com/watch?v=eWsxNGD3fPE"
|
|
||||||
],
|
|
||||||
"vidURL": null,
|
|
||||||
"infoURLs": [],
|
|
||||||
"infoURL": null,
|
|
||||||
"holdreason": null,
|
|
||||||
"failreason": null,
|
|
||||||
"tbddate": 0,
|
|
||||||
"probability": 100,
|
|
||||||
"hashtag": null,
|
|
||||||
"location": {
|
|
||||||
"pads": [
|
|
||||||
{
|
|
||||||
"id": 179,
|
|
||||||
"name": "Space Launch Complex 576E, Vandenberg AFB, CA",
|
|
||||||
"infoURL": null,
|
|
||||||
"wikiURL": null,
|
|
||||||
"mapURL": "http://maps.google.com/maps?q=34.739444+N,+120.619167+W",
|
|
||||||
"latitude": 34.739444,
|
|
||||||
"longitude": -120.619167,
|
|
||||||
"agencies": [
|
|
||||||
{
|
|
||||||
"id": 161,
|
|
||||||
"name": "United States Air Force",
|
|
||||||
"abbrev": "USAF",
|
|
||||||
"countryCode": "USA",
|
|
||||||
"type": 1,
|
|
||||||
"infoURL": "http://www.af.mil",
|
|
||||||
"wikiURL": "http://en.wikipedia.org/wiki/United_States_Air_Force",
|
|
||||||
"infoURLs": [
|
|
||||||
"http://www.af.mil"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id": 16,
|
|
||||||
"name": "Carlo's house, FL, USA",
|
|
||||||
"infoURL": "",
|
|
||||||
"wikiURL": "",
|
|
||||||
"countryCode": "USA"
|
|
||||||
},
|
|
||||||
"rocket": {
|
|
||||||
"id": 105,
|
|
||||||
"name": "Minotaur-C",
|
|
||||||
"configuration": "Minotaur-C",
|
|
||||||
"familyname": "Pegasus",
|
|
||||||
"agencies": [
|
|
||||||
{
|
|
||||||
"id": 179,
|
|
||||||
"name": "Orbital ATK",
|
|
||||||
"abbrev": "OA",
|
|
||||||
"countryCode": "USA",
|
|
||||||
"type": 3,
|
|
||||||
"infoURL": "https://www.orbitalatk.com/",
|
|
||||||
"wikiURL": "https://en.wikipedia.org/wiki/Orbital_ATK",
|
|
||||||
"infoURLs": [
|
|
||||||
"https://www.orbitalatk.com/"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"wikiURL": "https://en.wikipedia.org/wiki/Minotaur-C",
|
|
||||||
"infoURLs": [],
|
|
||||||
"imageSizes": [
|
|
||||||
320
|
|
||||||
],
|
|
||||||
"imageURL": "Array"
|
|
||||||
},
|
|
||||||
"missions": [
|
|
||||||
{
|
|
||||||
"id": 348,
|
|
||||||
"name": "Dedicated rideshare",
|
|
||||||
"description": "Dedicated rideshare",
|
|
||||||
"type": 14,
|
|
||||||
"typeName": "Dedicated Rideshare"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 605,
|
|
||||||
"name": "6 x SkySat & 4 x Dove",
|
|
||||||
"description": "SkySat is a series of commercial Earth observation satellites, which operate in 500 km sun-synchronous orbit. Each satellite weighs about 120 kg and is intended for 6 years of operation.",
|
|
||||||
"type": 1,
|
|
||||||
"typeName": "Earth Science"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"offset": 0,
|
|
||||||
"count": 1
|
|
||||||
}
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
######################################################################
|
|
||||||
# @CCOSTAN - Follow Me on X
|
|
||||||
# For more info visit https://www.vcloudinfo.com/click-here
|
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
||||||
# -------------------------------------------------------------------
|
|
||||||
# Space - ISS and launch-related telemetry
|
|
||||||
# Tracks SpaceX timing and announces an upcoming launch window.
|
|
||||||
# -------------------------------------------------------------------
|
|
||||||
# Notes: Guard template triggers against unavailable startup sensor state.
|
|
||||||
######################################################################
|
|
||||||
sensor:
|
|
||||||
|
|
||||||
- platform: rest
|
|
||||||
scan_interval: 1800
|
|
||||||
name: SpaceX Starman
|
|
||||||
json_attributes:
|
|
||||||
- earth_distance_mi
|
|
||||||
value_template: '{{ value_json["speed_mph"] }}'
|
|
||||||
unit_of_measurement: "mph"
|
|
||||||
state_class: measurement
|
|
||||||
resource: 'https://api.spacexdata.com/v2/info/roadster'
|
|
||||||
|
|
||||||
- platform: rest
|
|
||||||
scan_interval: 1800
|
|
||||||
name: SpaceX
|
|
||||||
json_attributes:
|
|
||||||
- mission_name
|
|
||||||
- launch_site
|
|
||||||
- rocket
|
|
||||||
value_template: '{{ value_json["launch_date_unix"] }}'
|
|
||||||
resource: 'https://api.spacexdata.com/v2/launches/next'
|
|
||||||
|
|
||||||
automation:
|
|
||||||
- alias: Launch Window Approaching
|
|
||||||
id: 1d42fc4f-a37d-4283-b64b-09242a145598
|
|
||||||
trigger:
|
|
||||||
- platform: template
|
|
||||||
value_template: >-
|
|
||||||
{% set launch_ts = states('sensor.spacex') | int(0) %}
|
|
||||||
{% set seconds_until = launch_ts - (now().timestamp() | int) %}
|
|
||||||
{{ launch_ts > 0 and seconds_until > 0 and seconds_until <= 600 }}
|
|
||||||
|
|
||||||
action:
|
|
||||||
- service: script.notify_engine
|
|
||||||
data:
|
|
||||||
value1: >-
|
|
||||||
{% set mission = state_attr('sensor.spacex', 'mission_name') | default('A SpaceX launch', true) %}
|
|
||||||
Go outside. {{ mission }} is scheduled to launch in about 10 minutes.
|
|
||||||
group: 'information'
|
|
||||||
|
|
||||||
Loading…
Reference in new issue