Access the Viessmann Web API (aka ViCare)
The project is split up in a Bash and a Powershell part. The Bash scripts are currently abandoned (feel free to contribute).
Import module and authorize at viessmann:
Import-Module ViessmannPs
Connect-Viessmann -Credential (Get-Credential) -ClientId '<client-id>' -RedirectUri 'http://localhost:4200/' -PersistFill in credential information:
PowerShell credential request
Enter your credentials.
User: my@mail.com
Password for user my@mail.com: ******
Configuration persisted to: C:\Users\<user>\.ViessmanPs\config.json
OAuth information persisted to: C:\Users\<user>\.ViessmanPs\oauth.json
Since the first connect was made with parameter -Persist subsequent calls won't need parameters:
Connect-ViessmannOAuth information persisted to: C:\Users\nico\.ViessmanPs\oauth.json