Commit c46dbb08 authored by Eric Tobias's avatar Eric Tobias

Merge branch 'dev' of git.list.lu:nui/TULIP-Scenario into dev

parents a0bc355b 5adabaf7
Scenarios/assets/wheelgear5.png

61.1 KB | W: | H:

Scenarios/assets/wheelgear5.png

60.3 KB | W: | H:

Scenarios/assets/wheelgear5.png
Scenarios/assets/wheelgear5.png
Scenarios/assets/wheelgear5.png
Scenarios/assets/wheelgear5.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background0</name>
<image>assets/floorplan1.png</image>
<sound/>
<triggerCondition>Ampere &lt; Breaker</triggerCondition>
<drawPriority>0</drawPriority>
</scene>
<scene>
<name>Background1</name>
<image>assets/floorplan2.png</image>
<sound/>
<triggerCondition>Ampere &gt;= Breaker</triggerCondition>
<drawPriority>1</drawPriority>
</scene>
</scenes>
<objects>
<object>
<type>BaseWidget</type>
<name>Lights</name>
<handles>
<handle>1</handle>
</handles>
<variable>
<name>Lights</name>
<value>300</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>1</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>172</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-90</x><y>63</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Dryer</name>
<handles>
<handle>2</handle>
</handles>
<variable>
<name>Dryer</name>
<value>2200</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>2</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-101</x><y>46</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Dishwasher</name>
<handles>
<handle>4</handle>
</handles>
<variable>
<name>Dishwasher</name>
<value>100</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-91</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>220</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>false</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-107</x><y>58</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Laptop</name>
<handles>
<handle>4</handle>
</handles>
<variable>
<name>Laptop</name>
<value>100</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-91</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>220</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>false</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-107</x><y>58</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Smartphone</name>
<handles>
<handle>5</handle>
</handles>
<variable>
<name>Smartphone</name>
<value>5</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>5</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-95</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Breaker</name>
<handles>
<handle>6</handle>
</handles>
<variable>
<name>Breaker</name>
<value>16</value>
<unit>A</unit>
</variable>
<coronas>
<corona>
<handle>6</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-109</x><y>42</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Ampere</name>
<handles>
<handle>7</handle>
</handles>
<variable>
<name>Ampere</name>
<value>15</value>
<unit>A</unit>
</variable>
<coronas>
<corona>
<handle>7</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-108</x><y>39</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Load</name>
<handles>
<handle>8</handle>
</handles>
<variable>
<name>Load</name>
<value>0</value>
<unit>%</unit>
</variable>
<coronas>
<corona>
<handle>8</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-105</x><y>68</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
</objects>
<system>
<outputs>
<output>
<name>Ampere</name>
<unit>A</unit>
</output>
<output>
<name>CircuitLoad</name>
<unit>%</unit>
</output>
</outputs>
<equations>
<equation>
<name>Ampere</name>
<invoke>(Lights + Dryer + Dishwasher + Laptop + Smartphone) / 230</invoke>
<parameters>
<parameter>
<name>Lights</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dryer</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dishwasher</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Laptop</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Smartphone</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Breaker</name>
<unit>A</unit>
</parameter>
<parameter>
<name>Load</name>
<unit>%</unit>
</parameter>
</parameters>
<results>
<result>
<name>Ampere</name>
</result>
</results>
</equation>
<equation>
<name>CircuitLoad</name>
<invoke>(Ampere / Breaker) * 100</invoke>
<parameters>
<parameter>
<name>Lights</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dryer</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dishwasher</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Laptop</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Smartphone</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Breaker</name>
<unit>A</unit>
</parameter>
<parameter>
<name>Load</name>
<unit>%</unit>
</parameter>
</parameters>
<results>
<result>
<name>CircuitLoad</name>
</result>
</results>
</equation>
</equations>
</system>
</scenario>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background0</name>
<image>assets/floorplan1.png</image>
<sound/>
<triggerCondition>Ampere &lt; Breaker</triggerCondition>
<drawPriority>0</drawPriority>
</scene>
<scene>
<name>Background1</name>
<image>assets/floorplan2.png</image>
<sound/>
<triggerCondition>Ampere &gt;= Breaker</triggerCondition>
<drawPriority>1</drawPriority>
</scene>
</scenes>
<objects>
<object>
<type>ValueWidget</type>
<name>Lights</name>
<handles>
<handle>1</handle>
</handles>
<variable>
<name>Lights</name>
<value>300</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>1</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>172</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-90</x><y>63</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>ValueWidget</type>
<name>Dryer</name>
<handles>
<handle>2</handle>
</handles>
<variable>
<name>Dryer</name>
<value>2200</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>2</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-101</x><y>46</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>ValueWidget</type>
<name>Dishwasher</name>
<handles>
<handle>4</handle>
</handles>
<variable>
<name>Dishwasher</name>
<value>100</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-91</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>220</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>false</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-107</x><y>58</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>ValueWidget</type>
<name>Laptop</name>
<handles>
<handle>4</handle>
</handles>
<variable>
<name>Laptop</name>
<value>100</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-91</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>220</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>false</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-107</x><y>58</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>ValueWidget</type>
<name>Smartphone</name>
<handles>
<handle>5</handle>
</handles>
<variable>
<name>Smartphone</name>
<value>5</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>5</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-95</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>ValueWidget</type>
<name>Breaker</name>
<handles>
<handle>6</handle>
</handles>
<variable>
<name>Breaker</name>
<value>16</value>
<unit>A</unit>
</variable>
<coronas>
<corona>
<handle>6</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-109</x><y>42</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>ValueWidget</type>
<name>Ampere</name>
<handles>
<handle>7</handle>
</handles>
<variable>
<name>Ampere</name>
<value>15</value>
<unit>A</unit>
</variable>
<coronas>
<corona>
<handle>7</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-108</x><y>39</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>