diff --git a/config/automation/System/update_notification.yaml b/config/automation/System/update_notification.yaml index e66afc0e..67520df6 100755 --- a/config/automation/System/update_notification.yaml +++ b/config/automation/System/update_notification.yaml @@ -19,7 +19,45 @@ - service: script.tweet_engine_image data_template: - tweet: "New version of @Home_Assistant! Cannot wait for @CCostan to install it! - {{ states('updater.updater') }} (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)" + tweet: >- + {% macro getIntro() %} + {{- [ + "Woohoo! ", + "BAM! ", + "Look at that! " + ] | random -}} + {% endmacro %} + {% macro getVersion() %} + "New version of @Home_Assistant! Cannot wait for @CCostan to install it! - {{ states('updater.updater') }} (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)" + {% endmacro %} + {%- macro getRandomSnark() -%} + {{- [ + " It’s like Patch Tuesday, but without the fail. #homeassistant", + " Get in my SD Card! #homeassistant", + " Shut up and take my ones and zeros! #homeassistant", + " Seriously, you want some of this! #homeassistant", + " Be sure to read the breaking changes! ", + "" + ] | random -}} + {%- endmacro -%} + + {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {%- macro cleanup(data) -%} + {%- for item in data.split("\n") if item | trim != "" -%} + {{ item | trim }} {% endfor -%} + {%- endmacro -%} + + {# a macro to call all macros :) #} + {%- macro mother_of_all_macros() -%} + {{ getIntro() }} + {{ getVersion() }} + {{ getRandomSnark() }} + + {%- endmacro -%} + + {# Call the macro #} + {{- cleanup(mother_of_all_macros()) -}} + image: >- {{ [ "/config/www/custom_ui/floorplan/images/branding/repo_ad.png", diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index 6efd1df2..364ea844 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -45,7 +45,7 @@ tweet_engine_setup: "Some of my favorite #Docker Containers that I am using - (https://www.vcloudinfo.com/2018/06/rolling-out-some-new-docker-containers.html)", "10 year safety check. If you haven't done it yet, you need to! (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html)", "How to use template conditions in Home Assistant. (https://www.vcloudinfo.com/2019/06/how-to-use-template-conditions-in-home-assistant.html)" - + ], "robot": [ "Beep. Bop. Beep. Boop. I am a #roBOT run by @CCostan", @@ -90,7 +90,7 @@ tweet_engine_setup: "My @att Fiber 1000 internet download speed is about {{ states('sensor.speedtest_download') }} Mbit/s and I am a #cordcutter. @TabloTV", "If you are not subscribed to my Smart Home YouTube channel, come join us now! (https://youtube.com/vCloudInfo)", "If you love #homeassistant and are on @FaceBook, be sure to Join our Fan Group Page (https://www.facebook.com/groups/HomeAssistant/)", - "Be sure to follow all of our various social media accounts so you do not miss a thing! @ccostan | (https://www.vcloudinfo.com/p/about-me.html)" + "Be sure to follow all of our various social media accounts so you do not miss a thing! @ccostan | (https://www.vcloudinfo.com/Click-Here)" ], "stocks": [ diff --git a/config/www/custom_ui/floorplan/images/branding/solar_readings.png b/config/www/custom_ui/floorplan/images/branding/solar_readings.png index e69de29b..ebeadb6b 100644 Binary files a/config/www/custom_ui/floorplan/images/branding/solar_readings.png and b/config/www/custom_ui/floorplan/images/branding/solar_readings.png differ