Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2018-02-13 10:24:08

abik
Member
Registered: 2018-02-12
Posts: 2

Raspberry with Touchscreen

Hello,

I have raspberry Pi3 with orginal 7" touchscreen.
Os is Raspbian stretch lite.
My raspberry is ready for kiosk mode.
It works.
Using your "Getting started with REX and Raspberry Pi" instructions
User guide " I created the program with the entire HMI screen.
Everything succeeded and works.
I installed the HMI page as the main screen for my raspberry.
Unfortunately, the first one to login to the HMI page is login.
I tried to write an html page that automatically enters the user and password, but there were problems.
I have the answer "Bad request (404)" or a statement that can not be opened at all.
Here my html file:
"<html>

<head>

    <title>Login Page</title>
    <script>
        function loginForm() {
            document.myform.submit();
            document.myform.action = "http://192.168.0.105:8008/login";
        }
    </script>
</head>

<body onload="loginForm()">
    <form action="http://192.168.0.105:8008/hmi/index.html" name="myform" method="post">
        <input type="text" name="user" value="admin">
        <input type="password" name="password" value="adm1n">
        <input type="submit" value="Login">
    </form>

</body>

</html>"

Any ideas?

Offline

#2 2018-02-13 11:21:10

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Raspberry with Touchscreen

Hi abik,
glad to hear everything works for you. The easiest way is to connect a USB keyboard, enter user name and password and tick "Login permanently" and then login. Afterwards you can reopen the web browser to check that everything works. Using http://192.168.0.105:8008/hmi/index.html as the main page should then take you directly to your HMI.

Does it solve the problem for you? Let me know.

With kind regards,
Jaroslav

Offline

Board footer

Powered by FluxBB