All Projects → jhubig → FritzBoxShell

jhubig / FritzBoxShell

Licence: MIT License
Some shell scripts for controlling and checking the Fritz!Box/Fritz!Repeater

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to FritzBoxShell

opencv3-setup
Raspberry Pi whiptail Menu driven Easy Install and Compile of opencv3 python from source files.
Stars: ✭ 47 (-41.25%)
Mutual labels:  curl, raspberry
xstate-viz
Visualizer for XState machines
Stars: ✭ 274 (+242.5%)
Mutual labels:  workflow
Request
A simple PHP HTTP request class.
Stars: ✭ 49 (-38.75%)
Mutual labels:  curl
formatbot1
Make instant view easily and fast, from any article on the internet in the best messenger ever Telegram
Stars: ✭ 127 (+58.75%)
Mutual labels:  telegraf
email-checker
Provides email verification on the go.
Stars: ✭ 116 (+45%)
Mutual labels:  curl
docker-rpi-plex-video-converter
Raspberry PI - Plex Video converter - Docker image (Multiarch)
Stars: ✭ 19 (-76.25%)
Mutual labels:  raspberry
curly.hpp
Simple cURL C++17 wrapper
Stars: ✭ 48 (-40%)
Mutual labels:  curl
Mac-OS-Setup-Applications
👾 All I need to setup a new Mac and the applications I use everyday as a Web Developper
Stars: ✭ 96 (+20%)
Mutual labels:  workflow
WeiboPictureWorkflow
微博图床 Alfred Workflow,警告:微博修改了登录方式,此 workflow 暂时不能用了,何时修复未定,推荐使用 iPic
Stars: ✭ 23 (-71.25%)
Mutual labels:  workflow
ionic-push-php
ionic-push-php is a library that allows you to consume the Ionic Cloud API for sending push notifications (normal and scheduled), get a paginated list of sending push notifications, get information of registered devices, remove registered devices by token, ...
Stars: ✭ 20 (-75%)
Mutual labels:  curl
setup-linux-debian
Installs essential JavaScript development programs.
Stars: ✭ 16 (-80%)
Mutual labels:  curl
iRadio
Ein Softwarebaukasten für den Aufbau/Umbau von Radios auf Raspberry Pi Basis
Stars: ✭ 15 (-81.25%)
Mutual labels:  raspberry
tsioc
AOP, Ioc container, Boot framework, unit testing framework , activities workflow framework.
Stars: ✭ 15 (-81.25%)
Mutual labels:  workflow
pmvr
Raspberry Pi Motion Video Recorder
Stars: ✭ 22 (-72.5%)
Mutual labels:  raspberry
IoTFlow
Visual tool for IoT 💡
Stars: ✭ 30 (-62.5%)
Mutual labels:  raspberry
NR1-UI
Userinterface for Volumio (RaspberryPi) with ssd1322 and ssd1306 oled display, spectrum bargraph, progress bar, LED functions, Standby-functions, 4 Buttons and Rotary Encoder.
Stars: ✭ 29 (-63.75%)
Mutual labels:  raspberry
crosware
Tools, things, stuff, miscellaneous, etc., for Chrome OS / Chromium OS
Stars: ✭ 36 (-55%)
Mutual labels:  curl
SimplecURL
Easy to use HTTP Client for PHP
Stars: ✭ 14 (-82.5%)
Mutual labels:  curl
git-commands-workflows
🚀 All the git commands and workflows you need to know
Stars: ✭ 50 (-37.5%)
Mutual labels:  workflow
pastebin-bot
Advanced functional Pastebin Telegram Bot made using better-pastebin and TelegrafJS. This bot will help you to create pastes (Texts) on Pastebin which is a text cloud.
Stars: ✭ 16 (-80%)
Mutual labels:  telegraf

GitHub release GitHub tag made-with-bash GitHub license GitHub issues GitHub issues-closed contributions welcome GitHub contributors Github All Releases Github All Releases

FritzBoxShell

AVM_FRITZ_Labor_FRITZBox_7490-min.jpg

