Java API for managing FritzBox HomeAutomation using AVM Home Automation HTTP Interface inspired by grundid's fritzbox-java-api. This also runs on Android devices (see Andect).
Due to the deprecation of JCenter new versions will be published to Maven Central. In your build script please use
repositories {
mavenCentral()
}
See CHANGELOG.md.
-
Add Maven Central maven repository:
repositories { mavenCentral() }
-
Add dependency
dependencies { compile 'com.github.kaklakariada:fritzbox-java-api:1.5.0' }
- Copy file
application.properties.template
toapplication.properties
and enter settings for your device. - Run example class
TestDriver
.
$ ./gradlew licenseFormat
$ ./gradlew dependencyUpdates
Install to local maven repository:
./gradlew clean publishToMavenLocal
-
Add the following to your
~/.gradle/gradle.properties
:ossrhUsername=<your maven central username> ossrhPassword=<your maven central passwort> signing.keyId=<gpg key id (last 8 chars)> signing.password=<gpg key password> signing.secretKeyRingFile=<path to secret keyring file>
-
Increment version number in
build.gradle
andREADME.md
, update CHANGELOG.md, commit and push. -
Run the following command:
$ ./gradlew clean check build publish closeAndReleaseRepository --info
-
Create a new release on GitHub.
-
After some time the release will be available at Maven Central.