Seite 1 von 1

Automatisches GastWLAN Passwort (FB-7530)

Verfasst: 23. Nov 2020 15:47
von Heavy-Dee
Auf der Suche nach einer Möglichkeit, täglich ein neues GastWLAN Passwort (FB-7530) erstellen zu lassen bin ich im FHEM Forum auf folgendes Topic gestoßen. https://forum.fhem.de/index.php/topic,1 ... msg1006864
Soweit ich das verstehe wird dieses Script dafür verwendet:

Code: Alles auswählen

                <PASSWD> = zu setzendes (wie auch immer generiertes) Passwort
		
		<FRITZ_USER> = FritzBox Benutzer
		<FRITZ_PASSWD> = Passwort des FritzBox Benutzers
		<WLAN-SSID> = FritBox WLAN SSID

        // SOAP Teil:
        $client1 = new SoapClient(null,array('location'=> "http://fritz.box:49000/upnp/control/wlanconfig3",
                        'uri' => "urn:dslforum-org:service:WLANConfiguration:3",
                        'soapaction' => "urn:dslforum-org:service:WLANConfiguration:3#SetSecurityKeys",
                        'noroot' => True,
                        'login' => <FRITZ_USER>,
                        'password' =>  <FRITZ_PASSWD>
        ));
        $client1->SetSecurityKeys(
        new SoapParam('', 'NewWEPKey0'),
        new SoapParam('', 'NewWEPKey1'),
        new SoapParam('', 'NewWEPKey2'),
        new SoapParam('', 'NewWEPKey3'),
        new SoapParam('F88F901BF783296D82CBA3FAB8922294159EA16BC043E3BCECB4CDD5E513ED04', 'NewPreSharedKey'),
        new SoapParam($pwd , 'NewKeyPassphrase')
        );

        //QR - Teil:
        $code ='qrencode -o /opt/fhem/www/tablet/image/qrh.png "WIFI:S:<WLAN-SSID>;T:WPA;P:'.<PASSWD>.';;"';
        shell_exec($code);
Nach weiterer Recherche sollte dieses wohl über TR-064 Protokoll funktionieren.
Das Fritzbox TR064 Binding nutzt ja auch dieses Protokoll.

Ist es möglich diese Funktionalität in oH mittels Binding oder das Script einzubinden?

Re: Automatisches GastWLAN Passwort (FB-7530)

Verfasst: 24. Nov 2020 06:01
von udo1toni
Soweit ich weiß ist so etwas im AVM Binding nicht vorgesehen.