More rename work

This commit is contained in:
jokob-sk
2024-04-07 12:38:17 +10:00
parent f06e084336
commit 775a119f32
106 changed files with 352 additions and 2390 deletions

View File

@@ -1,27 +0,0 @@
## Übersicht
Ein Plugin zum Importieren von nicht erkennbaren Geräten aus einer Datei. Das Plugin findet Verwendung, wenn "dumme" Netzwerkkomponenten (z.B. Unmanaged Hubs/Switches) zur Netzwerkansicht hinzugefügt werden sollen. Möglicherweise gibt es weitere Anwendungsfälle, bitte informiert uns darüber.
### Verwendung
- Einstellungen aufrufen und Nicht erkennbare Geräte in der Liste der Plugins finden
- Plugin aktivieren, indem der `RUN`-Parameter von `disabled` zu `once` oder `always_after_scan` geändert wird
- Gerätenamen der Liste hinzufügen (Beispieleintrag zuerst entfernen)
- SPEICHERN
- Auf Abschluss des nächsten Scans warten
#### Beispiele
Einstellungen:
![settings](https://github.com/Data-Monkey/Pi.Alert/assets/7224371/52883307-19a5-4602-b13a-9825461f6cc4)
Resultat:
![devices](https://github.com/Data-Monkey/Pi.Alert/assets/7224371/9f7659e7-75a8-4ae9-9f5f-781bdbcbc949)
Erlaubt nicht erkennbare Geräte wie Hubs, Switches oder APs in der Netzwerkansicht:
![network](https://github.com/Data-Monkey/Pi.Alert/assets/7224371/b5ccc3b3-f5fd-4f5b-b0f0-e4e637c6da33)
### Bekannte Einschränkungen
- Nicht erkennbare Geräte erscheinen immer als Offline. NetAlertX kann diese Geräte nicht erkennen (wie erwartet).
- Alle IPs werden auf 0.0.0.0 gesetzt, daher kann es sein, dass das "Zufällige MAC"-Icon erscheint

View File

@@ -1,27 +0,0 @@
## Descripción general
Un plugin que permite importar dispositivos no detectables desde la página de configuración.
El caso de uso principal es agregar equipos de red tontos, como concentradores y conmutadores no administrados, a la vista de red.
Puede haber otros casos de uso, hágamelo saber.
### Uso
- Vaya a configuración y busque Dispositivos no descubiertos en la lista de complementos.
- Habilite el complemento cambiando el parámetro RUN de deshabilitado a "once" o "always_after_scan".
- Añade el nombre de tu dispositivo a la lista. (elimine primero la entrada de muestra)
- GUARDAR
- Espere a que finalice el siguiente escaneo
#### Ejemplos:
Ajustes:
![configuración](https://github.com/Data-Monkey/Pi.Alert/assets/7224371/52883307-19a5-4602-b13a-9825461f6cc4)
Resultado en dispositivos:
![dispositivos](https://github.com/Data-Monkey/Pi.Alert/assets/7224371/9f7659e7-75a8-4ae9-9f5f-781bdbcbc949)
Permitir que dispositivos no detectables como concentradores, conmutadores o AP se agreguen a la vista de red.
![red](https://github.com/Data-Monkey/Pi.Alert/assets/7224371/b5ccc3b3-f5fd-4f5b-b0f0-e4e637c6da33)
### Limitaciones conocidas
- Los dispositivos no detectables siempre se muestran sin conexión. Esto es de esperar, ya que NetAlertX no puede descubrirlos.
- Todas las IP están configuradas en 0.0.0.0, por lo que es posible que aparezca el icono "MAC aleatoria".

View File

@@ -8,12 +8,12 @@ import sys
import hashlib
sys.path.append("/home/pi/pialert/front/plugins")
sys.path.append('/home/pi/pialert/pialert')
sys.path.append('/home/pi/pialert/netalertx')
from plugin_helper import Plugin_Object, Plugin_Objects, decodeBase64
from logger import mylog, append_line_to_file
from helper import timeNowTZ
from const import logPath, pialertPath
from const import logPath, applicationPath
CUR_PATH = str(pathlib.Path(__file__).parent.resolve())
LOG_FILE = os.path.join(CUR_PATH, 'script.log')