imeszaros / ambilight-api

A very lightweight JVM library allowing to access the JointSPACE interface implemented by Philips televisions to retrieve or manipulate Ambilight data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ambilight API

A very lightweight JVM library allowing to access the JointSPACE interface implemented by Philips televisions to retrieve or manipulate Ambilight data. Written in Kotlin.

For the JointSPACE interface, see http://jointspace.sourceforge.net/projectdata/documentation/jasonApi/1/doc/API.html

This library uses OkHTTP and GSON under the hood.

License: Apache 2.0

Usage

Include the library in your build:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.imeszaros:ambilight-api:v0.1'
}

Instantiate and call the API:

fun main(args: Array<String>) {
    val ambilight = Ambilight("192.168.0.10", "6") // Television IP address and API version
    println(ambilight.getTopology())
    println(ambilight.getProcessed())
}

For further parameters and methods, see the code docs.

About

A very lightweight JVM library allowing to access the JointSPACE interface implemented by Philips televisions to retrieve or manipulate Ambilight data.

License:Apache License 2.0


Languages

Language:Kotlin 100.0%