Page 5 of 11

Re: My version of the HMI builder

Posted: Thu Mar 02, 2017 3:18 pm
by bbrally
Text asserting outputs - done. Everything should be that easy.

Re: My version of the HMI builder

Posted: Thu Mar 02, 2017 7:32 pm
by oakbarn
Thanks. I am documenting how I am doing things. May take a while.

Re: My version of the HMI builder

Posted: Fri Mar 03, 2017 4:14 pm
by oakbarn
Here is link to my latest canvas. It has Oblong Green Widgets when an out is ASSERTED. Also have color coded Temp Gauges that are larger. :D

https://www.dropbox.com/s/z3lpy2d3ijcnu ... I.png?dl=0

Re: My version of the HMI builder

Posted: Fri Mar 03, 2017 8:21 pm
by oakbarn
Be nice to have a corner widget
corner.png
corner.png (1.58 KiB) Viewed 182851 times

Re: My version of the HMI builder

Posted: Fri Mar 03, 2017 8:50 pm
by bbrally
I originally had one, but "stretching" can only happen in one axis and even then it was very expensive.

That made these more useful and efficient:

corners.png
corners.png (1.68 KiB) Viewed 182849 times

Re: My version of the HMI builder

Posted: Sat Mar 04, 2017 5:05 am
by oakbarn
One that had no stretch would be fine. I find it hard to make perfect corners with the two widgets you have. They work fine, it is just not visually exact. Similar to your 45 degree widget.

Re: My version of the HMI builder

Posted: Sat Mar 04, 2017 6:40 am
by bbrally
The plumbing can be moved one pixel at a time with the cursor keys. You may also have to move an object up/down a layer to get the ends to sit correctly.

It's very easy to have them lined up perfectly. In my example everything looks correct with the liquid turned off. I spent almost no time aligning elements.

Cursor keys are your friends.

Re: My version of the HMI builder

Posted: Sun Mar 05, 2017 7:47 pm
by bbrally
clearwaterbrewer wrote:
Mon Feb 27, 2017 3:42 pm
what would it take for this to run on a private network without being connected to the internet and needing to reach altervista.org, maxcdn.bootstrapcdn.com, code.jquery.com, or cdnjs.cloudflare.com?
I've updated the beta help under a "Misc" tab to give the steps for this in Firefox. Once I figure out Chrome, I'll add it. If someone else understands Chrome enough to make this work, let me know so I can share.

http://bbrally.altervista.org/guibeta/index.html

Re: My version of the HMI builder

Posted: Mon Mar 06, 2017 5:54 am
by clearwaterbrewer
oakbarn wrote:
Fri Mar 03, 2017 4:14 pm
Here is link to my latest canvas. It has Oblong Green Widgets when an out is ASSERTED. Also have color coded Temp Gauges that are larger. :D
can you give one example of how you accomplish your customization? For example, the oblong green widget (the hmi for dummies version, please)

Re: My version of the HMI builder

Posted: Mon Mar 06, 2017 5:48 pm
by bbrally
Most of the formatting properties can be figured out just by experimenting, but "border" and "border radius" are more confusing.

Border defines the thickness of the border line, the style of the line (solid, dashed, etc.), and the color. The order is not important, just a space between them.

The thickness should be whole numbers followed by px ("1px" or "4px").
Style can be "solid", "dashed", "double", etc. https://www.w3schools.com/cssref/pr_border-style.asp
Color is as the other color properties.

The border radius specifies what the corners will look like. The most common units are % and px. A very simple entry would be "0" meaning a radius in every corner of 0 (0 is the only value that does not need a unit). "5px" would be a 5 pixel radius in every corner. "50%" would be a radius of half the length of each side for each corner. (A circle for a square or an oval for a rectangle).

All of the above can also be given values for each individual corner or side.

“value” gives all four sides the same.
“value1 value2” gives top and bottom sides value1, and left and right sides value2.
“value1 value2 value3 value4” gives the top value1, right side value2, bottom value3, left side value3. (Values start on the upper side and go clockwise)

“value” gives all four corners the same.
“value1 value2” gives top-left and bottom-right corners value1, and top-right and bottom-left sides value2.
“value1 value2 value3 value4” gives the top-left corner value1, top-right corner value2, bottom-right corner value3, bottom-left corner value3. (Values start in the upper left and go clockwise)

Border radius can get more complicated as each corner can have 2 values representing the line length of the left and right side of that corner. This is represented by a "/" between lengths. The values before the slash represent the horizontal radii of that corner, the value after the slash represent the vertical radii of that corner.
“50% 50% 0 0 / 100% 100% 0 0” would produce a bullet shape.

There are many tutorials/example of this on the web, just search “border-radius css”

This tool may help for border radius: https://developer.mozilla.org/en-US/doc ... _generator

A simple oblong shape would be like this:
shape.png
shape.png (20.41 KiB) Viewed 182806 times