Skip to content

Commit af1e9b9

Browse files
author
jokob-sk
committed
2 parents 9503cc6 + a16c2df commit af1e9b9

File tree

8 files changed

+687
-30
lines changed

8 files changed

+687
-30
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV PATH="/opt/venv/bin:$PATH"
1414
COPY . ${INSTALL_DIR}/
1515

1616

17-
RUN pip install openwrt-luci-rpc graphene flask netifaces tplink-omada-client wakeonlan pycryptodome requests paho-mqtt scapy cron-converter pytz json2table dhcp-leases pyunifi speedtest-cli chardet python-nmap dnspython librouteros git+https://github.com/foreign-sub/aiofreepybox.git \
17+
RUN pip install openwrt-luci-rpc asusrouter asyncio aiohttp graphene flask netifaces tplink-omada-client wakeonlan pycryptodome requests paho-mqtt scapy cron-converter pytz json2table dhcp-leases pyunifi speedtest-cli chardet python-nmap dnspython librouteros git+https://github.com/foreign-sub/aiofreepybox.git \
1818
&& bash -c "find ${INSTALL_DIR} -type d -exec chmod 750 {} \;" \
1919
&& bash -c "find ${INSTALL_DIR} -type f -exec chmod 640 {} \;" \
2020
&& bash -c "find ${INSTALL_DIR} -type f \( -name '*.sh' -o -name '*.py' -o -name 'speedtest-cli' \) -exec chmod 750 {} \;"

Dockerfile.debian

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN phpenmod -v 8.2 sqlite3
4343
RUN apt-get install -y python3-venv
4444
RUN python3 -m venv myenv
4545

46-
RUN /bin/bash -c "source myenv/bin/activate && update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && pip3 install openwrt-luci-rpc graphene flask netifaces tplink-omada-client wakeonlan pycryptodome requests paho-mqtt scapy cron-converter pytz json2table dhcp-leases pyunifi speedtest-cli chardet python-nmap dnspython librouteros "
46+
RUN /bin/bash -c "source myenv/bin/activate && update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && pip3 install openwrt-luci-rpc asusrouter asyncio aiohttp graphene flask netifaces tplink-omada-client wakeonlan pycryptodome requests paho-mqtt scapy cron-converter pytz json2table dhcp-leases pyunifi speedtest-cli chardet python-nmap dnspython librouteros "
4747

4848
# Create a buildtimestamp.txt to later check if a new version was released
4949
RUN date +%s > ${INSTALL_DIR}/front/buildtimestamp.txt

front/php/templates/language/ca_ca.json

100755100644
+27-27
Large diffs are not rendered by default.

front/plugins/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Device-detecting plugins insert values into the `CurrentScan` database table. T
4040
| `INTRSPD` || Internet speed test | | | Script | [internet_speedtest](/front/plugins/internet_speedtest/) |
4141
| `IPNEIGH` | 🔍 | Scan ARP (IPv4) and NDP (IPv6) tables | | | Script | [ipneigh](/front/plugins/ipneigh/) |
4242
| `LUCIRPC` | 🔍 | Import connected devices from OpenWRT | | | Script | [luci_import](/front/plugins/luci_import/) |
43+
| `ASUSWRT` | 🔍 | Import connected devices from AsusWRT | | | Script | [asuswrt_import](/front/plugins/asuswrt_import/) |
4344
| `MAINT` || Maintenance of logs, etc. | | | Script | [maintenance](/front/plugins/maintenance/) |
4445
| `MQTT` | ▶️ | MQTT for synching to Home Assistant | | | Script | [_publisher_mqtt](/front/plugins/_publisher_mqtt/) |
4546
| `NBTSCAN` | 🆎 | Nbtscan (NetBIOS-based) name resolution | | | Script | [nbtscan_scan](/front/plugins/nbtscan_scan/) |
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Overview
2+
3+
Plugin that imports device IP, MAC, Name, Vendor and Online status from AsusWRT and AsusWRT-Merlin based routers.
4+
5+
This Plugin is using awesome [asusrouter](https://github.com/Vaskivskyi/asusrouter) library. Please check if your router is supported by it [here](https://github.com/Vaskivskyi/asusrouter?tab=readme-ov-file#supported-devices).
6+
7+
### Usage
8+
9+
- Enable the `ASUSWRT` plugin
10+
- Head to **Settings** > **AsusWRT device import** to adjust the default values.
11+
12+
### Notes
13+
14+
- In case an existing imported device is renamed in Asus Router it will not be renamed in NetAlertX. In this case it has to be done manually or the device should be removed and it will appear on the next scan.
15+
16+
## Other info
17+
18+
Version: 1.0.0
19+
Date: 16.1.2025
20+
Author: @labmonkey

0 commit comments

Comments
 (0)