(Image credit: https://avm.de/presse/pressefotos/?q=7490)

Introduction

The script allows you to control/check your FritzBox from the terminal with a shell script. It is planned to add more functions in the future. The shell script uses cURL to create an SOAP request based on the TR-064 protocol to talk to the AVM Fritz!Box and AVM Fritz!Repeater.

To change state of the LEDs in front of the Fritz!Box or activate the keylock (buttons on the can be activated or deactivated) the TR-064 protocol does not offer the possibility. Therefore the AHA-HTTP-Interface is used. This only works from firmware version 7.10 and upwards.

Please raise an issue with your function you would like to add.

Become a part of it!

If you want to check out if your AVM device actually works with this script, you can do so by executing fritzBoxShellTest.sh. It prints for (almost) every Service/Action pair if they delivered data when called.

Authentication is handled exactly as described for fritzBoxShell.sh.

The result is a list written to the console containing the names of the checked service and actions followed by the result of the check. Finally, the device type and firmware version are printed (of course only if this functionality was accessible!).

As an example - the result for my Fritz!Box:

WLAN_2G STATISTICS43	is working!
WLAN_2G STATE6	is working!
WLAN_5G STATISTICS43	is working!
WLAN_2G STATE6	is working!
WLAN STATE12	is working!
LAN STATE8	is working!
DSL STATE0	is not working!
WAN STATE16	is working!
LINK STATE0	is not working!
IGDWAN STATE28	is working!
IGDDSL STATE15	is working!
IGDIP STATE48	is working!
NewModelName FRITZ!Box 6490 Cable (kdg)
NewSoftwareVersion 141.06.87

Installing, configuring and first script execution

Head over to the Wiki pages to get all the information: https://github.com/jhubig/FritzBoxShell/wiki/Installation,-Configuration-&-First-test

Arguments/Enviroments

You can use variables or arguments. However, arguments are visible in the process list and are therefore not recommended for passwords.

If these arguments or environment variables are not set, then the values from the fritzBoxShellConfig.sh are used.

Here an example (This will enable the 2.4 Ghz network on the box with the following IP):

./fritzBoxShell.sh --boxip 192.168.178.1 --boxuser foo --boxpw baa WLAN_2G 1

Enviroment Argument Description
BoxIP --boxip IP or DNS of FritzBox
BoxUSER --boxuser Username
BoxPW --boxpw Login password for user.
RepeaterIP --repeaterip IP or DNS of FritzRepeater
RepeaterUSER --repeateruser Usually on Fritz!Repeater no User is existing. Can be left empty.
RepeaterPW --repeaterpw Password for user.

Usage

After the successful installation and setup following functions should be available.

Action Parameter Description
WLAN_2G 0 or 1 or STATE Switching ON, OFF or checking the state of the 2,4 Ghz WiFi
WLAN_2G STATISTICS Statistics for the 2,4 Ghz WiFi easily digestible by telegraf
WLAN_2G QRCODE Show a qr code to connect to the 2,4 Ghz WiFi
WLAN_5G 0 or 1 or STATE Switching ON, OFF or checking the state of the 5 Ghz WiFi
WLAN_5G STATISTICS Statistics for the 5 Ghz WiFi easily digestible by telegraf
WLAN_5G QRCODE Show a qr code to connect to the 5 Ghz WiFi
WLAN_GUEST 0 or 1 or STATE Switching ON, OFF or checking the state of the Guest WiFi
WLAN_GUEST STATISTICS Statistics for the Guest WiFi easily digestible by telegraf
WLAN_GUEST QRCODE Show a qr code to connect to the Guest WiFi
WLAN 0 or 1 or STATE Switching ON, OFF or checking the state of the 2,4Ghz and 5 Ghz WiFi
TAM and GetInfo e.g. TAM 0 GetInfo (gives info about answering machine)
TAM and ON or OFF e.g. TAM 0 ON (switches ON the answering machine)
TAM and GetMsgs e.g. TAM 0 GetMsgs (gives XML formatted list of messages)
LED 0 or 1 Switching ON (1) or OFF (0) the LEDs in front of the Fritz!Box
LED_BRIGHTNESS 1 or 2 or 3 Setting the brightness of the LEDs in front of the Fritz!Box
KEYLOCK 0 or 1 Activate (1) or deactivate (0) the Keylock (buttons de- or activated)
LAN STATE Statistics for the LAN easily digestible by telegraf
DSL STATE Statistics for the DSL easily digestible by telegraf
WAN STATE Statistics for the WAN easily digestible by telegraf
WAN RECONNECT Ask for a new IP Address from your provider
LINK STATE Statistics for the WAN DSL LINK easily digestible by telegraf
IGDWAN STATE Statistics for the WAN LINK easily digestible by telegraf
IGDDSL STATE Statistics for the DSL LINK easily digestible by telegraf
IGDIP STATE Statistics for the DSL IP easily digestible by telegraf
REPEATER 0 Switching OFF the WiFi of the Repeater
REBOOT Box or Repeater Rebooting your Fritz!Box or Fritz!Repeater
UPNPMetaData STATE or Full unformatted output of tr64desc.xml to console or file
IGDMetaData STATE or Full unformatted output of igddesc.xml to console or file
VERSION <N/A> Version of the fritzBoxShell.sh

Notes:

  • Script will only work if device from where the script is called is in the same network (same WiFi, LAN or VPN connection)
  • Not possible to switch ON the Fritz!Repeater after it has been switched OFF. This only works on Fritz!Box if still 2,4Ghz or 5Ghz is active or VPN connection to Fritz!Box is established

External Links

Here you can find more information on TR-064 protocol and the available actions in your Fritz!Box or Fritz!Repeater.

AVM, FRITZ!, Fritz!Box and the FRITZ! logo are registered trademarks of AVM GmbH - https://avm.de/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].