{"id":7743425,"name":"cloudyspells/PSWattTime","ecosystem":"actions","description":"Get Azure region with optimal carbon emissions from a given set","homepage":"","licenses":"gpl-3.0","normalized_licenses":["GPL-3.0"],"repository_url":"https://github.com/cloudyspells/PSWattTime","keywords_array":["azure","carbon-emissions","carbon-footprint","co2","co2-emissions","co2-footprint","deployment","github-actions","green-computing","green-software","powershell","powershell-module","sustainability","sustainable-software"],"namespace":"cloudyspells","versions_count":6,"first_release_published_at":"2023-03-05T20:35:39.000Z","latest_release_published_at":"2023-03-26T17:59:36.000Z","latest_release_number":"v1.0.5","last_synced_at":"2026-05-15T07:32:21.658Z","created_at":"2023-05-17T08:44:25.536Z","updated_at":"2026-05-15T07:32:21.658Z","registry_url":"https://github.com/cloudyspells/PSWattTime","install_command":null,"documentation_url":null,"metadata":{"name":"PSWattTime for Azure regions","description":"Get Azure region with optimal carbon emissions from a given set","branding":{"icon":"loader","color":"green"},"inputs":{"azure_credential":{"description":"Azure credential secret for azure/login@v1 action","required":true},"regions":{"description":"Comma seperated list of Azure regions to check for current emissions","required":false,"default":"\"westeurope\",\"northeurope\""},"watttime_username":{"description":"Username for registered watttime.org account","required":true},"watttime_password":{"description":"Password for registered watttime.org account","required":true}},"outputs":{"region":{"description":"Azure region with the best emissions","value":"${{ steps.invokewatttime.outputs.region}}"},"percent":{"description":"Percentage of energy with carbon emissions","value":"${{ steps.invokewatttime.outputs.percent }}"}},"runs":{"using":"composite","steps":[{"id":"azurelogin","uses":"azure/login@v1","with":{"creds":"${{ inputs.azure_credential }}","enable-AzPSSession":true}},{"id":"invokewatttime","shell":"pwsh","run":"Set-PSRepository PSGallery -InstallationPolicy Trusted\nInstall-Module Az.Resources\nImport-Module Az.Resources\nImport-Module ${{ github.action_path }}/src/PSWattTime\n$token = Get-WattTimeAuthToken -Username ${{ inputs.watttime_username }} -Password ${{ inputs.watttime_password }}\n$result = Get-AzureRegionWithLowestWattTime -Regions ${{ inputs.regions }} -AuthToken $token\n\"region=$($result.region)\" \u003e\u003e $env:GITHUB_OUTPUT\n\"percent=$($result.percent)\" \u003e\u003e $env:GITHUB_OUTPUT\nWrite-Output \"### PSWattTime Azure Region selection\" \u003e\u003e $env:GITHUB_STEP_SUMMARY\nWrite-Output \"\" \u003e\u003e $env:GITHUB_STEP_SUMMARY\nWrite-Output \"- Azure region with lowest emissions: **$($result.region)**\" \u003e\u003e $env:GITHUB_STEP_SUMMARY\nWrite-Output \"- Emissions percentage: **$($result.percent)**\" \u003e\u003e $env:GITHUB_STEP_SUMMARY\n"}]},"default_branch":"main","path":null},"repo_metadata":{"uuid":"609922442","full_name":"cloudyspells/PSWattTime","owner":"cloudyspells","description":"PowerShell module for WattTime API free functions","archived":false,"fork":false,"pushed_at":"2023-03-26T18:03:52.000Z","size":77,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-14T08:40:40.014Z","etag":null,"topics":["azure","carbon-emissions","carbon-footprint","co2","co2-emissions","co2-footprint","deployment","github-actions","green-computing","green-software","powershell","powershell-module","sustainability","sustainable-software"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudyspells.png","metadata":{},"created_at":"2023-03-05T16:31:20.000Z","updated_at":"2023-04-06T16:15:28.000Z","dependencies_parsed_at":"2023-05-29T01:00:10.725Z","dependency_job_id":null,"html_url":"https://github.com/cloudyspells/PSWattTime","commit_stats":null,"previous_names":[],"tags_count":6,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudyspells","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145722657,"owners_count":6280670,"icon_url":"https://github.com/github.png","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"cloudyspells","name":"cloudyspells","uuid":"123959546","kind":"organization","description":null,"email":null,"website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/123959546?v=4","repositories_count":1,"last_synced_at":"2023-03-29T19:41:52.174Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/cloudyspells","created_at":"2023-03-29T19:41:52.176Z","updated_at":"2023-03-29T19:41:52.176Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudyspells","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudyspells/repositories"},"tags":[{"name":"v1.0.5","sha":"0eeb66f281017170044f020cbe1589fd0031032b","kind":"commit","published_at":"2023-03-26T17:59:36.000Z","download_url":"https://codeload.github.com/cloudyspells/PSWattTime/tar.gz/v1.0.5","html_url":"https://github.com/cloudyspells/PSWattTime/releases/tag/v1.0.5","dependencies_parsed_at":"2023-06-02T00:54:57.592Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.5/manifests"},{"name":"v1.0.4","sha":"685bba21a808de8bb8c9b25734442853c2d67f92","kind":"commit","published_at":"2023-03-12T21:22:42.000Z","download_url":"https://codeload.github.com/cloudyspells/PSWattTime/tar.gz/v1.0.4","html_url":"https://github.com/cloudyspells/PSWattTime/releases/tag/v1.0.4","dependencies_parsed_at":"2023-06-02T00:54:57.353Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.4/manifests"},{"name":"v1.0.3","sha":"e703e48de3acb0069374aad5c370f6f6e43f5a3d","kind":"commit","published_at":"2023-03-12T15:11:57.000Z","download_url":"https://codeload.github.com/cloudyspells/PSWattTime/tar.gz/v1.0.3","html_url":"https://github.com/cloudyspells/PSWattTime/releases/tag/v1.0.3","dependencies_parsed_at":"2023-06-02T00:54:57.547Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.3/manifests"},{"name":"v1.0.2","sha":"4db8d94ecc2ff9f5acca16eb05093153edbc1ac5","kind":"commit","published_at":"2023-03-08T20:11:50.000Z","download_url":"https://codeload.github.com/cloudyspells/PSWattTime/tar.gz/v1.0.2","html_url":"https://github.com/cloudyspells/PSWattTime/releases/tag/v1.0.2","dependencies_parsed_at":"2023-06-02T00:54:57.595Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.2/manifests"},{"name":"v1.0.1","sha":"edfd52b24d4896a0d462659b280db80b0d5e518c","kind":"commit","published_at":"2023-03-07T15:12:36.000Z","download_url":"https://codeload.github.com/cloudyspells/PSWattTime/tar.gz/v1.0.1","html_url":"https://github.com/cloudyspells/PSWattTime/releases/tag/v1.0.1","dependencies_parsed_at":"2023-06-02T00:54:57.596Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"e86c2640df82fdefaffd445ee7648981f67481f0","kind":"commit","published_at":"2023-03-05T20:35:39.000Z","download_url":"https://codeload.github.com/cloudyspells/PSWattTime/tar.gz/v1.0.0","html_url":"https://github.com/cloudyspells/PSWattTime/releases/tag/v1.0.0","dependencies_parsed_at":"2023-06-02T00:54:57.206Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyspells%2FPSWattTime/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2023-07-14T10:10:04.860Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":24.791633655522105,"dependent_packages_count":0.0,"stargazers_count":19.84154650610046,"forks_count":35.16399936618602,"docker_downloads_count":null,"average":19.949294881952145},"purl":"pkg:githubactions/cloudyspells/PSWattTime","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/cloudyspells/PSWattTime","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/cloudyspells/PSWattTime","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/cloudyspells/PSWattTime/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/cloudyspells%2FPSWattTime/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/cloudyspells%2FPSWattTime/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/cloudyspells%2FPSWattTime/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/cloudyspells%2FPSWattTime/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/cloudyspells%2FPSWattTime/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/cloudyspells%2FPSWattTime/codemeta","maintainers":[]}