From 55b442193cc4d849ee1d594e22fa194c0b20a20a Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:06:03 -0700 Subject: [PATCH 01/26] Set-NanoLeaf: Adding -BrightnessIncrement (Fixes #34) and Fixing -SaturationIncrement (Fixes #35) --- Functions/NanoLeaf/Set-NanoLeaf.ps1 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Functions/NanoLeaf/Set-NanoLeaf.ps1 b/Functions/NanoLeaf/Set-NanoLeaf.ps1 index 3b00a9a..c0422d9 100644 --- a/Functions/NanoLeaf/Set-NanoLeaf.ps1 +++ b/Functions/NanoLeaf/Set-NanoLeaf.ps1 @@ -84,7 +84,7 @@ # Increments the saturation of the NanoLeaf light color. [ComponentModel.DefaultBindingProperty('sat')] [ComponentModel.AmbientValue({ - [PSCustomObject]@{increment=[int][Math]::Round($_)} + [PSCustomObject]@{increment=[int][Math]::Round($_ * 100)} })] [int] $SaturationIncrement, @@ -97,6 +97,17 @@ [double] $Brightness, + # The brightness increment. + # If no other parameters are provided, adjusts universal brightness. + [Parameter(ValueFromPipelineByPropertyName)] + [ComponentModel.DefaultBindingProperty('brightness')] + [ComponentModel.AmbientValue({ + [PSCustomObject]@{increment=[int][Math]::Round($_ * 100)} + })] + [ValidateRange(-1,1)] + [double] + $BrightnessIncrement, + # If set, will change all panels on the nanoleaf to a given color temperature. [Parameter(ValueFromPipelineByPropertyName)] [ComponentModel.DefaultBindingProperty('ct')] @@ -336,8 +347,8 @@ } else { $sendData.brightness.duration = 0 } - } - + } + if ($on) { $sendData.on = @{value=$true} } From df4f491483b82de153d4bc79795ed63f4bc3366f Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:06:57 -0700 Subject: [PATCH 02/26] Set-NanoLeaf: No Longer setting -HSB as solidcolor (Fixes #36) --- Functions/NanoLeaf/Set-NanoLeaf.ps1 | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Functions/NanoLeaf/Set-NanoLeaf.ps1 b/Functions/NanoLeaf/Set-NanoLeaf.ps1 index c0422d9..d07de0c 100644 --- a/Functions/NanoLeaf/Set-NanoLeaf.ps1 +++ b/Functions/NanoLeaf/Set-NanoLeaf.ps1 @@ -356,25 +356,6 @@ $sendData.on = @{value=$false} } - #region Set HSB/HSL Color for all panels - if ($Hue -and $Saturation -and $Brightness) { - $hslData = @{ - write = [Ordered]@{ - command = 'display' - version = '1.0' - animType = "solid" - palette = @( - [Ordered]@{hue=$Hue%360;saturation=[int]($Saturation*100);brightness=[int]($Brightness*100)} - ) - colorType="HSB" - } - } | ConvertTo-Json -Depth 5 - - Send-NanoLeaf @ipAndToken -Command 'effects' -Data $hslData -Method PUT - return - } - #endregion Set HSB/HSL Color for all panels - $writeCommand = [Ordered]@{} if (-not $effectName) { $writeCommand.command = "display" From 13cfa2639254cafd33be0b60dce8e0560ad9ecce Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:11:08 -0700 Subject: [PATCH 03/26] Set-NanoLeaf: Synchronizing aliasing with Set-HueLight (Fixes #38) --- Functions/NanoLeaf/Set-NanoLeaf.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Functions/NanoLeaf/Set-NanoLeaf.ps1 b/Functions/NanoLeaf/Set-NanoLeaf.ps1 index d07de0c..2c07861 100644 --- a/Functions/NanoLeaf/Set-NanoLeaf.ps1 +++ b/Functions/NanoLeaf/Set-NanoLeaf.ps1 @@ -61,6 +61,7 @@ [ComponentModel.AmbientValue({ [PSCustomObject]@{value=$_ % 360} })] + [Alias('H')] [int] $Hue, @@ -77,6 +78,7 @@ [ComponentModel.AmbientValue({ [PSCustomObject]@{value=[int][Math]::Round($_ * 100)} })] + [Alias('S')] [ValidateRange(0,1)] [double] $Saturation, @@ -94,6 +96,7 @@ # If provided with -Hue and -Saturation, sets the color of all panels. [Parameter(ValueFromPipelineByPropertyName)] [ValidateRange(0,1)] + [Alias('B','L','Luminance','.bri')] [double] $Brightness, @@ -104,6 +107,7 @@ [ComponentModel.AmbientValue({ [PSCustomObject]@{increment=[int][Math]::Round($_ * 100)} })] + [Alias('LuminanceIncrement')] [ValidateRange(-1,1)] [double] $BrightnessIncrement, From dfe7a8a6159aed9d9b18a29b8a32a55c72f97e2d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:12:13 +0000 Subject: [PATCH 04/26] Set-NanoLeaf: Synchronizing aliasing with Set-HueLight (Fixes #38) --- docs/Set-NanoLeaf.md | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/docs/Set-NanoLeaf.md b/docs/Set-NanoLeaf.md index 61fef18..f53cdba 100644 --- a/docs/Set-NanoLeaf.md +++ b/docs/Set-NanoLeaf.md @@ -207,6 +207,24 @@ If provided with -Hue and -Saturation, sets the color of all panels. +--- +#### **BrightnessIncrement** + +The brightness increment. +If no other parameters are provided, adjusts universal brightness. + + + +> **Type**: ```[Double]``` + +> **Required**: false + +> **Position**: 6 + +> **PipelineInput**:true (ByPropertyName) + + + --- #### **ColorTemperature** @@ -218,7 +236,7 @@ If set, will change all panels on the nanoleaf to a given color temperature. > **Required**: false -> **Position**: 6 +> **Position**: 7 > **PipelineInput**:true (ByPropertyName) @@ -235,7 +253,7 @@ The name of the effect. > **Required**: false -> **Position**: 7 +> **Position**: 8 > **PipelineInput**:true (ByPropertyName) @@ -252,7 +270,7 @@ The duration to display. In most contexts, this will be rounded to the nearest > **Required**: false -> **Position**: 8 +> **Position**: 9 > **PipelineInput**:false @@ -287,7 +305,7 @@ The name of the effect plugin. > **Required**: false -> **Position**: 9 +> **Position**: 10 > **PipelineInput**:true (ByPropertyName) @@ -304,7 +322,7 @@ The palette used for an effect. > **Required**: false -> **Position**: 10 +> **Position**: 11 > **PipelineInput**:true (ByPropertyName) @@ -334,7 +352,7 @@ Valid Values: > **Required**: false -> **Position**: 11 +> **Position**: 12 > **PipelineInput**:true (ByPropertyName) @@ -351,7 +369,7 @@ The plugin UUID. > **Required**: false -> **Position**: 12 +> **Position**: 13 > **PipelineInput**:true (ByPropertyName) @@ -375,7 +393,7 @@ Valid Values: > **Required**: false -> **Position**: 13 +> **Position**: 14 > **PipelineInput**:true (ByPropertyName) @@ -395,7 +413,7 @@ Timespans will be ignored when sending colors via UDP. > **Required**: false -> **Position**: 14 +> **Position**: 15 > **PipelineInput**:true (ByPropertyName) @@ -425,7 +443,7 @@ Plugins can use any of the Nanoleaf-approved option types to further control how > **Required**: false -> **Position**: 15 +> **Position**: 16 > **PipelineInput**:true (ByPropertyName) @@ -476,7 +494,7 @@ The IP Address of the NanoLeaf. > **Required**: false -> **Position**: 16 +> **Position**: 17 > **PipelineInput**:true (ByPropertyName) @@ -493,7 +511,7 @@ The nanoleaf token > **Required**: false -> **Position**: 17 +> **Position**: 18 > **PipelineInput**:true (ByPropertyName) @@ -522,7 +540,7 @@ If the command sets a ```[ConfirmImpact("Medium")]``` which is lower than ```$co --- ### Syntax ```PowerShell -Set-NanoLeaf [-Off] [-On] [[-Hue] ] [[-HueIncrement] ] [[-Saturation] ] [[-SaturationIncrement] ] [[-Brightness] ] [[-ColorTemperature] ] [[-EffectName] ] [[-Duration] ] [-ExternalControl] [[-PluginName] ] [[-Palette] ] [[-EffectType] ] [[-PluginUuid] ] [[-PluginType] ] [[-Panel] ] [[-EffectOption] ] [-Loop] [-AsByteStream] [[-IPAddress] ] [[-NanoLeafToken] ] [-WhatIf] [-Confirm] [] +Set-NanoLeaf [-Off] [-On] [[-Hue] ] [[-HueIncrement] ] [[-Saturation] ] [[-SaturationIncrement] ] [[-Brightness] ] [[-BrightnessIncrement] ] [[-ColorTemperature] ] [[-EffectName] ] [[-Duration] ] [-ExternalControl] [[-PluginName] ] [[-Palette] ] [[-EffectType] ] [[-PluginUuid] ] [[-PluginType] ] [[-Panel] ] [[-EffectOption] ] [-Loop] [-AsByteStream] [[-IPAddress] ] [[-NanoLeafToken] ] [-WhatIf] [-Confirm] [] ``` --- From ad6d6c12c9ebead99ff40c3c70c7d61a8ae8066d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:12:14 +0000 Subject: [PATCH 05/26] Set-NanoLeaf: Synchronizing aliasing with Set-HueLight (Fixes #38) --- docs/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index b22b31b..0327b14 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,5 +297,3 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ - - From a39a4a6c342ea67e4738762118d83c20ba09d9db Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:12:14 +0000 Subject: [PATCH 06/26] Set-NanoLeaf: Synchronizing aliasing with Set-HueLight (Fixes #38) --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index 0327b14..a59c242 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,3 +297,4 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ + From 6f3c3773cb643e823ae9a65de67586fa90e7eaf5 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:12:14 +0000 Subject: [PATCH 07/26] Set-NanoLeaf: Synchronizing aliasing with Set-HueLight (Fixes #38) --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index a59c242..b22b31b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -298,3 +298,4 @@ Set-KeyLight -On -Brightness 0.25 ~~~ + From 87f78ed041c8d6c83137a00186ca1de8fc3bdadf Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:12:14 +0000 Subject: [PATCH 08/26] Set-NanoLeaf: Synchronizing aliasing with Set-HueLight (Fixes #38) --- docs/CHANGELOG.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ed3b0fb..ce5094f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,9 +1,18 @@ +## 0.2.5: +* Set-HueRule: Easier conditions (Fixes #28) and plural aliases (Fixes #31) +* Adding Rename-HueSensor (Fixes #26). +* Rename-HueLight: Adding [Alias('ID')] to -OldName (Fixes #27) +* Get-HueBridge: SupportShouldProcess (Fixes #30) +* Set-HueLight: Fixing -Brightness/SaturationIncrement (Fixes #29) +* Add-HueSensor: Adding -New (Fixes #25) +* Improved Repository Organization (Fixes #32) +--- + ## 0.2.4.1 * Adding help for Add-HueLight (#23) * Fixing other markdown documentation layout issues --- - ## 0.2.4 * Adding Add-HueLight (#18) * Adding Get-HueLight -New (#21) From 7709e2b89305c0890703fd0b8b537e618eac0bd9 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:15:25 -0700 Subject: [PATCH 09/26] Adding docs/_config.yml (Fixes #39) --- docs/_config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/_config.yml diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 0000000..83650a3 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1 @@ +permalink: pretty \ No newline at end of file From 14cb891cd57f72646d746ecee762f67e371f8daa Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:17:00 -0700 Subject: [PATCH 10/26] Updating workflows to use GitPub (Fixes #37) --- .github/workflows/OnIssue.yml | 31 ++++++++ .github/workflows/TestAndPublish.yml | 94 +++++++++++++++++++++++-- GitHub/Jobs/RunGitPub.psd1 | 32 +++++++++ LightScript.GitHubWorkflow.psdevops.ps1 | 11 ++- 4 files changed, 155 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/OnIssue.yml create mode 100644 GitHub/Jobs/RunGitPub.psd1 diff --git a/.github/workflows/OnIssue.yml b/.github/workflows/OnIssue.yml new file mode 100644 index 0000000..b593666 --- /dev/null +++ b/.github/workflows/OnIssue.yml @@ -0,0 +1,31 @@ + +name: OnIssueChanged +on: + issues: + workflow_dispatch: +jobs: + RunGitPub: + runs-on: ubuntu-latest + if: ${{ success() }} + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: Use GitPub Action + uses: StartAutomating/GitPub@main + id: GitPub + with: + TargetBranch: edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", "")) + CommitMessage: Posting with GitPub [skip ci] + PublishParameters: | + { + "Get-GitPubIssue": { + "Repository": '${{github.repository}}' + }, + "Get-GitPubRelease": { + "Repository": '${{github.repository}}' + }, + "Publish-GitPubJekyll": { + "OutputPath": "docs/_posts" + } + } + diff --git a/.github/workflows/TestAndPublish.yml b/.github/workflows/TestAndPublish.yml index 2e3bc58..ae609d2 100644 --- a/.github/workflows/TestAndPublish.yml +++ b/.github/workflows/TestAndPublish.yml @@ -306,6 +306,8 @@ jobs: $Parameters.UserName = ${env:UserName} $Parameters.TagVersionFormat = ${env:TagVersionFormat} $Parameters.ReleaseNameFormat = ${env:ReleaseNameFormat} + $Parameters.ReleaseAsset = ${env:ReleaseAsset} + $Parameters.ReleaseAsset = $parameters.ReleaseAsset -split ';' -replace '^[''"]' -replace '[''"]$' foreach ($k in @($parameters.Keys)) { if ([String]::IsNullOrEmpty($parameters[$k])) { $parameters.Remove($k) @@ -331,7 +333,11 @@ jobs: # The release name format (default value: '$($imported.Name) $($imported.Version)') [string] - $ReleaseNameFormat = '$($imported.Name) $($imported.Version)' + $ReleaseNameFormat = '$($imported.Name) $($imported.Version)', + + # Any assets to attach to the release. Can be a wildcard or file name. + [string[]] + $ReleaseAsset ) @@ -381,7 +387,7 @@ jobs: } - Invoke-RestMethod -Uri $releasesURL -Method Post -Body ( + $releasedIt = Invoke-RestMethod -Uri $releasesURL -Method Post -Body ( [Ordered]@{ owner = '${{github.owner}}' repo = '${{github.repository}}' @@ -403,6 +409,53 @@ jobs: "Content-type" = "application/json" "Authorization" = 'Bearer ${{ secrets.GITHUB_TOKEN }}' } + + + if (-not $releasedIt) { + throw "Release failed" + } else { + $releasedIt | Out-Host + } + + $releaseUploadUrl = $releasedIt.upload_url -replace '\{.+$' + + if ($ReleaseAsset) { + $fileList = Get-ChildItem -Recurse + $filesToRelease = + @(:nextFile foreach ($file in $fileList) { + foreach ($relAsset in $ReleaseAsset) { + if ($relAsset -match '[\*\?]') { + if ($file.Name -like $relAsset) { + $file; continue nextFile + } + } elseif ($file.Name -eq $relAsset -or $file.FullName -eq $relAsset) { + $file; continue nextFile + } + } + }) + + $releasedFiles = @{} + foreach ($file in $filesToRelease) { + if ($releasedFiles[$file.Name]) { + Write-Warning "Already attached file $($file.Name)" + continue + } else { + $fileBytes = [IO.File]::ReadAllBytes($file.FullName) + $releasedFiles[$file.Name] = + Invoke-RestMethod -Uri "${releaseUploadUrl}?name=$($file.Name)" -Headers @{ + "Accept" = "application/vnd.github+json" + "ContentType" = "application/octet-stream" + "Authorization" = 'Bearer ${{ secrets.GITHUB_TOKEN }}' + } -Body $fileBytes + $releasedFiles[$file.Name] + } + } + + "Attached $($releasedFiles.Count) file(s) to release" | Out-Host + } + + + } @Parameters - name: PublishPowerShellGallery id: PublishPowerShellGallery @@ -410,6 +463,8 @@ jobs: run: | $Parameters = @{} $Parameters.ModulePath = ${env:ModulePath} + $Parameters.Exclude = ${env:Exclude} + $Parameters.Exclude = $parameters.Exclude -split ';' -replace '^[''"]' -replace '[''"]$' foreach ($k in @($parameters.Keys)) { if ([String]::IsNullOrEmpty($parameters[$k])) { $parameters.Remove($k) @@ -418,12 +473,20 @@ jobs: Write-Host "::debug:: PublishPowerShellGallery $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')" & {param( [string] - $ModulePath + $ModulePath, + + [string[]] + $Exclude = @('*.png', '*.mp4', '*.jpg','*.jpeg', '*.gif', 'docs[/\]*') ) + $gitHubEvent = if ($env:GITHUB_EVENT_PATH) { [IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json } else { $null } + if (-not $Exclude) { + $Exclude = @('*.png', '*.mp4', '*.jpg','*.jpeg', '*.gif','docs[/\]*') + } + @" ::group::GitHubEvent @@ -431,6 +494,12 @@ jobs: ::endgroup:: "@ | Out-Host + @" + ::group::PSBoundParameters + $($PSBoundParameters | ConvertTo-Json -Depth 100) + ::endgroup:: + "@ | Out-Host + if (-not ($gitHubEvent.head_commit.message -match "Merge Pull Request #(?\d+)") -and (-not $gitHubEvent.psobject.properties['inputs'])) { "::warning::Pull Request has not merged, skipping Gallery Publish" | Out-Host @@ -473,9 +542,24 @@ jobs: if (Test-Path $moduleGitPath) { Remove-Item -Recurse -Force $moduleGitPath } + + if ($Exclude) { + "::notice::Attempting to Exlcude $exclude" | Out-Host + Get-ChildItem $moduleTempPath -Recurse | + Where-Object { + foreach ($ex in $exclude) { + if ($_.FullName -like $ex) { + "::notice::Excluding $($_.FullName)" | Out-Host + return $true + } + } + } | + Remove-Item + } + Write-Host "Module Files:" Get-ChildItem $moduleTempPath -Recurse - Write-Host "Publishing $moduleName [$($imported.Version)] to Gallery" + Write-Host "Publishing $moduleName [$($imported.Version)] to Gallery" Publish-Module -Path $moduleTempPath -NuGetApiKey $gk if ($?) { Write-Host "Published to Gallery" @@ -495,8 +579,6 @@ jobs: uses: StartAutomating/PipeScript@main - name: UseEZOut uses: StartAutomating/EZOut@master - - name: UsePiecemeal - uses: StartAutomating/Piecemeal@main - name: UseHelpOut uses: StartAutomating/HelpOut@master diff --git a/GitHub/Jobs/RunGitPub.psd1 b/GitHub/Jobs/RunGitPub.psd1 new file mode 100644 index 0000000..01278fb --- /dev/null +++ b/GitHub/Jobs/RunGitPub.psd1 @@ -0,0 +1,32 @@ +@{ + "runs-on" = "ubuntu-latest" + if = '${{ success() }}' + steps = @( + @{ + name = 'Check out repository' + uses = 'actions/checkout@v2' + } + @{ + name = 'Use GitPub Action' + uses = 'StartAutomating/GitPub@main' + id = 'GitPub' + with = @{ + TargetBranch = 'edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))' + CommitMessage = 'Posting with GitPub [skip ci]' + PublishParameters = @' +{ + "Get-GitPubIssue": { + "Repository": '${{github.repository}}' + }, + "Get-GitPubRelease": { + "Repository": '${{github.repository}}' + }, + "Publish-GitPubJekyll": { + "OutputPath": "docs/_posts" + } +} +'@ + } + } + ) +} \ No newline at end of file diff --git a/LightScript.GitHubWorkflow.psdevops.ps1 b/LightScript.GitHubWorkflow.psdevops.ps1 index 29152b0..957a3bc 100644 --- a/LightScript.GitHubWorkflow.psdevops.ps1 +++ b/LightScript.GitHubWorkflow.psdevops.ps1 @@ -1,13 +1,10 @@ #requires -Module PSDevOps Push-Location $PSScriptRoot - -New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish | +Import-BuildStep -Module LightScript +New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildModule | Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru -New-GitHubWorkflow -Name "Run HelpOut" -On Push -Job HelpOut | - Set-Content .\.github\workflows\UpdateDocs.yml -Encoding UTF8 -PassThru - -New-GitHubWorkflow -Name "Run EZOut" -On Push -Job RunEZOut | - Set-Content .\.github\workflows\RunEZOut.yml -Encoding UTF8 -PassThru +New-GitHubWorkflow -On Issue, Demand -Job RunGitPub -Name OnIssueChanged | + Set-Content (Join-Path $PSScriptRoot .github\workflows\OnIssue.yml) -Encoding UTF8 -PassThru Pop-Location \ No newline at end of file From 0df06ed152e9d214923f6a419bcb4d0a1b47f5a1 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:18:00 +0000 Subject: [PATCH 11/26] Updating workflows to use GitPub (Fixes #37) --- docs/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index b22b31b..0327b14 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,5 +297,3 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ - - From 87cecb5194826fc7061b4e6d86d051a99b7cd463 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:18:00 +0000 Subject: [PATCH 12/26] Updating workflows to use GitPub (Fixes #37) --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index 0327b14..a59c242 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,3 +297,4 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ + From bf25e9fe0b577374bf814d3a6be0f33c5c3e6460 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:18:00 +0000 Subject: [PATCH 13/26] Updating workflows to use GitPub (Fixes #37) --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index a59c242..b22b31b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -298,3 +298,4 @@ Set-KeyLight -On -Brightness 0.25 ~~~ + From 2e0723dafcffe0f090e50e9098f3ea47940bd402 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:19:40 -0700 Subject: [PATCH 14/26] Updating Module Version [0.2.6] and CHANGELOG --- CHANGELOG.md | 8 ++++++++ LightScript.psd1 | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a98e0d..5307ae3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.2.6: +* Set-NanoLeaf: + * Fixing -SaturationIncrement + * Adding -BrightnessIncrement + * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. +* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog. +--- + ## 0.2.5: * Set-HueRule: Easier conditions (Fixes #28) and plural aliases (Fixes #31) * Adding Rename-HueSensor (Fixes #26). diff --git a/LightScript.psd1 b/LightScript.psd1 index 4c011cc..54e1a28 100644 --- a/LightScript.psd1 +++ b/LightScript.psd1 @@ -1,5 +1,5 @@ @{ - ModuleVersion = '0.2.5' + ModuleVersion = '0.2.6' RootModule = 'LightScript.psm1' Description = 'Smarter Lighting with PowerShell' FormatsToProcess = 'LightScript.format.ps1xml' @@ -14,6 +14,14 @@ LicenseURI = 'https://github.com/StartAutomating/LightScript/blob/main/LICENSE' IconURI = 'https://github.com/StartAutomating/LightScript/blob/main/Assets/LightScript.png' ReleaseNotes = @' +## 0.2.6: +* Set-NanoLeaf: + * Fixing -SaturationIncrement + * Adding -BrightnessIncrement + * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. +* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog. +--- + ## 0.2.5: * Set-HueRule: Easier conditions (Fixes #28) and plural aliases (Fixes #31) * Adding Rename-HueSensor (Fixes #26). From c3b1cb1d6d8f9b5e756ee61e4c88ac8c98cdfd9c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:20:32 +0000 Subject: [PATCH 15/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index b22b31b..0327b14 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,5 +297,3 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ - - From 0aec7d05a2d8b6bc9c7ddea552d89095cbffa222 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:20:32 +0000 Subject: [PATCH 16/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index 0327b14..a59c242 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,3 +297,4 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ + From b24253d9c7b787e5fffcde3c6a6f7fe740619fc6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:20:32 +0000 Subject: [PATCH 17/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index a59c242..b22b31b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -298,3 +298,4 @@ Set-KeyLight -On -Brightness 0.25 ~~~ + From 37eb6be3ac6e2c6edf8dcf81fa83f6953ae96478 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:20:32 +0000 Subject: [PATCH 18/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ce5094f..a7457c5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.2.6: +* Set-NanoLeaf: + * Fixing -SaturationIncrement + * Adding -BrightnessIncrement + * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. +* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog. +--- + ## 0.2.5: * Set-HueRule: Easier conditions (Fixes #28) and plural aliases (Fixes #31) * Adding Rename-HueSensor (Fixes #26). From ffd87b7c69616a06827d2e1a53d53a92282cf907 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 12 Oct 2022 14:21:09 -0700 Subject: [PATCH 19/26] Updating Module Version [0.2.6] and CHANGELOG --- CHANGELOG.md | 9 +++++---- LightScript.psd1 | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5307ae3..05653f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ ## 0.2.6: * Set-NanoLeaf: - * Fixing -SaturationIncrement - * Adding -BrightnessIncrement - * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. -* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog. + * Fixing -SaturationIncrement (#35) + * Adding -BrightnessIncrement (#34) + * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. (#36) + * Making Parameter Aliases consistent with Set-HueLight (#38) +* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog (#37). --- ## 0.2.5: diff --git a/LightScript.psd1 b/LightScript.psd1 index 54e1a28..33d948d 100644 --- a/LightScript.psd1 +++ b/LightScript.psd1 @@ -16,10 +16,11 @@ ReleaseNotes = @' ## 0.2.6: * Set-NanoLeaf: - * Fixing -SaturationIncrement - * Adding -BrightnessIncrement - * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. -* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog. + * Fixing -SaturationIncrement (#35) + * Adding -BrightnessIncrement (#34) + * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. (#36) + * Making Parameter Aliases consistent with Set-HueLight (#38) +* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog (#37). --- ## 0.2.5: From 881db16a90e83ebb11df45107e32622acee9cbac Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:22:04 +0000 Subject: [PATCH 20/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index b22b31b..0327b14 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,5 +297,3 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ - - From 34c6250fec938596a4464602bca4c86babc9d713 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:22:04 +0000 Subject: [PATCH 21/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index 0327b14..a59c242 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,3 +297,4 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ + From e7f8c9efdcd95dcabdb5b00299bda135fa38eef7 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:22:04 +0000 Subject: [PATCH 22/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index a59c242..b22b31b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -298,3 +298,4 @@ Set-KeyLight -On -Brightness 0.25 ~~~ + From f790aaccf10dee378509021ae18defdf1776650f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:22:04 +0000 Subject: [PATCH 23/26] Updating Module Version [0.2.6] and CHANGELOG --- docs/CHANGELOG.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a7457c5..123a1ec 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,9 +1,10 @@ ## 0.2.6: * Set-NanoLeaf: - * Fixing -SaturationIncrement - * Adding -BrightnessIncrement - * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. -* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog. + * Fixing -SaturationIncrement (#35) + * Adding -BrightnessIncrement (#34) + * Fixing -Hue/-Saturation/-Brightness behavior to allow increment parameters to work. (#36) + * Making Parameter Aliases consistent with Set-HueLight (#38) +* Now using [GitPub](https://github.com/StartAutomating/GitPub) to blog (#37). --- ## 0.2.5: From d40d5c2a5cee30db34b72dbd25e52bf3be4ebc25 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:23:12 +0000 Subject: [PATCH 24/26] Merge branch 'main' into NanoLeaf-Improvement-And-GitPub --- docs/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index b22b31b..0327b14 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,5 +297,3 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ - - From f981defca86f905d4759969920e4bb0ed6390b79 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:23:12 +0000 Subject: [PATCH 25/26] Merge branch 'main' into NanoLeaf-Improvement-And-GitPub --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index 0327b14..a59c242 100644 --- a/docs/README.md +++ b/docs/README.md @@ -297,3 +297,4 @@ Set-KeyLight -ColorTemperature 270 -Brightness 0.25 Set-KeyLight -On -Brightness 0.25 ~~~ + From e1aa035651f9d883a63cc0a9f8aea142dcaf66b9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 12 Oct 2022 21:23:12 +0000 Subject: [PATCH 26/26] Merge branch 'main' into NanoLeaf-Improvement-And-GitPub --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index a59c242..b22b31b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -298,3 +298,4 @@ Set-KeyLight -On -Brightness 0.25 ~~~ +