Git Product home page Git Product logo

fritzconnection's Introduction

fritzconnection

Python versions

Python-Tool to communicate with the AVM FritzBox. Uses the TR-064 protocol over UPnP.

Installation:

pip install fritzconnection

Quickstart:

Using fritzconnection is as easy as:

from fritzconnection import FritzConnection

fc = FritzConnection(address='192.168.178.1')
fc.reconnect()  # get a new external ip from the provider
print(fc)  # print router model informations

In general FritzConnection can execute every action provided by the (model-specific) API. For i.e. this can be WLAN settings, internet connection and device status informations, home automation services and much more.

The central method FritzConnection provides to access the FritzOS-API is the call_action() method. A reconnection by means of call_action() would look like this:

fc = FritzConnection(address='192.168.178.1')
fc.call_action("WANIPConn1", "ForceTermination")

The package comes with a library providing some modules as examples how to implement applications on top of FritzConnection.

The package also allows to monitor phone calls in real time by means of the FritzMonitor class (new in 1.4.0):

from fritzconnection import FritzMonitor

fm = FritzMonitor(address='192.168.178.1')  # default ip for most routers
queue = fm.start()  # start monitoring: provides a queue.Queue instance
# do queue handling here
fm.stop()  # stop monitoring

Documentation

The full documentation and release notes are at https://fritzconnection.readthedocs.org

fritzconnection's People

Contributors

aarondavidschneider avatar bachp avatar bufemc avatar chemelli74 avatar davidmstraub avatar dkuschmierz avatar dphi avatar dr-seltsam avatar fettlaus avatar fetzerch avatar florianludwig avatar jmtatsch avatar kbr avatar linusg avatar scop avatar smartc2016 avatar svenstaro avatar themanwithoutaplan avatar valodim avatar viaregio avatar westfeld avatar

Watchers

 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.