Read the statement by Michael Teeuw here.
Server <> Client communication
-
Dear all,
I plan to use a docker version of MagicMirror as
serveronlyto have a speedy backend while keeping the low profileclientonlyRaspberry Pi as frontend behind my home mirror.Is it possible for those two endpoints to share data in a way, that I could forward local button presses/gpio input to the docker-version to trigger actions on the screen or playback audio through the local Raspberry Pi?
Thanks for any ideas!
-
i don’t think there is any mechanism built in to support this… but, you could use MMM-RemoteControl on the server side that accepts api requests.
then on the RPI you would have to write some background tasks to interact with the local devices
and send requests.you ‘might’ be able to inject those handlers into the MM front end by modifying the index.html
-
@sdetweil Thanks for pointing me at MMM-RemoteControl. I will try this as a first unidirectional approach.
In the long run, it would be great if we had two-way module / MM core capability that could communicate with
node clientonlyinstances. I think the need for this will increase, as more and more MM-instances might be hosted within a Docker image.
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