Karotz developper zone

Make your own Karotz application !

Configuration panel

screen.xml

This optional file contains the description of the application configuration panel.

triggers

You can choose which trigger will be available, by default all trigger will be available:

<screen 
	nanoTrigger="true"
	permanentTrigger="true"
	scheduledTrigger="true"
	scheduledDateTrigger="true"
	voiceTrigger="true" >
</screen>
  • nanoTrigger : rfid tag trigger (Manual activation)
  • permanentTrigger : Permanent activation
  • scheduledTrigger : Scheduled activation
  • voiceTrigger : Asr activation
  • scheduledDateTrigger : not implemented now

fields

You can add some fields :

Meteo example :
<screen>
    <text label="city" name="country" default="France" validation="" required="true" errorMessage="" />
    <text label="Country" name="city" default="Paris" validation="" required="true" errorMessage="" />
    <select label="Unit" name="unit" type="one" required="true">
        <option label="°C" key="C" checked="true"/>
        <option label="°F" key="F" checked="false"/>
    </select>
</screen>

text (provide a text field):

  • label : text displayed before the field
  • name : name of the balise. used to get the value
  • default : default value
  • required : if a value is required (true/false)
  • validation : regexp to validate the value (default : empty)
  • errorMessage : message printed if validation failed (default : empty)

select (provide a drop down list) :

  • label : text displayed before the list
  • name : name of the balise. used to get the value
  • required : if a value is required (true/false)
  • type : type of the list (default : “one”) (to be completed)
  • select option :
    • label : text displayed
    • key : key of the element. it is the value returned
    • checked : true/false.
Google Groupes
Abonnement au groupe KarotzDev
E-mail :
Visiter ce groupe