Script to control Wemos from gcode using DSF
-
@oozeBot I forked this from the previous SBC topic as it stands alone as something useful.
-
Would add that you need execonmcode installed!
-
Hello @oozebot
I think I understand what your script is doing, but unfortunately I have absolutely no idea what I have to change to make it work with my Shelly.
In my theory, I just want to call a web address. I don't actually need the different parameters.
It should just be turned off stupidly.I think only the web call (http://192.168.1.47/relay/0?turn=off) would have to be stored in the wemo.sh.
Unfortunately, I don't know whether I need the curl, content-type, charset etc either. i have no idea about these things -
anybody can help me with a hint
-
@CrazyCreator - this is untested, but all you need is something like the following. Google curl for more info.
#!/bin/sh curl -s 'http://192.168.1.47/relay/0?turn=off' > /dev/null
-
-
-
@crazycreator the script can go most anywhere in the file system. If you look close at the service script I provided above, youโll see we use a folder named โscriptsโ off the root.
-
@oozebot
Many thanks for the answer .. now I can try -
@oozebot
I could kiss you right nowIt works absolutely perfectly.
I now have a real physical switch on the printer to turn it on and off and can still switch it off automatically at the end of a print Love it