Seemed like daemon.g was not starting.
-
Other than bits of info scattered on the forums there seems to be no real 'How to' which has been my experience with the duet making more difficult than it needs to be to use.
My understanding is that the daemon.g file/macro/script runs about every 10 second if it exists in the sys directory (Same directory as the config.g file)
I have created a file named daemon.g in the sys directory.
The file has only one line of codeM117 "Hello"
This did not work but once I replaced the above line with
echo "Test"
it worked printing the word test in the console
Seemed like daemon.g was not starting but perhaps it's not a good idea to run macros from within it ?????
-
@machinemark
If you send the same M117 message repeatedly only the first will display a message.
daemon.g probably stared running before your web interface connection was established so you didn't see the first instance.
Using either "echo" or M118 avoids this.
As would using an ever changing string likeM117 "Hello world, it's been " ^ state.upTime ^ " since boot up"
-
Thanks for the clarification.
-
@machinemark said in Seemed like daemon.g was not starting.:
Thanks for the clarification.
No problem.
There's more documentation specific to daemon.g here and hereYou will also find plenty of instances of it;s use on the forum.
Once you're satisfied it''s working correctly, mark you post as a question and then mark it solved.