Skip to content

Access your FritzBox from any Java application using this lightweight API.

Notifications You must be signed in to change notification settings

ISchwarz23/FritzBox-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

FritzBox-API

Access your FritzBox from any Java application using this API. Tested on Fritz!Box 7390 (Fritz!OS 06.20)

This API is using the WebApp running on the FritzBox for interaction. So whether Telnet nor UPnP have to be activated.

Functionalities

  • log in
  • get public IP
  • reconnect to internet (get new IP)
  • turn on guest WiFi access point
  • configure guest WiFi access point
  • receive caller list

Usage Examples

Receiving new IP

final FritzBoxInterface fritzBox = new FritzBoxConnector().login("myPassword");
System.out.println("Old IP: "   fritzBox.getInternetIP());
fritzBox.reconnectToInternet();
System.out.println("New IP: "   fritzBox.getInternetIP());

Receiving caller list

final FritzBoxInterface fritzBox = new FritzBoxConnector().login("myPassword");
final List<Call> callList = fritzBox.getCallList();
for (final Call call : callList) {
	System.out.println(call);
}

Turn on Guest WiFi (simple mode)

final FritzBoxInterface fritzBox = new FritzBoxConnector().login("myPassword");
fritzBox.turnOnGuestWiFi("MyGuest WiFi", "myPassword");

Turn on Guest WiFi (advanced mode)

final boolean activatePushService = true;
final boolean limitOnWebAccess = true;
final boolean allowCommunicationBetweenClients = false;
final FritzBoxInterface fritzBox = new FritzBoxConnector().login("myPassword");
fritzBox.turnOnGuestWiFi("MyGuest WiFi", SecurityMode.WPA2, "myPassword", activatePushService, limitOnWebAccess, allowCommunicationBetweenClients);

Turn off Guest WiFi

final FritzBoxInterface fritzBox = new FritzBoxConnector().login("myPassword");
fritzBox.turnOffGuestWiFi();

Dependencies

  • slf4j-api-1.7.10
  • slf4j-simple-1.7.10

About

Access your FritzBox from any Java application using this lightweight API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages