Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installation du Calaos Serveur sur VMWare
#16
Salut Arnaud

Voici mes 3 fichiers io,rules et local_config
Dans le local config j'ai mis eth1pour ma carte qui est attribuée comme cela dans ma vm et je suis réglé en IP Fixe.
local_config.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:config xmlns:calaos="http://www.calaos.fr">
        <calaos:option name="update_url" value="10.0.0.1/firmware/fwupdate.xml"/>
        <calaos:option name="fw_target" value="calaos_tss"/>
        <calaos:option name="fw_version" value="1.2"/>
        <calaos:option name="calaos_user" value="Vic"/>
        <calaos:option name="calaos_password" value="123456"/>
        <calaos:option name="show_cursor" value="false"/>
        <calaos:option name="use_ntp" value="false"/>
        <calaos:option name="ntp_server" value="europe.pool.ntp.org"/>
        <calaos:option name="evas_engine" value="software"/>
        <calaos:option name="touchscreen_driver" value="eGALAX"/>
        <calaos:option name="device_type" value="calaos_server"/>
        <calaos:option name="background" value="/usr/share/calaos/themes/background/Liquid.jpg"/>
        <calaos:option name="dpms_enable" value="false"/>
        <calaos:option name="dpms_standby" value="1270"/>
        <calaos:option name="dpms_standby_min" value="5"/>
        <calaos:option name="dpms_standby_max" value="1800"/>
        <calaos:option name="dpms_block" value="false"/>
        <calaos:option name="eth1_dhcp" value="false"/>
        <calaos:option name="eth1_address" value="192.168.1.100"/>
        <calaos:option name="eth1_broadcast" value="192.168.0.255"/>
        <calaos:option name="eth1_netmask" value="255.255.255.0"/>
        <calaos:option name="eth1_gateway" value="192.168.1.1"/>
        <calaos:option name="dns_address" value="192.168.1.1"/>
</calaos:config>

io.xml
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<calaos:ioconfig xmlns:calaos="http://www.calaos.fr">
    <calaos:home>
        <calaos:room name="Bureau" type="bureau" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_0" name="Bouton Poussoir Bureau" port="502" type="WIDigitalBP" var="0" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_0" name="Lumière Bureau" port="502" type="WODigital" var="0" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Buanderie" type="misc" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_1" name="Bouton Poussoir Buanderie Côté Intérieur" port="502" type="WIDigitalBP" var="23" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_2" name="Bouton Poussoir Buanderie Côté Extérieur" port="502" type="WIDigitalBP" var="24" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="10.0.0.123" id="output_1" name="Lumière Buanderie" port="502" type="WODigital" var="12" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Salon" type="salon" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_3" name="Bouton Poussoir Salon Côté Couloir" port="502" type="WIDigitalBP" var="18" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_4" name="Bouton Poussoir Salon Côté Ch. Emmie" port="502" type="WIDigitalBP" var="16" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_5" name="Bouton Poussoir Salon Côté Ch. Parents" port="502" type="WIDigitalBP" var="15" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_6" name="Bouton Poussoir Salon Côté Salle à Manger" port="502" type="WIDigitalBP" var="14" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_2" name="Spots LED 4W Charpente Salon" port="502" type="WODigital" var="11" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Cuisine" type="cuisine" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_7" name="Bouton Poussoir Cuisine Côté Salle à Manger" port="502" type="WIDigitalBP" var="13" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_8" name="Bouton Poussoir Cuisine Côté Salon" port="502" type="WIDigitalBP" var="21" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_3" name="Spots LED 12W Plafond Cuisine" port="502" type="WODigital" var="8" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Salle à Manger" type="sam" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_9" name="Bouton Poussoir Salle à Manger" port="502" type="WIDigitalBP" var="12" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_4" name="Spots LED 12W Salle à Manger" port="502" type="WODigital" var="9" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="WC" type="sdb" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_10" name="Bouton Poussoir WC" port="502" type="WIDigitalBP" var="3" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_5" name="Spot LED 12W WC" port="502" type="WODigital" var="2" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Salle de Bain" type="sdb" hits="0">
            <calaos:input gui_type="switch3" host="192.168.1.50" id="input_11" name="Bouton Poussoir Salle de Bain Côté Entrée" port="502" type="WIDigitalTriple" var="7" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_13" name="Bouton Poussoir Salle de Bain Côté Lavabo D." port="502" type="WIDigitalBP" var="5" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_12" name="Bouton Poussoir Salle de Bain Côté Lavabo G." port="502" type="WIDigitalBP" var="4" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_6" name="Lumière Salle de Bain Baignoire" port="502" type="WODigital" var="3" visible="true" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_7" name="Lumière Salle de Bain Applique Lavabos" port="502" type="WODigital" var="4" visible="true" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_8" name="Lumière Salle de Bain Plafond" port="502" type="WODigital" var="6" visible="true" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_9" name="Lumière Salle de Bain Douche Italienne" port="502" type="WODigital" var="5" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Entrée" type="hall" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_15" name="Bouton Poussoir Entrée Côté Extérieur" port="502" type="WIDigitalBP" var="1" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_14" name="Bouton Poussoir Entrée Côté Salon" port="502" type="WIDigitalBP" var="2" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_10" name="Lumière Entrée Plafond" port="502" type="WODigital" var="1" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Chambre 1" type="chambre" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_16" name="Bouton Poussoir Chambre 1" port="502" type="WIDigitalBP" var="26" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_11" name="Lumière Chambre 1 Plafond" port="502" type="WODigital" var="16" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Chambre Parents" type="chambre" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_19" name="Bouton Poussoir Chambre Parents Tête Vic" port="502" type="WIDigitalBP" var="10" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_18" name="Bouton Poussoir Chambre Parents Entrée" port="502" type="WIDigitalBP" var="8" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_20" name="Bouton Poussoir Chambre Parents Tête Puce" port="502" type="WIDigitalBP" var="11" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_13" name="Lumière Chambre Parents Plafond" port="502" type="WODigital" var="18" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Chambre Emmie" type="chambre" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_17" name="Bouton Poussoir Chambre Emmie" port="502" type="WIDigitalBP" var="25" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_12" name="Lumière Chambre Emmie Plafond" port="502" type="WODigital" var="17" visible="true" wago_841="false" />
        </calaos:room>
        <calaos:room name="Couloir" type="sam" hits="0">
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_21" name="Bouton Poussoir Couloir Côté Entrée" port="502" type="WIDigitalBP" var="19" visible="false" wago_841="false" />
            <calaos:input gui_type="switch" host="192.168.1.50" id="input_22" name="Bouton Poussoir Couloir Côté Cuisine" port="502" type="WIDigitalBP" var="20" visible="false" wago_841="false" />
            <calaos:output gtype="light" gui_type="light" host="192.168.1.50" id="output_14" name="Spots LED 12W Couloir" port="502" type="WODigital" var="10" visible="true" wago_841="false" />
        </calaos:room>
    </calaos:home>
