I'm trying to use Knxweb as separate from linknx visualization, that could be used also on other systems beside Konex.... But despite of sending objects.xml content for design, no variables appear on various devices that can be added in Design mode.
What am I doing wrong ? Can I send objects.xml as text over socket ?
Any special character needed for proper data termination ?
Linknx support communication using a TCP connection or UNIX domain socket. The configuration is done in the "services" section of the configuration file. You can read the manual and examples in the wiki (http://linknx.wiki.sourceforge.net/Interacting+with+Linknx).
Regarts,
Ronny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A good tool to debug that kind of issue is to use Firefox, install the firebug add-on and use it to see error messages and see the details of the communication between browser and webserver.
Knxweb is not communicating directly with linknx. Knxweb calls a php script ( linknx.php ) and that php script connects to linknx (by default using TCP connection on port 1028).
If you use linknx.php without modification and try to replace linknx itself, you need to add an EOT ascii character (ascii code 0x04) on a new line at the end of the message.
Regards,
Jean-François
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've also read "interacting with linknx" and would kindly ask if you can provide two short examples of correct reponses to two possible queries for multiple objects :
I think it wouldn't be bad that this example response are added to that document too (it's not so obvious how to generalize response from 1 to multiple/all objects - example response for single object query is present, those two could be added).
Thanks in advance,
regards,
Rob.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here's an example of response to multiple object query:
<read><objects><object id="heating_mode_kitchen"/><object id="setpoint_kitchen"/><object id="temp_kitchen"/></objects></read>
Hi,
I'm trying to use Knxweb as separate from linknx visualization, that could be used also on other systems beside Konex.... But despite of sending objects.xml content for design, no variables appear on various devices that can be added in Design mode.
What am I doing wrong ? Can I send objects.xml as text over socket ?
Any special character needed for proper data termination ?
Thanks in advance,
- when I receive :
+++++++Data Dumper ref ++++++++
$VAR1 = {
'read' => {
'config' => {
'objects' => {}
}
}
};
- I reply with content of this file :
<read status="success">
<config>
<objects>
<object id="absence" gad="1/1/60" init="request">Absence</object>
<object id="alarm_active" init="on">Alarme activée</object>
<object id="intrusion" init="off">Intrusion détectée</object>
<object id="intrusion_delay" init="off">Délai de désactivation d'alarme</object>
<object id="chaudiere" gad="1/1/35">Chaudière</object>
<object id="chauffage_auto" init="persist">Mode chauffage automatique</object>
<object id="chauffage_bureau" gad="1/1/110" type="heat-mode">Mode chauffage bureau</object>
<object id="chauffage_ch1" gad="1/1/80" type="heat-mode">Mode chauffage chambre 1</object>
<object id="chauffage_ch2" gad="1/1/90" type="heat-mode">Mode chauffage chambre 2</object>
<object id="chauffage_cuisine" gad="1/1/100" type="heat-mode">Mode chauffage cuisine</object>
<object id="chauffage_salon" gad="1/1/70" type="heat-mode">Mode chauffage salon</object>
<object id="chauffage_sdb" gad="1/1/120">Mode chauffage SDB</object>
<object id="circulateur_ecs" gad="1/1/21">Eau chaude sanitaire</object>
<object id="dim_value_ch2" gad="1/1/47" type="EIS6">Valeur dimmer chambre 2</object>
<object id="dim_value_salon" gad="1/1/42" type="EIS6">Valeur dimmer salon</object>
<object id="dim_salon" gad="1/1/41" type="EIS2">Commande dimmer salon</object>
<object id="dim_ch2" gad="1/1/46" type="EIS2">Commande dimmer ch2</object>
<object id="ecl_bureau" gad="1/1/7">Eclairage bureau</object>
<object id="ecl_couloir" gad="1/1/5">Eclairage couloir</object>
<object id="ecl_escalier" gad="1/1/6">Eclairage Escalier
<listener gad="1/1/206"/>
</object>
<object id="status_ecl_escalier" gad="1/1/206">Eclairage Escalier (status feedback)</object>
<object id="ecl_cuisine" gad="1/1/11">Eclairage cuisine</object>
<object id="ecl_salon" gad="1/1/40">Eclairage salon</object>
<object id="ecl_sam" gad="1/1/4">Eclairage salle Ă manger</object>
<object id="ecl_vestiaire" gad="1/1/3">Eclairage vestiaire</object>
<object id="ecl_wc0" gad="1/1/12">Eclairage WC rez</object>
<object id="ecl_wc1" gad="1/1/10">Eclairage WC 1er</object>
<object id="ecl_ch1" gad="1/1/8">Eclairage Chambre 1er</object>
<object id="ecl_ch2" gad="1/1/45">Eclairage Chambre 2er</object>
<object id="reveil_actif" init="persist">Réveil activé</object>
<object id="setpoint_bureau" gad="1/1/111" type="EIS5">Consigne T° bureau</object>
<object id="setpoint_ch1" gad="1/1/81" type="EIS5">Consigne T° chambre 1</object>
<object id="setpoint_ch2" gad="1/1/91" type="EIS5">Consigne T° chambre 2</object>
<object id="setpoint_cuisine" gad="1/1/101" type="EIS5">Consigne T° cuisine</object>
<object id="setpoint_salon" gad="1/1/71" type="EIS5">Consigne T° salon</object>
<object id="temp_bureau" gad="1/1/112" type="EIS5">T° bureau</object>
<object id="temp_ch1" gad="1/1/82" type="EIS5">T° chambre 1</object>
<object id="temp_ch2" gad="1/1/92" type="EIS5">T° chambre 2</object>
<object id="temp_cuisine" gad="1/1/102" type="EIS5">T° cuisine</object>
<object id="temp_salon" gad="1/1/72" type="EIS5">T° salon</object>
<object id="cur_time" gad="1/1/150" type="EIS3">Current Time</object>
<object id="cur_date" gad="1/1/151" type="EIS4" forcewrite="true">Current Date</object>
<object id="detecteur_couloir" gad="1/1/160">Détecteur de mouvement couloir</object>
<object id="detecteur_salon" gad="1/1/161">Détecteur de mouvement couloir</object>
<object id="detecteur_escalier" gad="1/1/162">Détecteur de mouvement couloir</object>
<object id="detecteur_cuisine" gad="1/1/163">Détecteur de mouvement couloir</object>
<object id="fenetre_salon" gad="1/1/171">FenĂŞtres salon</object>
<object id="fenetre_cuisine" gad="1/1/172">FenĂŞtre cuisine</object>
</objects>
</config>
</read>
Also, can I debug on KnxWeb side ? Any logging feature ?
I'd love to check what is going on when my objects xml arrives and what is wrong...
Bulek.
Hi,
Linknx support communication using a TCP connection or UNIX domain socket. The configuration is done in the "services" section of the configuration file. You can read the manual and examples in the wiki (http://linknx.wiki.sourceforge.net/Interacting+with+Linknx).
Regarts,
Ronny
Hi,
A good tool to debug that kind of issue is to use Firefox, install the firebug add-on and use it to see error messages and see the details of the communication between browser and webserver.
Knxweb is not communicating directly with linknx. Knxweb calls a php script ( linknx.php ) and that php script connects to linknx (by default using TCP connection on port 1028).
If you use linknx.php without modification and try to replace linknx itself, you need to add an EOT ascii character (ascii code 0x04) on a new line at the end of the message.
Regards,
Jean-François
Hi,
thanks for info.
Will try Firefox debug tool.
I've also read "interacting with linknx" and would kindly ask if you can provide two short examples of correct reponses to two possible queries for multiple objects :
1. <read><objects/></read>
2. <read><objects><object id="obj_id1"/><object id="obj_id2"/><object id="obj_id3"/>...</objects></read>
I think it wouldn't be bad that this example response are added to that document too (it's not so obvious how to generalize response from 1 to multiple/all objects - example response for single object query is present, those two could be added).
Thanks in advance,
regards,
Rob.
Hi,
Here's an example of response to multiple object query:
<read><objects><object id="heating_mode_kitchen"/><object id="setpoint_kitchen"/><object id="temp_kitchen"/></objects></read>
Answer:
<read status="success">
<objects>
<object id="heating_mode_kitchen" value="standby" />
<object id="setpoint_kitchen" value="18.1" />
<object id="temp_kitchen" value="18.2" />
</objects>
</read>
If you use <read><objects/></read>, all the objects will be listed
Regards,
Jean-François