Giter VIP home page Giter VIP logo

lmissel / harmankardon.avr.commands Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 29 KB

The PowerShell module HarmanKardon.AVR.Commands was created with the aim to remotely control a Harman Kardon AVR Controller 171S. The AVR Controller from Harman Kardon offers network functions for example AirPlay or Spotify. But other AVR controllers from the manufacturer can also be controlled via this module.

PowerShell 100.00%
harmankardon powershell

harmankardon.avr.commands's Introduction

HarmanKardon.AVR.Commands

The PowerShell module HarmanKardon.AVR.Commands was created with the aim to remotely control a Harman Kardon AVR Controller 171S. The AVR Controller from Harman Kardon offers network functions for example AirPlay or Spotify. But other AVR controllers from the manufacturer can also be controlled via this module.

Description

The PowerShell module HarmanKardon.AVR.Commands provides functions for remote control of a Harman Kardon AVR controller. With this module you are able to control all functions of the device via PowerShell. The PowerShell module could easily be extended to control other devices such as a bluray player from the manufacturer. The device's SOAP web service is used to control the device. This is done by establishing a TCP connection with port 10025 (default) and then sending the SOAP command (XML). The file avr.xml serves as a template and provides the structure of the SOAP command of the function Invoke-HKAVRCommand.

Minimum Requirements

The module requires .NET and PowerShell. The following versions are supported:

Product Version
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
PowerShell 3.0 or higher

Installation

To install and run this module, copy the folder with the name HarmanKardon.AVR.Commands to one of the appropriate PowerShell paths, and use the command Import-Module -Name HarmanKardon.AVR.Commands.

The paths where you can install this module are in the $env:PSModulePath global variable. For example, a common path to store a module on a system would be %SystemRoot%/users/<user>/Documents/PowerShell/Modules/<moduleName>. Be sure to create a directory for this module that uses the same name as the script module. If you did not save this module in one of these paths, you must specify the location of the module in the Import-Module command. Otherwise, PowerShell would not be able to find the module.

Starting with PowerShell, if you've placed this module in one of the PowerShell module paths, you don't need to explicitly import it. This module is automatically loaded when a user calls a function of the module. For more information about the module path, see Importing a PowerShell Module and Modifying the PSModulePath Installation Path.

To remove this module from active service in the current PowerShell session, use Remove-Module -name HarmanKardon.AVR.Commands.

Note

Remove-Module removes a module from the current PowerShell session, but doesn't uninstall the module or delete the module's files.

Usage

# Loading module
Import-Module HarmanKardon.AVR.Commands

# volume-up
Invoke-HKAVRCommand -HostName 172.16.15.123 -Port 10025 -Command "volume-up" -Zone "Main Zone"

Known Issues

Title Description
Power-On As soon as the device is in standby mode for a longer time, the device cannot be switched on with the command Invoke-HKAVRCommand -HostName 172.16.15.123 -Port 10025 -Command "power-on" -Zone "Main Zone".

Notes

Support for the module is limited. Please report issues in the source code repository via the Feedback section using the link on this page.

Feedback

Submit and view feedback for this module.

harmankardon.avr.commands's People

Contributors

lmissel avatar

Stargazers

kylin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.