diff --git a/config/configuration.yaml b/config/configuration.yaml index e92e33e7..c1a39974 100755 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -6,14 +6,8 @@ homeassistant: unit_system: imperial time_zone: America/New_York whitelist_external_dirs: - - /config/www/custom_ui + - /config/www/custom_ui/floorplan/images - # { "message": "Photo Tweet", - # "data": { - # "media": "/config/www/custom_ui/Measurements.jpg" - # } - # - customize: !include_dir_merge_named customize customize_domain: automation: diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index da2b7b4f..4e409bc4 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -146,7 +146,7 @@ automation: {% set issue = trigger.event.data.issue %} {% set issueurl = trigger.event.data.issueurl %} {% set phrases = [ - "New Code Alert: " ~ issue ~ "(" ~ issueurl ~ "). Repo: (https://github.com/CCOSTAN/Home-AssistantConfig/commits/master) " + "New Code Available: " ~ issue ~ " " ~ issueurl ] %} {% set hashtags = [ "#Github", @@ -154,7 +154,13 @@ automation: "#SmartHomeCode" ] %} {{ phrases|random ~ " " ~ hashtags|random }} - + data_template: + media: >- + {% set pictures = [ + "/config/www/custom_ui/floorplan/images/repo_ad.png", + "/config/www/custom_ui/floorplan/images/repo_ad2.png" + ] %} + {{ pictures|random }} - alias: 'Random House stats' hide_entity: True diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index e71d416f..40ce5066 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -17,6 +17,8 @@ tweet_engine: data_template: message: >- {{ tweet }} #IOT #SmartHome + data: + media: {{ media }} # - service: ifttt.trigger # data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"} diff --git a/config/www/custom_ui/floorplan/images/branding/repo_ad.png b/config/www/custom_ui/floorplan/images/branding/repo_ad.png new file mode 100755 index 00000000..3739b116 Binary files /dev/null and b/config/www/custom_ui/floorplan/images/branding/repo_ad.png differ