From 847fe40f7082e7e4a4eff4997dc60e7825e43174 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 13 May 2018 09:54:02 -0400 Subject: [PATCH] More final touches to #352 - Throwback tweets --- config/packages/twitter.yaml | 5 +++-- config/script/tweet.yaml | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 698f1500..8fe7b91c 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -276,7 +276,7 @@ automation: "#Throwback" ] %} {{ phrases|random ~ " " ~ hashtags|random }} - data_template: + data: media: >- {% set pictures = [ "/config/www/custom_ui/floorplan/images/branding/throwback.png" @@ -313,6 +313,7 @@ automation: "internet", "internet", "internet", "internet", "internet", "internet", "internet", "stocks", "stocks", "stocks", "stocks", "night", "night", - "tv", "tv", "tv" + "tv", "tv", "tv", + "throwback" ] %} {{ pick|random }} diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index 68f38d5e..01afbafd 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -21,7 +21,16 @@ tweet_engine_setup: "The #ChevyBolt was charged for about {{ states.sensor.bolt_charging_time.attributes.value|replace('m', '') }} minutes in the last 7 days.", "The Official Diecast P85 Model S Red (https://amzn.to/2Hkkl0S) link - Out of stock like the originals. :)" ], - + "throwback": [ + "One of the most popular #SmartHome Projects I have done: (https://www.vcloudinfo.com/2017/07/visualizing-smart-home-using-home.html)", + "This project was one of the most popular: (https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)", + "Some of the Best Home Assistant resources around! (https://www.vcloudinfo.com/2018/04/some-of-my-favorite-home-assistant.html)", + "My Journey to Docker #ThrowBack - (https://www.vcloudinfo.com/2018/02/journey-to-docker.html)", + "My Popular DIY Motion Sensor #ThrowBack - (https://www.vcloudinfo.com/2017/11/yet-another-inexpensive-motion-sensor.html)", + "Build your own DIY Outdoor Smart Home LED strips - (https://www.vcloudinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html)", + "Breakdown of the entire smart home - (https://www.vcloudinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)", + "Build your own Home Alarm System - (https://www.vcloudinfo.com/2017/06/building-my-home-alarm-system-hardware.html)" + ], "robot": [ "Beep. Bop. Beep. Boop. I am a #roBOT run by @CCostan", "I have spoken for about {{ states.sensor.speech_time.attributes.value|replace('m', '') }} minutes in the last 24 hours.", @@ -96,7 +105,9 @@ tweet_engine_setup: "minecraft": [ "/config/www/custom_ui/floorplan/images/branding/minecraft-icon.png" ], - + "throwback": [ + "/config/www/custom_ui/floorplan/images/branding/throwback.png" + ], "solar": [ "/config/www/custom_ui/floorplan/images/branding/batteries.png", "/config/www/custom_ui/floorplan/images/branding/car.png",