Difference between revisions of "Wiring Editor Testing"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 107: Line 107:
<pre id="wiringPalette" style="display:none">
<pre id="wiringPalette" style="display:none">
[
[
{"key":"CYL","name":"Buffer Store","background":"/images/c/cd/Buffer1.jpg","leftArray":[{"portColor":"#ffffff","portId":"left0"},{"portColor":"#ffffff","portId":"left1"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"},{"portId":"left5","portColor":"#ffffff"},{"portId":"left6","portColor":"#ffffff"},{"portId":"left7","portColor":"#ffffff"},{"portId":"left8","portColor":"#ffffff"},{"portId":"left9","portColor":"#ffffff"},{"portId":"left10","portColor":"#ffffff"},{"portId":"left11","portColor":"#ffffff"},{"portId":"left12","portColor":"#ffffff"},{"portId":"left13","portColor":"#ffffff"},{"portId":"left14","portColor":"#ffffff"},{"portId":"left15","portColor":"#ffffff"},{"portId":"left16","portColor":"#ffffff"},{"portId":"left17","portColor":"#ffffff"},{"portId":"left18","portColor":"#ffffff"},{"portId":"left19","portColor":"#2196f3"}],"topArray":[{"portColor":"#ffffff","portId":"top0"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ff0000"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"},{"portId":"top8","portColor":"#ffffff"},{"portId":"top9","portColor":"#ffffff"},{"portId":"top10","portColor":"#ffffff"}],"bottomArray":[],"rightArray":[{"portColor":"#ffffff","portId":"right0"},{"portColor":"#ffffff","portId":"right1"},{"portId":"right2","portColor":"#ffffff"},{"portId":"right3","portColor":"#ffffff"},{"portId":"right4","portColor":"#ffffff"},{"portId":"right5","portColor":"#ffffff"},{"portId":"right6","portColor":"#ffffff"},{"portId":"right7","portColor":"#ffffff"},{"portId":"right8","portColor":"#ffffff"},{"portId":"right9","portColor":"#ffffff"},{"portId":"right10","portColor":"#ffffff"},{"portId":"right11","portColor":"#ffffff"},{"portId":"right12","portColor":"#ffffff"},{"portId":"right13","portColor":"#ffffff"},{"portId":"right14","portColor":"#ffffff"},{"portId":"right15","portColor":"#ffffff"},{"portId":"right16","portColor":"#ffffff"},{"portId":"right17","portColor":"#ffffff"},{"portId":"right18","portColor":"#ffffff"},{"portId":"right19","portColor":"#ffffff"}],"notes":"500 litre","size":"110 224"},
{"key":"CYL","name":"Buffer Store","textColor":"#000000","background":"/images/c/cd/Buffer1.jpg","leftArray":[{"portColor":"#ffffff","portId":"left0"},{"portColor":"#ffffff","portId":"left1"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"},{"portId":"left5","portColor":"#ffffff"},{"portId":"left6","portColor":"#ffffff"},{"portId":"left7","portColor":"#ffffff"},{"portId":"left8","portColor":"#ffffff"},{"portId":"left9","portColor":"#ffffff"},{"portId":"left10","portColor":"#ffffff"},{"portId":"left11","portColor":"#ffffff"},{"portId":"left12","portColor":"#ffffff"},{"portId":"left13","portColor":"#ffffff"},{"portId":"left14","portColor":"#ffffff"},{"portId":"left15","portColor":"#ffffff"},{"portId":"left16","portColor":"#ffffff"},{"portId":"left17","portColor":"#ffffff"},{"portId":"left18","portColor":"#ffffff"},{"portId":"left19","portColor":"#2196f3"}],"topArray":[{"portColor":"#ffffff","portId":"top0"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ff0000"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"},{"portId":"top8","portColor":"#ffffff"},{"portId":"top9","portColor":"#ffffff"},{"portId":"top10","portColor":"#ffffff"}],"bottomArray":[],"rightArray":[{"portColor":"#ffffff","portId":"right0"},{"portColor":"#ffffff","portId":"right1"},{"portId":"right2","portColor":"#ffffff"},{"portId":"right3","portColor":"#ffffff"},{"portId":"right4","portColor":"#ffffff"},{"portId":"right5","portColor":"#ffffff"},{"portId":"right6","portColor":"#ffffff"},{"portId":"right7","portColor":"#ffffff"},{"portId":"right8","portColor":"#ffffff"},{"portId":"right9","portColor":"#ffffff"},{"portId":"right10","portColor":"#ffffff"},{"portId":"right11","portColor":"#ffffff"},{"portId":"right12","portColor":"#ffffff"},{"portId":"right13","portColor":"#ffffff"},{"portId":"right14","portColor":"#ffffff"},{"portId":"right15","portColor":"#ffffff"},{"portId":"right16","portColor":"#ffffff"},{"portId":"right17","portColor":"#ffffff"},{"portId":"right18","portColor":"#ffffff"},{"portId":"right19","portColor":"#ffffff"}],"notes":"500 litre","size":"110 224"},
{"name":"","background":"/images/b/bd/Belimohead2.png","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#ffffff"},{"portId":"left1","portColor":"#ffffff"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"},{"portId":"left5","portColor":"#f6beb6"}],"rightArray":[{"portId":"right0","portColor":"#ffffff"},{"portId":"right1","portColor":"#ffffff"},{"portId":"right2","portColor":"#ffffff"},{"portId":"right3","portColor":"#ffffff"},{"portId":"right4","portColor":"#ffffff"},{"portId":"right5","portColor":"#f6beb6"}],"topArray":[],"bottomArray":[{"portId":"bottom0","portColor":"#addff9"}],"key":"valve","size":"40 81","notes":""},
{"name":"","background":"/images/b/bd/Belimohead2.png","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#ffffff"},{"portId":"left1","portColor":"#ffffff"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"},{"portId":"left5","portColor":"#f6beb6"}],"rightArray":[{"portId":"right0","portColor":"#ffffff"},{"portId":"right1","portColor":"#ffffff"},{"portId":"right2","portColor":"#ffffff"},{"portId":"right3","portColor":"#ffffff"},{"portId":"right4","portColor":"#ffffff"},{"portId":"right5","portColor":"#f6beb6"}],"topArray":[],"bottomArray":[{"portId":"bottom0","portColor":"#addff9"}],"key":"valve","size":"40 81","notes":""},
{"name":"Expansion\nVessel","background":"/images/9/9b/Flexcon.jpg","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"},{"portId":"top8","portColor":"#ffffff"}],"bottomArray":[{"portId":"bottom0","portColor":"#6cafdb"}],"key":"expVessel1","size":"82 142"},
{"name":"Expansion\nVessel","background":"/images/9/9b/Flexcon.jpg","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"},{"portId":"top8","portColor":"#ffffff"}],"bottomArray":[{"portId":"bottom0","portColor":"#6cafdb"}],"key":"expVessel1","size":"82 142"},

Revision as of 22:47, 18 June 2022

Work In progress

  • Labels on wires. Will be draggable for positioning and can be used primarily to number (reference) individual wires. In controls wiring these would be the id tags on wires.
    • Draggable to any point along wire
    • Include a wire colour indicator
    • Is it possible to optionally have two labels, with one at each end?
  • Menu for editing wire colour, width, arrows and type (solid/dashed/dotted). Can you have a green/yellow (earth) dashed line?
  • Port colours updated to a fuller list to match scale.
  • Ports currently have a side, an order, and a colour (color). Wiki page to include JSON that describes ports in more detail, adding attributes. These can include a port type (portType) as well as compatible port types (compatibleWith) used to check wires are wired to compatible ports (so you can't wire a 24V to a GND without raising a warning).
  • Add a sidebar palette with standard devices.
    • Slider categories for electrical, mechanical etc.
    • Should be able to load custom palettes from wiki page JSON
Concons1.png


Testing 2


Images

Controller Layout
Controller Layout

Rad.svg