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.6.1'
}
<dependency>
<groupId>com.github.kaklakariada</groupId>
<artifactId>fritzbox-java-api</artifactId>
<version>1.6.1</version>
</dependency>
Create file application.properties
with the following content and enter settings for your device:
fritzbox.url = https://fritz.box
fritzbox.username = user
fritzbox.password = secret
TestDriver
../gradlew licenseFormat
./gradlew dependencyUpdates
./gradlew ossIndexAudit
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
and README.md
, update CHANGELOG.md, commit and push.
Optional: run the following command to do a dry-run:
./gradlew clean check build publishToSonatype closeSonatypeStagingRepository --info
Run the following command to publish to Maven Central:
./gradlew clean check build publishToSonatype closeAndReleaseSonatypeStagingRepository --info
Create a new release on GitHub.
After some time the release will be available at Maven Central.