control relay through the ethernet gateway by curl / bash ?
-
I want to control a relaysensor directly through a bashscript.
(for example with curl, but could also be python, php, whatever)The sense in it is, i have a server, running FHEM, i control various mysensor nodes through it.
Sometimes, this server crashes, so i have to unplug power to reboot it.
My idea is, as i have other servers running 24/7 (raspberry with debian), to be able to control that single relay actuator remotely to reboot the server..
Is there any easy way to do that, or do i need a second gateway just for that purpose ?Best regards
Klaus
-
You could hook a simple relay board to the GPIOs of the RPi and control them with a script. In case you don't have to do this over air.
-
The raspberry is far away, connected only be network
I was thinking about a solution with a arduino mini, a network shield and a relay, looks like this is the way i also gonna go now, but had the hope that it would be totally easy to send a already existing mysensors node a simple command
-
It is relatively easy to send a command to an existing node (you can do this via serial monitor and a gateway node or even with any other mysensors node). But you did not write the setup of your system. Who will send the command (the fhem gw node)? which node will receive (another node especially for controlling the relais)? I did not get who shall do what with which ressources..
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login