@grssll is your relay already wired to your pi? And does it already work when you use the command line to change the state of the GPIO pin?
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
G