Skip to content

Instantly share code, notes, and snippets.

@ehrnst
Last active October 3, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehrnst/f88809ae3255d86d652826d9c8336dd5 to your computer and use it in GitHub Desktop.
Save ehrnst/f88809ae3255d86d652826d9c8336dd5 to your computer and use it in GitHub Desktop.
Altox WBUS API basic powershell
function send-altoxCommand {
param (
[Parameter(Mandatory = $true)]
$command,
[Parameter(Mandatory = $true)]
$pass,
[Parameter(Mandatory = $true)]
$email,
[Parameter(Mandatory = $true)]
$id
)
$timezone = "+2hour"
$uri = "https://altox.ru/track/app_heater.php?cmd=$command&id=$id&email=$email&pass=$pass&timezone=$timezone"
Invoke-RestMethod -Method Get -Uri $uri
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment