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
| blueprint: | |
| name: "ConnorGriffin's Light Switch Double Taps" | |
| description: > | |
| Supports GE/Jasco Basic CC (32) and UltraPro ZW3010 Central Scene (91). | |
| Double-tap UP toggles Max ↔ Auto. | |
| Double-tap DOWN toggles Min ↔ Auto. | |
| domain: automation | |
| input: | |
| device: |
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
| from datetime import datetime, timedelta | |
| import matplotlib.pyplot as plt | |
| def brightness_at_time(t, sunrise, sunset, | |
| pre_sunrise=120, morning_ramp=90, | |
| pre_sunset=60, evening_ramp=240, | |
| min_brightness=20, max_brightness=100): | |
| # Adjusted ramp times | |
| ramp_up_start = sunrise - timedelta(minutes=pre_sunrise) | |
| ramp_up_end = ramp_up_start + timedelta(minutes=morning_ramp) |
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
| blueprint: | |
| name: "ConnorGriffin's Light Modes" | |
| description: "Controls light brightness at Off->On based on a configurable curve, as well as min/max bright modes based. Requires a dropdown (input-select) helper with modes: Auto, Min, Max." | |
| domain: automation | |
| input: | |
| light: | |
| name: Light | |
| description: The light to control | |
| selector: | |
| entity: |
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
| function updateYnabHomeZestimate() { | |
| var accessToken = 'YNAB token goes here' // Your YNAB Personal Access Token | |
| var zwsid = 'zwsid goes here' // Your Zillow ZWSID | |
| var budgetName = 'budget name goes here' // The name of your budget | |
| var accountName = 'home value account name goes here' // The name of your home value tracking account | |
| var address = '1657 Notrealaddress Drive, Redding, CA 96001' // Home address | |
| // YNAB API settings | |
| var url = 'https://api.youneedabudget.com/v1' | |
| var headers = { |
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
| // YNAB Weekly Spending Report sending script | |
| function sendYnabReport() { | |
| // Set our options | |
| var accessToken = 'token goes here' // Your YNAB Personal Access Token | |
| var budgetName = "Connor's Budget" // Budget name to use, in case you have multiple budgets | |
| var categories = ['Sports & Wellness', 'Food & Drink', 'Housing'] // Your desired category groups to monitor, in Javascript array syntax | |
| var recipient = 'test@example.com, test2@example.com' // Email recipients, comma separated | |
| // API stuff | |
| var url = 'https://api.youneedabudget.com/v1' |
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
| // YNAB Weekly Spending Report sending script | |
| function sendYnabReport() { | |
| // Set our options | |
| var accessToken = 'token goes here' // Your YNAB Personal Access Token | |
| var budgetName = "Connor's Budget" // Budget name to use, in case you have multiple budgets | |
| var categories = ['Sports & Wellness', 'Food & Drink', 'Housing'] // Your desired category groups to monitor, in Javascript array syntax | |
| var recipient = 'test@example.com, test2@example.com' // Email recipients, comma separated | |
| // API stuff | |
| var url = 'https://api.youneedabudget.com/v1' |
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 the Google Auth parameters. Fill in your RefreshToken, ClientID, and ClientSecret | |
| $params = @{ | |
| Uri = 'https://accounts.google.com/o/oauth2/token' | |
| Body = @( | |
| "refresh_token=$RefreshToken", # Replace $RefreshToken with your refresh token | |
| "client_id=$ClientID", # Replace $ClientID with your client ID | |
| "client_secret=$ClientSecret", # Replace $ClientSecret with your client secret | |
| "grant_type=refresh_token" | |
| ) -join '&' | |
| Method = 'Post' |
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
| [general] | |
| cfg_schema = 1 | |
| ColumnCount = 3 | |
| UseWorkarea = True | |
| ModMask = <Mod4> | |
| MovementsWrap = True | |
| [keys] | |
| C = move-to-center | |
| H = horizontal-maximize |
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 our options | |
| $RefreshToken = '' | |
| $ClientID = '' | |
| $ClientSecret = '' | |
| $spreadsheetId = '' # Get this from the URL: https://docs.google.com/spreadsheets/d/{spreadsheetId} | |
| $sheetId = '' # Get this from gid= in the URL | |
| # Set the Google Auth parameters | |
| $params = @{ | |
| Uri = 'https://accounts.google.com/o/oauth2/token' |
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
| // YNAB Weekly Spending Report sending script | |
| function sendYnabReport() { | |
| // Set our options | |
| var accessToken = 'token goes here' // Your YNAB Personal Access Token | |
| var budgetName = "Connor's Budget" // Budget name to use, in case you have multiple budgets | |
| var categories = ['Fast Food', 'Groceries'] // Your desired category names to monitor, in Javascript array syntax | |
| var recipient = 'test@example.com, test2@example.com' // Email recipients, comma separated | |
| var url = 'https://api.youneedabudget.com/v1' | |
| var headers = { |
NewerOlder