I hereby claim:
- I am mdehaas on github.
- I am marceldehaas (https://keybase.io/marceldehaas) on keybase.
- I have a public key ASD04EnpccHwAr1nlIbnzz_dG-NpW_jYXXeoJg9rLog3Qwo
To claim this, I am signing this object:
| ForEach ($pItem in ($env:Path.split(";"))) {Write-output $pItem;Test-Path $pItem} |
I hereby claim:
To claim this, I am signing this object:
| ## Script Specific configuration | |
| $ExternalCameraFriendlyName = "RGB-IR Camera" | |
| ## Generic configuration | |
| $Verbose = $true | |
| $Debug = $false | |
| $WhatIf = $false | |
| ### END CONFIGURATION ##### | |
| $basePath = $MyInvocation.MyCommand.Path.Replace($MyInvocation.MyCommand.Name,"").SubString(0,($MyInvocation.MyCommand.Path.Replace($MyInvocation.MyCommand.Name,"").length-1)) |
| $outlook = new-object -com Outlook.Application | |
| $calendar = $outlook.Session.GetDefaultFolder(9) # == olFolderCalendar | |
| $appt = $calendar.Items.Add(1) # == olAppointmentItem | |
| $appt.Start = [datetime]$AppointmentTime | |
| $appt.Subject = $subject | |
| $appt.Location = $location | |
| $appt.ReminderSet = $true | |
| $appt.ReminderMinutesBeforeStart =$ReminderMinutesBeforeStart | |
| $appt.Save() | |
| $outlook.Quit() |
| $WhatIf = $true | |
| $Verbose = $true | |
| $Debug = $false | |
| ### END CONFIGURATION ##### | |
| $basePath = $MyInvocation.MyCommand.Path.Replace($MyInvocation.MyCommand.Name,"").SubString(0,($MyInvocation.MyCommand.Path.Replace($MyInvocation.MyCommand.Name,"").length-1)) | |
| $baseName = $MyInvocation.MyCommand.Name.Remove(($MyInvocation.MyCommand.Name.Length-4),4) | |
| $Transcript = !$Whatif | |
| if ($Transcript) {Start-Transcript -Path "$($basePath)\$($baseName)-$($env:USERNAME).transcript.txt"} |
| blueprint: | |
| name: Appliance has started and/or finished (2022.1.7) | |
| description: Do something when an appliance (like a washing machine or dishwasher) is started or has finished as detected by a power sensor based in the Watts consumed. | |
| domain: automation | |
| input: | |
| power_sensor: | |
| name: Power Sensor | |
| description: Power sensor entity (e.g. from a smart plug device). | |
| selector: | |
| entity: |
| $WhatIf = $false | |
| $Verbose = $true | |
| $Debug = $false | |
| $RegPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}" | |
| ### END CONFIG ##### | |
| $WiFi = Get-NetAdapter -Name "Wi-Fi" | |
| $Keys = Get-ItemProperty -Path "$RegPath\*" -Name "DriverDesc" -ErrorAction SilentlyContinue |
I hereby claim:
To claim this, I am signing this object: