Moving some twitter stuff around...dont mind me

This commit is contained in:
Jeffrey Stone
2019-11-12 22:49:51 -05:00
parent 71c2bb030e
commit cbf2c01633
4 changed files with 158 additions and 44 deletions

View File

@@ -63,7 +63,7 @@ automation:
to: 'on'
from: 'off'
action:
- service: script.twitter_notify
- service: script.twitter_iss
data_template:
message: >-
{{ [
@@ -71,10 +71,6 @@ automation:
"The #ISS just flew by with there are {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people doing cool stuff. #Space #theycanseeourhouse",
"The #ISS just flew by with {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people in it. #Space #theycanseeourhouse"
] | random }}
data:
media: >-
{{ [ "/config/www/tweet_images/iss.jpg",
"/config/www/tweet_images/iss2.jpg"] | random }}
- id: iss_notification
initial_state: true
@@ -100,12 +96,11 @@ automation:
to: 'full_moon'
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_notify
- service: script.twitter_full_moon
data_template:
message: >-
{{ [
"There is a Full Moon out tonight, and this time it's the actual moon and not the neighbor. ",
"Hey look kids, There's the full moon. ",
"The moon is huge! And full. "] | random + "#Space #fullmoon"}}
data:
media: /config/www/tweet_images/full_moon.jpg