Exec binding with php script return data

@Baldorian
maybe some tutorial for exec helps.

  1. try to execute the command as user openhab. And determine if user permissions and path is correct.
sudo -u openhab php ./conf/scripts/TempOutside1Latest.php
  1. First don’t use the transmformation and set up a rule to log the return value. See the tutorials.
  2. The item can not be a Number it needs to be a String.
  3. Add the transfomation. Try if it woks regex, json.
1 Like