mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Merge branch 'master' of https://github.com/alexbelgium/hassio-addons
This commit is contained in:
@@ -1 +1,4 @@
|
||||
|
||||
## 1.0.0 (07-12-2021)
|
||||
- Update to latest version from t0mer/Arpspoof-Docker
|
||||
- Initial release
|
||||
|
||||
@@ -3,7 +3,8 @@ ARG BUILD_VERSION
|
||||
FROM techblog/arpspoof-docker:latest
|
||||
ENV BASHIO_VERSION=0.14.3
|
||||
ENV PACKAGES="jq \
|
||||
curl"
|
||||
curl \
|
||||
iproute2"
|
||||
|
||||
RUN \
|
||||
################
|
||||
|
||||
@@ -42,6 +42,23 @@ ROUTER_IP: 127.0.0.1 #Required Router IP
|
||||
INTERFACE_NAME: name #Required Interface name. Autofilled if empty.
|
||||
```
|
||||
|
||||
## Home-Assistant configuration
|
||||
|
||||
You can use a `command_line` switch to temporary disable a internet device in your network.
|
||||
|
||||
|
||||
```yaml
|
||||
- platform: command_line
|
||||
switches:
|
||||
iphone_internet:
|
||||
friendly_name: "iPhone internet"
|
||||
command_off: "/usr/bin/curl -X GET http://{HA-IP}:7022/disconnect?ip={iPhoneIP}"
|
||||
command_on: "/usr/bin/curl -X GET http://{HA-IP}:7022/reconnect?ip={iPhoneIP}"
|
||||
command_state: "/usr/bin/curl -X GET http://{HA-IP}:7022/status?ip={iPhoneIP}"
|
||||
value_template: >
|
||||
{{ value != "1" }}
|
||||
```
|
||||
|
||||
## Support
|
||||
|
||||
Create an issue on github
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"apparmor": true,
|
||||
"arch": ["aarch64", "amd64", "armv7", "armhf"],
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"boot": "auto",
|
||||
"description": "block internet connection for local network devices",
|
||||
"devices": [
|
||||
],
|
||||
"environment": {
|
||||
},
|
||||
"devices": [],
|
||||
"environment": {},
|
||||
"map": [],
|
||||
"host_network": true,
|
||||
"name": "Arpspoof",
|
||||
@@ -19,14 +22,17 @@
|
||||
"ports_description": {
|
||||
"7022/tcp": "web interface"
|
||||
},
|
||||
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||
"privileged": [
|
||||
"SYS_ADMIN",
|
||||
"DAC_READ_SEARCH"
|
||||
],
|
||||
"schema": {
|
||||
"ROUTER_IP": "str",
|
||||
"INTERFACE_NAME": "str?"
|
||||
},
|
||||
"slug": "arpspoof",
|
||||
"upstream": "1.0",
|
||||
"upstream": "1.0.0",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"version": "1.0",
|
||||
"version": "1.0.0",
|
||||
"webui": "http://[HOST]:[PORT:7022]"
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
# Autodefine if not defined
|
||||
if [ -z INTERFACE_NAME ]; then
|
||||
INTERFACE_NAME=$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')
|
||||
if [ ! -z INTERFACE_NAME ]; then
|
||||
export INTERFACE_NAME=$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')
|
||||
bashio::log.blue "Autodetection : INTERFACE_NAME=$INTERFACE_NAME"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user