-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #901 from KayJay7/feature/freebox
- Loading branch information
Showing
5 changed files
with
757 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## Overview | ||
|
||
Plugin to pull devices, IPs, and their names from a Freebox or Iliadbox gateway. | ||
|
||
### Pairing | ||
|
||
Requirements: | ||
- Physical access to the Freebox | ||
- Network access to the same lan as the Freebox | ||
|
||
Regardless of which setup you will choose, you will first need to pair NetAlertX to your Freebox. To pair, the device running NetAlertX *must* be connected on the same lan as the Freebox. After pairing, the device can access your Freebox even from the Internet (se [remote setup](#remote-setup)). | ||
|
||
To pair, you can leave the settings to their default values (same as [quick setup](#quick-setup)), though other configurations will work as well if you can't use the default one. | ||
|
||
When you run the plugin the first time, it will send a pairing request to the Freebox, if you look at the logs you will see a message saying to *"Continue the pairing on your Freebox"*. At this point, on the front panel of the Freebox you will see an authorization request, confirm it using the buttons on the front panel to complete the pairing. | ||
If you don't see the message on the logs, something is preventing the plugin from running. | ||
|
||
Note: You can screen and revoke any previous authorization (completed or attempted) from the web interface of your Freebox. | ||
|
||
### Quick setup | ||
|
||
Note: read [pairing](#pairing) first. | ||
|
||
By default the plugin will connect to the address `mafreebox.freebox.fr` on the HTTPS port `443`, if you have an Iliadbox, replace the address with `myiliadbox.iliad.it`. This will work in most cases, but has some limitations. | ||
|
||
Limitations: | ||
- It requires internet access | ||
- The Freebox must be your gateway | ||
- The device must be in the same lan as the Freebox | ||
|
||
### Offline setup (recommended) | ||
|
||
Use this configuration if you wish to connect to your Freebox even when you are offline, or the Freebox is not your gateway. | ||
|
||
Find the local IP address of your Freebox, if it is your gateway, you can find the address on your computer/smartphone network configuration (usually it's `192.168.1.1`). Go in the plugin settings and set the IP as address and `80` as the port (do *not* use `443` as the port). This configuration works regardless of your internet connection and poses little limitations. | ||
|
||
Limitations: | ||
- *If* there is no internet connection, the plugin will fallback to HTTP (not HTTPS) | ||
|
||
For more detail: the plugin will connect to the specified address and port to fetch information about the Freebox, then it will either connect in HTTPS through the Freebox's unique domain name, or connect over HTTP if there is no internet connection. The freebox does offer an HTTPS port on the local network, but the certificate will be invalid for the local IP, and the connection will be aborted. | ||
|
||
### Remote setup | ||
|
||
Use this configuration if you wish to connect to your Freebox through the internet. You still need to pair from the local network. | ||
|
||
If the Freebox is not your gateway, configure a NAT and follow the [offline setup](#offline-setup-recommended). | ||
|
||
If the Freebox is your gateway you need to find its HTTPS (or HTTP if you prefer) public port. This can be found either in the Freeboxe's web interface and by navigating to `settings>access management`, or (just for the HTTPS port) by visiting http://mafreebox.freebox.fr:80/api_version from the local network (you can use the local ip as well). This is the port you need to access your Freebox through the internet | ||
|
||
As address, you can either use the public IP of the Freebox, or the unique domain name you found on http://mafreebox.freebox.fr:80/api_version listed as `api_domain`. |
Oops, something went wrong.