iMod - a scrpting source channel

11 views
Skip to first unread message

Raul Larios

unread,
Jul 18, 2019, 6:21:18 PM7/18/19
to 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.
Reply all
Reply to author
Forward
0 new messages