Reconecting WiFi netportal

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    Reconecting WiFi netportal

    Hello,

    How can the Loxone miniserver open the URL: to activated my wifi?


    I have WiFi with a webportal login. On the webpage i have to enter a code and then i have conection to the internet. The only problem is that the WiFi auto logoff after a couple of hours. After looking at the webpage i found
    <form action="https://aplogin.com/" method="post">
    <input type="hidden" name="url" value="">
    <input type="hidden" name="ip" value="192.168.10.88">
    When i open the url in a browser i have the WiFI activated again.

    To do this with Loxone i have created a virtual output: Thats activated by a switch for testing (If it is working i use the Ping block)

    WIth:



    And a viirtual command with:

    Command ON: /?code=JPABCDEF&url=https://nu.nl&ip=192.168.10.88
    And Post.

    I also tried different options with and without seperation charactar. Entering the whole URL in The virtual output.

    How can i get this to work?






  • Tico
    Lox Guru
    • 31.08.2016
    • 1035

    #2
    One option to try in the 'Command for ON' is to URL encode the address -

    Enter text to URL encode or decode. Converts the text into a percent encoded string.


    That would then become -

    %2F%3Fcode%3DJPABCDEF%26url%3Dhttps%3A%2F%2Fnu.nl% 26ip%3D192.168.10.88

    Another (long-shot) option might be to use a Virtual Input and set the URL to the address you've provided. You won't be parsing the result with any command recognition, but the act of polling the address might be enough.

    Another consideration is that this simply won't work with a Miniserver Gen1. The Miniserver doesn't work with https because it can't decrypt (some very limited https sites do work, but they aren't encrypted while still using the https prefix). An option here is to use a Loxberry and the plugin https2http.

    Ich spreche kein Deutsch. Gib Google Translate die Schuld, wenn ich unverständlich bin.

    Kommentar

    Lädt...