</calaos:ioconfig>
rules.xml
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<calaos:rules xmlns:calaos="http://www.calaos.fr">
    <calaos:rule name="Eclairage" specialType="" type="Bureau">
        <calaos:condition type="standard">
            <calaos:input id="input_0" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_0" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Buanderie">
        <calaos:condition type="standard">
            <calaos:input id="input_2" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_1" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_1" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Salon">
        <calaos:condition type="standard">
            <calaos:input id="input_4" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_3" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_5" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_6" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_2" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Cuisine">
        <calaos:condition type="standard">
            <calaos:input id="input_8" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_7" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_3" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Couloir">
        <calaos:condition type="standard">
            <calaos:input id="input_21" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_22" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_14" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Chambre Emmie">
        <calaos:condition type="standard">
            <calaos:input id="input_17" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_12" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Chambre Parents">
        <calaos:condition type="standard">
            <calaos:input id="input_20" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_18" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_19" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_13" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Chambre 1">
        <calaos:condition type="standard">
            <calaos:input id="input_16" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_11" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Entrée">
        <calaos:condition type="standard">
            <calaos:input id="input_15" oper="==" val="true" />
        </calaos:condition>
        <calaos:condition type="standard">
            <calaos:input id="input_14" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_10" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage Plafond" specialType="" type="Salle de Bain">
        <calaos:condition type="standard">
            <calaos:input id="input_11" oper="==" val="1" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_8" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="WC">
        <calaos:condition type="standard">
            <calaos:input id="input_10" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_5" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage" specialType="" type="Salle à Manger">
        <calaos:condition type="standard">
            <calaos:input id="input_9" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_4" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage Baignoire" specialType="" type="Salle de Bain">
        <calaos:condition type="standard">
            <calaos:input id="input_12" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_6" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage Lavabos" specialType="" type="Salle de Bain">
        <calaos:condition type="standard">
            <calaos:input id="input_13" oper="==" val="true" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_7" val="toggle" />
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Eclairage Douche à l&apos;Italienne" specialType="" type="Salle de Bain">
        <calaos:condition type="standard">
            <calaos:input id="input_11" oper="==" val="2" />
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_9" val="toggle" />
        </calaos:action>
    </calaos:rule>
</calaos:rules>

Merci
Victorien Bouvier - Vic
Calaos-server sur Raspberry Pi
Wago controller 750-841
Calaos-os V2
----------------------
[Image: logo_calaos.png]
Reply


Messages In This Thread
RE: Installation du Calaos Serveur sur VMWare - by ActionProd - 01-25-2014, 10:36 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)