iMod - a scrpting source channel

Visto 12 veces
Saltar al primer mensaje no leído

Raul Larios

no leída,
18 jul 2019, 18:21:1818/7/19
a MQTT
The goal is to reach running a shell script. I have iMod on Ubuntu 16.04 (ModBerry M300 - TechBASE). If I run: imod trace, and then execute: "tail -f /mnt/data/logs/iMod.log", it says: "* WARN - Creating socket (127.0.0.1:1530) failed: Connection refused (connection refused)
* ERROR - Unable to execute request: /mnt/mtd/iMod/config/test.sh".
I have:
<group name="TESTSCRIPT">
  <!-- SCRIPT -->
  <source-channel name="SCRIPT_CHANNEL">
    <protocol name="SCRIPT"/>
    <port>"/mnt/mtd/iMod/config"</port>
    <gap>0</gap>
    <cycle>10</cycle>
  </source-channel>
</group>
<group name="USESOURCE">
  <parameter>
    <id>"valuescript"</id>
    <source-channel channel-name="SCRIPT_CHANNEL" parameter-id="test.sh"/>
    <event type="OnSourceRead">
      <message-channel channel-name="CONNECT" parameter-id="subscribe"/>
      <message-id>"custom_message"</message-id>
    </event>
  </parameter
</group>

The message channel CONNECT is Ok, I used before and establish without problem.

Thanks in advanced for your help.
Regards.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos