want to write my own plugin but i need a little bit of help.
The first step would be reading device names from a second text file (all Device names are written underneath)
and than check if they are turned on or off in die pimatic surface.
Can someone help me with that?
this is what i wrote, but i get an error that says that no such file or Directory exists:
fs = require 'fs’
config = ‘DeviceListe.coffee’
foo = ->
fs.readFileSync config, ‘utf8’
Edit: ok my fault, it has to be an absolut path