I would just like to have a top strip on every page I designed.
I created a web panel and set it to be an Header panel. I then exported the Web panels and I noticed that on the browser (Chrome / IE and Edge) I got no top strip.
Here is a screenshot of mervis IDE.0_1527715429157_header.png
This link describes API, how to Mervis RT access the Mervis DB but you can create the same API server implementing just the saveData function (eg. in PHP), point Mervis RT to this server and do whatever you wish to do with the data.
Thanks, @tomas_hora. I've just gone ahead and written my own in ST, based off the custom serial protocol example. I'm not sure if that sample actually works for serial communications, but for TCP I had to split Case 3 into 2 cases:
if io.getportstatus(handle) = 0 then
state := 4;
received := io.readport(handle, adr dataRecv, 100);
if received > 0 THEN
output_string := bytes_to_string(adr dataRecv, received);
output_length := len(output_string);
command_out := command_in;
last_output_time := getutctime();
Not doing this seemed to result in the read buffer being reset before the bytes could be read.
@TomasKnot Hi Thomas! Thanks for the extensive reply! Really cool! I didn't think of the modbusserver solution, it sounds way more compatible and standard than the way through the HMI api. But i'll wait for the BacNET/IP interface, that sounds even better. I'll finish off the Python plugin for Domoticz anyway, it works great already with booleans and is even bidirectional :), next step is to add analog values... Thank you!
Is there any chance you have changed the SSCP connection username and/or password? Aside from the message "capabilities parsing failed" you should see a message containing "wrong username or password?". If so then you can fix this by replacing the image with the stock one.
If this is not the case, then it would be helpful if you could provide us with some more information, specifically the IDE version, image name and version, and the response for the command "sudo cat /proc/cpuinfo"
This will be easier in the next HMI once the current Mervis release is finalised.
For now you can use an analog setter with a single (positive) arrow instead, and use a modulo 2 function block behind it to transform it into a boolean state. I recognise this isn't ideal and is slightly unintuitive, which is why we changed it in the next release of Mervis.
In terms of the button resetting itself you will need to use a timer of some sort to change the state back, as there is no obvious length of time that the button should stay "pressed".