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 | |
# ======================================= | |
# Generate server snapshot + WikiDocs pages (Unraid) | |
# - Standard pages + per-disk pages (folder per disk with content.md) | |
# - Disks inventory (Active + Previously Active) with clean dates (M/D/YYYY) | |
# - Disk age (SMART POH), tenure, manufacture date (best-effort) | |
# - Per-disk pages include breadcrumb | |
# - Capacity parsing fixed (no "\1") | |
# - Suggestions page: scores disks + CPU section | |
# - Hardware page: CPU sensors + GPU section using vendor tools (GPU Statistics plugin parity) |
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
views: | |
- title: Home | |
sections: | |
- type: grid | |
cards: | |
- type: heading | |
heading_style: title | |
heading: Driveway | |
- type: custom:advanced-camera-card | |
cameras: |
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
alias: Backyard PTZ Control | |
description: "" | |
triggers: | |
- trigger: state | |
entity_id: | |
- input_button.backyard_ptz_view_home | |
to: null | |
id: Home | |
- trigger: state | |
entity_id: |
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 | |
NVR_ADDRESS="https://$1" | |
NVR_USERNAME="$2" | |
PASSWORD="$3" | |
CAMERA_ID="$4" | |
PRESET_NUMBER="$5" | |
echo "Controlling camera with ID: $CAMERA_ID and PTZ Preset Number: $PRESET_NUMBER" | |
COOKIE_TEMP=$(mktemp) | |
HEADERS_TEMP=$(mktemp) | |
function cleanup { |
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
# automations.yaml | |
alias: "Update Doorbell with Day-Specific Message at 4:10am" | |
trigger: | |
- platform: time | |
at: "00:04:10" # Run daily at midnight | |
action: | |
- choose: | |
- conditions: | |
- condition: or |
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
# automations.yaml | |
# Update Unifi Doorbell with Day-Specific Message in Home Asssistant | |
# pulling data from build in calendar and "home calendar" that has custom events listed in it. | |
# This only works if you have alreadys set these messages in the doorbell as a custom message. | |
alias: "Update Doorbell with Day-Specific Message" | |
trigger: | |
- platform: time | |
at: "00:00:00" # Run daily at midnight | |
action: |
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
#!/usr/bin/env python3 | |
import os | |
import pickle | |
import requests | |
import google.auth.transport.requests | |
from google.oauth2.credentials import Credentials | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from googleapiclient.discovery import build | |
from datetime import datetime, timedelta |
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
$currentUser = Get-WmiObject -Class Win32_ComputerSystem | Select-Object -ExpandProperty UserName | |
$username = $currentUser.Split('\')[1] | |
$userPrincipalName = $username + "@domain.net" | |
$TenantId = "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxx" | |
$AppId = "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx" | |
$AppSecret = "xx-xx~xxxxxxx~xxxxxxxx.~xxxxxxx" | |
$GroupTag = "Pre-Provision" | |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Confirm:$false -Force:$true | |
Install-Script get-windowsautopilotinfo -Confirm:$false -Force:$true |
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
# Get the current logged in user's username | |
$currentUser = Get-WmiObject -Class Win32_ComputerSystem | Select-Object -ExpandProperty UserName | |
$username = $currentUser.Split('\')[1] | |
# Build the UserPrincipalName | |
$userPrincipalName = $username + "@domain.net" | |
# Install the Upload-WindowsAutopilotDeviceInfo script | |
Install-Script -Name Upload-WindowsAutopilotDeviceInfo -Force -Confirm:$False |
NewerOlder