You are not logged in.
Pages: 1
Topic closed
I am attempting to build an automation system for home heating control, so far I have built a successful algorithm and everything seems to be working in rex draw and communicating to the raspberry pi with the unipi expansion board. I cannot however get the HMI to work. So far I have just added a display element to show the value of a temperature sensor to see if I could get it to work before I continued. Under edit element, 192.168.1.117:8008, I can browse the control algorithm and add the connection string of the one wire temperature sensor from rex draw to the display but when I export hmi to an html file (as shown in steps 23-26 of the graphical-hmi-for-pool-automation tutoria) and open it it says failed to connect to 192.168.1.117:8008? What am I doing wrong?
Offline
Hi sjcoan,
thank you for your question about Rex HMI.
Do you use Rex version 2.50.1? The tutorial you followed is written only for Rex version 2.10.8 - since this version there were a lot of changes throughout entire Rex Control System.
Did you installed "lighttpd" server on your target device? If so, that is probably causing your issue, because Rex version 2.50.1 has already integrated web server and those two servers are colliding on the same port 8008.
Try to uninstall "lighttpd" package
sudo apt-get purge lighttpd
Please, let me know your progress.
Regards, Tomas
Offline
Yes I am using version 2.50.1 and suspected that the tutorials were for a different version but were using them as more of a reference. I did not specifically install lighttpd server but will try your suggestion. Thank you, I will update later on my progress
Offline
So I tried uninstalling the lighttpd server and the prompt tells me it was never installed. I have played around with it some more and have even tried just making a blank HMI but when I open the html file in the upper right hand corner I still get an error that it cannot connect to the target device. Thanks in advance for any help you can provide.
Offline
Hi sjcoan,
thank you for all updates.
Do you test the HMI locally on your development PC or do you connect via web-browser to your target device?
Please, can you upload all your project files so we can have a look at it and help you to solve the issue? If you mind sharing it with community send it via email to support(at)rexcontrols.com.
Regards, Tomas
Offline
I have tried both locally and connecting to the target device and cant seem to get any to work, I will email you my project files because I'm not sure how to upload them here.
Offline
Hi Steve,
there was HMI function block missing in your exec file. The HMI function block is now responsible for compile and download process of all HMI possibilities integrated in Rex Control System. Please, see HMI function block documentation - https://www.rexcontrols.com/media/2.50. … df#page=22
The documentation for Rex HMI is far from perfect - if you have any questions, let me know.
I have added the HMI function block to your project. The only thing you should do is to open the project and compile it and download to your target device. The HMI is automatically included to .rex file and downloaded to your device. The HMI is available on yourIP:8008. The local one (after compile process located in "hmi" folder) should also work.
Good luck with your project!
PS: there is an "Uploads" button just bellow the reply window.
Regards, Tomas
Offline
Thanks so much for your help I had added the HMI function block to the exec file at one point but may not have had the parameters right, I will update as soon as I get a chance to upload the project
Steve
Offline
Hello,
I would like to ask you about your advice. I have created HMI, but when I want to connect the signals with the elements from my HMI I got a message, that "Target ws://192.168.0.115 is offline!" - but it's not true, because on the other side I am connected on RPi throught the REXView and it's working. Do you know, where could be a problem? Please check the picture below. There is a picture of this issue.
https://www.rexcontrols.cz/forum/img/me … ffline.jpg
Thank you very much for your support.
Kind regards,
Marek Bukovan
Offline
Hi Marek,
it is necessary to specify the port in target url. By default without any port forwarding it is 8008 - in your case 192.168.0.115:8008.
Hope it will help to solve your issue.
Cheers, Tomas
Offline
Pages: 1
Topic closed