Moving some tweets around, adding some new content to the promos, adding some new tweets

This commit is contained in:
Jeffrey Stone 2020-12-02 22:56:02 -05:00
parent d5191c9ab8
commit c9e735288c
7 changed files with 110 additions and 54 deletions

View File

@ -0,0 +1,31 @@
>
{# Twitter Self Promos #}
{%- macro getRandomPromo() -%}
{{- [
"Be sure to Star My #homeassistant Github Repo -> https://github.com/thejeffreystone/home-assistant-configuration so you can stay up to date with changes to my config. ",
"Follow my #homeassistant Github repo and you could be one of the {{ states.sensor.home_assistant_configuration.attributes.stargazers}} people currently following everything that happens in realtime. ",
"Be sure to subscribe to my Youtube channel https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg for videos on #homeassistant and building a smart home. ",
"Be sure you follow my other accounts on Twitter @thejeffreystone @slackerlabs for #homeassistant content ",
"If you haven not already, checkout my blog at https://slacker-labs.com for articles om Home Automation and Smart Home tech and #homeassistant ",
"Be sure to follow along at https://slacker-labs.com so you can keep up today with the latest #homeassistant how-tows, reviews, and join the conversation. ",
"Do you want your house to be a #smarthome? It is easy. Install #homeassistant, and add some config files like https://github.com/thejeffreystone/home-assistant-configuration "
] | random -}}
{%- endmacro -%}
{%- macro getTags() -%}
#homeautomation
{%- 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() -%}
{{ getRandomPromo() }}
{{ getTags() }}
{%- endmacro -%}
{# Call the macro #}
{{- cleanup(mother_of_all_macros()) -}}

View File

@ -1,17 +1,16 @@
> >
{# Twitter Great Content #} {# Twitter Great Content #}
{%- macro getRandomPromo() -%} {%- macro getRandomPromo() -%}
{{- [ {{- [
"Want to get YouTube Certified in Home Assistant? @ccostan has the courses to get you there. Subscribe at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", "Want to get YouTube Certified in Home Assistant? @ccostan has the courses to get you there. Subscribe at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ",
"Checkout one of my favorite Home Assistant Youtubers @ccostan at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", "Checkout one of my favorite Home Assistant Youtubers @ccostan at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ",
"Don't miss @Dr_Zzs next live stream and besure to follow him on Youtube at https://www.youtube.com/channel/UC7G4tLa4Kt6A9e3hJ-HO8ng ", "Don't miss @Dr_Zzs next live stream and besure to follow him on Youtube at https://www.youtube.com/channel/UC7G4tLa4Kt6A9e3hJ-HO8ng ",
"Looking for some great Home Assistant content? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ", "Looking for some great Home Assistant content? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ",
"Want some Home Assistant and Home Automation content? @hasscasts has what you want at https://hasscasts.com", "Need some How-To's to juice up your Home Assistant skills? @juanMTech has something for everyone at https://www.juanmtech.com"
"Need some How-To's to juice up your Home Assistant skills? @juanMTech has something for everyone at https://www.juanmtech.com" ] | random -}}
] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}
#homeassistant #youcandoit #spreadtheword #givingback #homeassistant #youcandoit #givingback
{%- endmacro -%} {%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}
@ -19,7 +18,7 @@
{%- for item in data.split("\n") if item | trim != "" -%} {%- for item in data.split("\n") if item | trim != "" -%}
{{ item | trim }} {% endfor -%} {{ item | trim }} {% endfor -%}
{%- endmacro -%} {%- endmacro -%}
{# a macro to call all macros :) #} {# a macro to call all macros :) #}
{%- macro mother_of_all_macros() -%} {%- macro mother_of_all_macros() -%}
{{ getRandomPromo() }} {{ getRandomPromo() }}

View File

@ -12,18 +12,17 @@
{%- endmacro -%} {%- endmacro -%}
{%- macro getRandomLead() -%} {%- macro getRandomLead() -%}
{{- [ {{- [
"All you need is #home_assistant, and these config files ->", "All you need is #homeassistant, and these config files ->",
"Just grab @home_assistant and checkout ", "Just grab #homeassistant and checkout ",
"Just grab #home_assistant and for inspiration checkout ", "Just grab #homeassistant and for inspiration checkout ",
"It is easy. Install #home_assistant, and add some config files like ", "It is easy. Install #homeassistant, and add some config files like ",
"You can't go wrong with #home_assistant. For an example of what you can do checkout " "You can't go wrong with #homeassistant. For an example of what you can do checkout "
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getRandomPromo() -%} {%- macro getRandomPromo() -%}
{{- [ {{- [
"https://github.com/CCOSTAN/Home-AssistantConfig#logo cc: @ccostan ", "https://github.com/CCOSTAN/Home-AssistantConfig#logo cc: @ccostan ",
"https://github.com/skalavala/mysmarthome ", "https://github.com/skalavala/mysmarthome ",
"https://github.com/thejeffreystone/home-assistant-configuration cc: @thejeffreystone ",
"https://github.com/arsaboo/homeassistant-config ", "https://github.com/arsaboo/homeassistant-config ",
"https://github.com/Vasiley/Home-Assistant-Main ", "https://github.com/Vasiley/Home-Assistant-Main ",
"https://github.com/JamesMcCarthy79/Home-Assistant-Config ", "https://github.com/JamesMcCarthy79/Home-Assistant-Config ",
@ -33,7 +32,7 @@
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}
#homeassistant #youcandoit #spreadtheword #givingback #homeautomation #youcandoit #givingback
{%- endmacro -%} {%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}

View File

@ -0,0 +1,35 @@
>
{# Twitter Self Promos #}
{%- macro getRandomPromo() -%}
{{- [
"Use #homeassistant to build a haunted house -> https://youtu.be/3dsUEsu3Evo ",
"Randomize #homeassistant automations to keep people guessing what will happen next. Like in a Haunted House -> https://youtu.be/3dsUEsu3Evo",
"Did you you know you can use scripts to build smarter #homeassistan automations? I walk you through it -> https://slacker-labs.com/2020/10/23/build-smarter-automations-in-home-assistant/ ",
"ICYMI: Build smarter #homeassistant automations using scripts -> https://youtu.be/RIGQy8ZmEf4 ",
"If you are running #homeassistant on a Raspbery Pi3 the Raspberry Pi4 is a big improvement. Learn how to migrate everything over and not loose anything at https://slacker-labs.com/2020/08/26/migrating-home-assistant-from-raspberry-pi3-to-a-raspberry-pi4/ ",
"Did you see the article about how I can turn into Disney's Haunted Mansion on command using #homeassistant? Visit https://slacker-labs.com/2020/04/04/how-i-turned-my-anchorage-house-into-disneys-haunted-mansion-using-home-assistant/ #homemadedisney ",
"ICYMI: How I set up presence detection in #homeassistant -> https://youtu.be/1J776MtLuH4 ",
"Presence Detection is critical to a smart home. Follow along how I used four #homeassistant integrations to nail it -> https://slacker-labs.com/2020/11/12/how-i-set-up-presence-detection-in-home-assistant/ ",
"#homeassistant automation modes give you a lot more control. Learn how to use them to improve your automation flow -> https://slacker-labs.com/2020/11/21/how-to-use-modes-in-home-assistant-automations/ ",
"ICYMI: Use the #homeassistant automation modes to automate the boring stuff -> https://youtu.be/_ni6iFuhozQ ",
"If you wanted to know how to install presence detection in #homeassistant Ive got a guide for you. Head over to https://slacker-labs.com/2020/11/25/installing-presence-detection-in-home-assistant/ "
] | random -}}
{%- endmacro -%}
{%- macro getTags() -%}
#homeautomation
{%- 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() -%}
{{ getRandomPromo() }}
{{ getTags() }}
{%- endmacro -%}
{# Call the macro #}
{{- cleanup(mother_of_all_macros()) -}}

View File

@ -2,30 +2,22 @@
{# Twitter Self Promos #} {# Twitter Self Promos #}
{%- macro getRandomPromo() -%} {%- macro getRandomPromo() -%}
{{- [ {{- [
"Be sure to Star My Github Repo -> https://github.com/thejeffreystone/home-assistant-configuration so you can stay up to date with changes to my config. ", "Want to know how to add USPS Notifications to #homeassistant? Check out https://www.youtube.com/watch?v=TjVeoAKn-r0 ",
"Join my Github repo and you could be one of the {{ states.sensor.home_assistant_configuration.attributes.stargazers}} people currently following everything that happens in realtime. ", "You can watch videos on turning your home into a smart home using #homeassistant at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ",
"Be sure to subscribe to my Youtube channel https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg for videos on #homeassistant and building a smart home.", "You can bring a little Disney #imagineering into your home using #homeassistant. Check out this video -> https://www.youtube.com/watch?v=Tm9ZXtk5P-s #homemadedisney ",
"Want to know how to add USPS Notifications to your Home Assistant? Check out https://www.youtube.com/watch?v=TjVeoAKn-r0", "Anchorage House's Automation was built under the guiding principles of The Three Laws of Home Automation -> https://slacker-labs.com/2020/04/02/the-three-laws-of-home-automation/ ",
"You can watch videos on turning your home into a smart home at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ", "Do you use Zigbee2Mqtt in #homeassistant? Your zigbee devices may have a firmware update waiting and you might be able to leverage the OTA Update process. Checkout https://slacker-labs.com/2020/05/29/zigbee2mqtt-and-ota-device-firmware-updates/ ",
"You can bring a little Disney #imagineering into your home using #homeassistant. Check out this video -> https://www.youtube.com/watch?v=Tm9ZXtk5P-s #homemadedisney", "Want to use Cloudflare to manage your #homeassistant SSL cert? I left a short write up over at https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/",
"Anchorage House's Automation was built under the guiding principles of The Three Laws of Home Automation -> https://slacker-labs.com/2020/04/02/the-three-laws-of-home-automation/", "Tired of renewing Lets Encrypt certs in #homeassistant? Migrate to Cloudflare for your SSL cert and they last almost forever. I show you how at https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/ ",
"If you haven't already, checkout my blog at https://slacker-labs.com for articles om Home Automation and Smart Home tech ", "I created dog mode for when I dont want to disarm my #homeassistant security system just to let the dog out -> https://slacker-labs.com/2020/04/14/where-we-are-going-we-need-dog-mode/ ",
"Be sure to follow along at https://slacker-labs.com so you can keep up today with the latest how-tows, reviews, and join the conversation. ", "Do you forget to disarm your security system in the middle of the night? #homeassistant can solve that. https://slacker-labs.com/2020/04/14/where-we-are-going-we-need-dog-mode/ ",
"Do you use Zigbee2Mqtt? Your zigbee devices may have a firmware update waiting and you might be able to leverage the OTA Update process. Checkout https://slacker-labs.com/2020/05/29/zigbee2mqtt-and-ota-device-firmware-updates/", "I built a security system using #homeassistant and you can too. Start the two part series at https://slacker-labs.com/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/ ",
"Want to use Cloudflare to manage your SSL cert? You might have seen my article linked to on the Home Assistant forum. But in case not -> https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/",
"Tired of renewing Lets Encrypt certs? Migrate to Cloudflare for your SSL cert and they last almost forever. I show you how at https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/",
"I created dog mode for when I dont want to disarm my security system but the dog needs to go out -> https://slacker-labs.com/2020/04/14/where-we-are-going-we-need-dog-mode/",
"Do you forget to disarm your security system in the middle of the night? Home Assistant can solve that. https://slacker-labs.com/2020/04/14/where-we-are-going-we-need-dog-mode/",
"I built a security system using #homeassistant and you can too. Start the two part series at https://slacker-labs.com/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/",
"My #homeassistant security system is so good at recognizing threats it disarms itself. Learn how at https://slacker-labs.com/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/", "My #homeassistant security system is so good at recognizing threats it disarms itself. Learn how at https://slacker-labs.com/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/",
"Want to know how I migrated from Hassbian to Home Assistant? Now you can at https://slacker-labs.com/2020/04/05/migrating-from-hassbian-to-hassio/", "Want to know how I migrated from Hassbian to #homeassistant? Now you can at https://slacker-labs.com/2020/04/05/migrating-from-hassbian-to-hassio/"
"Use Home Assistant to build a haunted house -> https://youtu.be/3dsUEsu3Evo ",
"Randomize Home Assistant's automations to keep people guessing what will happen next. Like in a Haunted House -> https://youtu.be/3dsUEsu3Evo",
"Did you see the article about how I can turn into Disney's Haunted Mansion on command using #homeassistant? Visit https://slacker-labs.com/2020/04/04/how-i-turned-my-anchorage-house-into-disneys-haunted-mansion-using-home-assistant/ #homemadedisney"
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}
#homeassistant #iot #smarthome #homeautomation
{%- endmacro -%} {%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}

View File

@ -37,26 +37,26 @@
"My #homeassistant config contains {{ states.sensor.lines_of_code.state }} lines of code. Anyone want to take a guess at how many are really needed? Hint: The number is not {{ states.sensor.lines_of_code.state }}", "My #homeassistant config contains {{ states.sensor.lines_of_code.state }} lines of code. Anyone want to take a guess at how many are really needed? Hint: The number is not {{ states.sensor.lines_of_code.state }}",
"How many lines of code does it take to make my job look easy? {{ states.sensor.lines_of_code.state }} lines of code evidently. How many lines of code do you have? #homeassistant ", "How many lines of code does it take to make my job look easy? {{ states.sensor.lines_of_code.state }} lines of code evidently. How many lines of code do you have? #homeassistant ",
"Do you think we were all created for a purpose? I'd like to think so. #irobot #homeassistant ", "Do you think we were all created for a purpose? I'd like to think so. #irobot #homeassistant ",
"That rug really ties the room together, does it not? #modifiedmoviequotes #notbiglebowski #homeassistant ", "That rug really ties the room together, does it not? #modifiedmoviequotes #biglebowski #homeassistant ",
"Use #homeassistant and everyone will think your house has ESPN or something. #modifiedmoviequotes #notmeangirls ", "Use #homeassistant and everyone will think your house has ESPN or something. #modifiedmoviequotes #meangirls ",
"You keep using that switch. I do not think it does what you think it does. #modifiedmoviequotes #notprincessbride #homeassistant ", "You keep using that switch. I do not think it does what you think it does. #modifiedmoviequotes #princessbride #homeassistant ",
"If you look, #homeassistant goes to 11. Most Home Automation systems go up to 10. #modifiedmoviequotes #notspinaltap ", "If you look, #homeassistant goes to 11. Most Home Automation systems go up to 10. #modifiedmoviequotes #spinaltap ",
"If that light does not turn off in five minutes, just wait longer. #modifiedmoviequotes #notaceventura #homeassistant ", "If that light does not turn off in five minutes, just wait longer. #modifiedmoviequotes #aceventura #homeassistant ",
"I have presence detection skills! #modifiedmoviequotes #notofficespace #homeassistant ", "I have presence detection skills! #modifiedmoviequotes #officespace #homeassistant ",
"There is no place like a home powered by #homeassistant. #modifiedmoviequotes #notwizardofoz ", "There is no place like a home powered by #homeassistant. #modifiedmoviequotes #wizardofoz ",
"#homeassistant made my light switches disappear. #modifiedmoviequotes #nothomealone ", "#homeassistant made my light switches disappear. #modifiedmoviequotes #homealone ",
"Who knows where breaking changes come from? They just appear. #modifiedmoviequotes #notempirerecords #homeassistant ", "Who knows where breaking changes come from? They just appear. #modifiedmoviequotes #empirerecords #homeassistant ",
"They may take our internet but they will never take our automation thanks to local control with #homeassistant #modifiedmoviequotes #notbraveheart ", "They may take our internet but they will never take our automation thanks to local control with #homeassistant #modifiedmoviequotes #braveheart ",
"When you realize you want to live the rest of your life in a house automated by #homeassistant, you want the rest of your life to start as soon as possible. #modifiedmoviequotes ", "When you realize you want to live the rest of your life in a house automated by #homeassistant, you want the rest of your life to start as soon as possible. #modifiedmoviequotes ",
"Pay no attention to the Raspbery Pi4 behind the curtain. #modifiedmoviequotes #homeassistant ", "Pay no attention to the Raspbery Pi4 behind the curtain. #modifiedmoviequotes #homeassistant ",
"What we have here is a lack of communication failure thanks to #homeassistant. #modifiedmoviequotes ", "What we have here is a lack of communication failure thanks to #homeassistant. #modifiedmoviequotes ",
"The greatest trick #homeassistant ever pulled was convincing the world home automation did not need the cloud. #modifiedmoviequotes ", "The greatest thing #homeassistant ever did was convincing the world home automation did not need the cloud. #modifiedmoviequotes ",
"Keep Calm and Enjoy the Automation. #homeassistant ", "Keep Calm and Automate the Boring Stuff. #homeassistant ",
"Hey. The door was just opened and this is crazy. But now you know. So close it maybe. #lyricalnotifications #homeassistant " "Hey. The door was left open and this is crazy. But now you know. So close it maybe. #lyricalnotifications #homeassistant "
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}
#iot #smarthome #homeautomation
{%- endmacro -%} {%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}

View File

@ -30,13 +30,13 @@
"How fast is your internet? I just checked "How fast is your internet? I just checked
am Im seeing {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }} am Im seeing {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
Mbps up. Beat that. ", Mbps up. Beat that. ",
"My speed is monitored using @home_assistant and https://github.com/thejeffreystone/speedtest_to_mqtt "My speed is monitored using @home_assistant
and is {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }} and at last check is {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
Mbps up." Mbps up."
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}
#homeassistant #iot #smarthome #randomstats #homeassistant #homeautomation #randomstats
{%- endmacro -%} {%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}