Difference between revisions of "Wiring Editor Testing"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 106: Line 106:


<pre id="wiringPalette" style="display:none">
<pre id="wiringPalette" style="display:none">
[{ "key": "W", "color": "white" },
[
{ "key": "G", "color": "palegreen" },
{"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": "H", "color": "honeydew" },
{"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":""},
{ "key": "AZ", "color": "azure" },
{"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"},
{ "key": "C", "color": "cyan" },
{"name":"Radiators","background":"/images/2/2f/Rad.PNG","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#ffffff"},{"portId":"left1","portColor":"#ffffff"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#fae3d7"}],"rightArray":[{"portId":"right0","portColor":"#ffffff"},{"portId":"right1","portColor":"#ffffff"},{"portId":"right2","portColor":"#ffffff"},{"portId":"right3","portColor":"#ffffff"},{"portId":"right4","portColor":"#6cafdb"}],"topArray":[],"bottomArray":[],"key":"rads","size":"88 65","notes":""},
{ "key": "LC", "color": "lightcyan" },
{"name":"Pump","background":"/images/5/56/Magna3h.jpg","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#ff0000"}],"rightArray":[{"portId":"right4","portColor":"#ff0000"}],"topArray":[],"bottomArray":[],"key":"pump","notes":"Magna 3","size":"55 94"},
{ "key": "A", "color": "aquamarine" }]
{"name":"","background":"/images/thumb/4/49/Qavh.png/437px-Qavh.png","color":"#ffffff","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#f6beb6"},{"portId":"right1","portColor":"#66d6d1"}],"topArray":[],"bottomArray":[],"key":"HP1","notes":"Mitsubishi Electric QAHV","size":"134 202"},
{"name":"","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[{"portId":"bottom0","portColor":"#40aceb"},{"portId":"bottom1","portColor":"#f6beb6"},{"portId":"bottom2","portColor":"#f6beb6"},{"portId":"bottom3","portColor":"#addff9"}],"key":"HIU1","notes":"SLIM HIU","size":"70 109","background":"/images/thumb/6/60/Slim2.jpg/380px-Slim2.jpg"},
{"name":"Taps","leftArray":[{"portId":"left0","portColor":"#f6beb6"}],"rightArray":[{"portId":"right1","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"DHW"},
{"name":"","background":"/images/4/40/Belimohead1.png","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#addff9"}],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#addff9"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ffffff"}],"bottomArray":[{"portId":"bottom0","portColor":"#f6beb6"},{"portId":"bottom1","portColor":"#ffffff"},{"portId":"bottom2","portColor":"#ffffff"},{"portId":"bottom3","portColor":"#ffffff"},{"portId":"bottom4","portColor":"#ffffff"},{"portId":"bottom5","portColor":"#ffffff"}],"key":"valveR","size":"74 40","notes":""},
{"name":"","background":"/images/a/a8/Hmfc.png","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#addff9"}],"rightArray":[{"portId":"right0","portColor":"#addff9"}],"topArray":[],"bottomArray":[],"key":"HM2","size":"43 57","notes":""},
{"name":"Fan Coil\nUnit","leftArray":[{"portId":"left0","portColor":"#40aceb"},{"portId":"left1","portColor":"#ffffff"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"}],"rightArray":[{"portId":"right0","portColor":"#addff9"},{"portId":"right1","portColor":"#ffffff"},{"portId":"right2","portColor":"#ffffff"},{"portId":"right3","portColor":"#ffffff"},{"portId":"right4","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"fanCoil1","size":"56.5546875 56"},
{"name":"","background":"/images/thumb/6/68/Pressureset1.png/485px-Pressureset1.png","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#ffffff"},{"portId":"left1","portColor":"#ffffff"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"},{"portId":"right1","portColor":"#40aceb"},{"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":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"pressure","size":"111 137","notes":""},
{"name":"Mains","color":"#ffffff","leftArray":[{"portId":"left0","portColor":"#ffffff"}],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[{"portId":"bottom0","portColor":"#40aceb"}],"key":"CWS2"},
{"name":"","color":"#ffffff","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"}],"bottomArray":[],"key":"overflow","size":"41 40","notes":""},
{"name":"Side\nStream\nFilter","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#addff9"},{"portId":"top1","portColor":"#addff9"}],"bottomArray":[{"portId":"bottom0","portColor":"#ffffff"}],"key":"sideStream","size":"54 83"},
{"name":"Strainer","leftArray":[{"portId":"left0","portColor":"#addff9"}],"rightArray":[{"portId":"right0","portColor":"#addff9"}],"topArray":[],"bottomArray":[],"key":"strainer1","size":"50 40"}
]
</pre>
</pre>



Revision as of 00:22, 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