This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SendMode Input | |
| #IfWinActive, ahk_exe sublime_text.exe | |
| ^WheelDown::return | |
| ^WheelUp::return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Modified from examples found here: https://community.home-assistant.io/t/wled-script-to-alternate-between-effects-every-5-minutes/227553/39 | |
| # List of all effects: https://github.com/Aircoookie/WLED/wiki/List-of-effects-and-palettes | |
| alias: WLED Cycle Random Effects | |
| description: Sets WLED to random effect from list on interval while WLED remains on. | |
| trigger: | |
| - platform: device | |
| type: turned_on | |
| device_id: 94b3087d775f6f1a48286fc1e0230d6a # update to match device_id | |
| entity_id: light.wled # update to match entity_id | |
| domain: light |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp) | |
| cpuTemp1=$(($cpuTemp0/1000)) | |
| cpuTemp2=$(($cpuTemp0/100)) | |
| cpuTempM=$(($cpuTemp2 % $cpuTemp1)) | |
| #RPi4 has a different path to vcgencmd on bullseye | |
| gpuTemp=$(/opt/vc/bin/vcgencmd measure_temp 2>/dev/null || /usr/bin/vcgencmd measure_temp 2>/dev/null) | |
| # Function to write the temperature into the log | |
| function writeToLog() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | |
| <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | |
| <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | |
| <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>RANDOM BS</title> | |
| <meta name="description" content="RANDOM BS"> | |
| <meta name="author" content="Mike Johanning"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the last command as root | |
| sudo !! | |
| # Serve current directory tree at http://$HOSTNAME:8000/ | |
| python -m SimpleHTTPServer | |
| # Save a file you edited in vim without the needed permissions | |
| :w !sudo tee % | |
| # change to the previous working directory | |
| cd - | |
| # Runs previous command but replacing | |
| ^foo^bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template: | |
| - sensor: | |
| - name: "Painting Weather Conditions" | |
| state: > | |
| {% set temp = states('sensor.lacrosse_tx141thbv2_0_144_t')|float %} | |
| {% set humid = states('sensor.lacrosse_tx141thbv2_0_144_h')|float %} | |
| {% if is_number(temp) and is_number(humid) and temp | float > 50 and temp | float < 90 and humid | float < 65 %} | |
| Yes | |
| {% elif temp | float <= 50 or temp | float >= 90 or humid | float >= 65 %} | |
| No |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% set temp = states("sensor.lacrosse_tx141thbv2_0_144_t")|float|round | |
| %} | |
| {% set humid = states("sensor.lacrosse_tx141thbv2_0_144_h")|float|round | |
| %} | |
| {% if temp >=50 and temp <= 90 and humid <= 65 and (50 - temp)|abs <= 10 | |
| and (temp - 90) <= 10 or temp >=50 and temp <= 90 and humid <= 65 and | |
| (65 - humid)|abs <= 10 %} |
OlderNewer