Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
fhem [2020/10/08 14:28] admin angelegt |
fhem [2020/10/08 14:45] (aktuell) admin |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== FHEM-Abfragen ====== | ====== FHEM-Abfragen ====== | ||
| - | - eigene IP Adresse bestimmen | + | ==== Eigene IP Adresse bestimmen ==== |
| - | * Variante 1 - Abfrage bei www.wieistmeineip.de | + | === Variante 1 - Abfrage über www.wieistmeineip.de === |
| - | ''define myIP HTTPMOD https://www.wieistmeineip.de/ 900 | + | define myIP HTTPMOD https://www.wieistmeineip.de/ 900 |
| - | attr myIP userattr reading01Name reading01Regex | + | attr myIP userattr reading01Name reading01Regex |
| - | attr myIP event-on-change-reading state | + | attr myIP reading01Name IP |
| - | attr myIP reading01Name IP | + | attr myIP reading01Regex (?s)Ihre IP-Adresse?.*strong>([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) |
| - | attr myIP reading01Regex (?s)Ihre IP-Adresse?.*strong>([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) | + | attr myIP stateFormat IP |
| - | attr myIP room System | + | |
| - | attr myIP stateFormat IP'' | + | |
| + | === Variante 2 - Abfrage am Router (Digitalisierungsbox) === | ||
| + | |||
| + | define myIPv4 HTTPMOD http://192.168.1.1/cgi-bin/status.xml 900 | ||
| + | attr myIPv4 userattr reading01Name reading01Regex | ||
| + | attr myIPv4 reading01Name IP | ||
| + | attr myIPv4 reading01Regex (?s).*address>([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) | ||
| + | attr myIPv4 stateFormat IP | ||