MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Server <> Client communication

    Scheduled Pinned Locked Moved Unsolved Feature Requests
    3 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rudibaraniR Offline
      rudibarani Project Sponsor
      last edited by

      Dear all,

      I plan to use a docker version of MagicMirror as serveronly to have a speedy backend while keeping the low profile clientonly Raspberry 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!

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil
        last edited by

        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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        rudibaraniR 1 Reply Last reply Reply Quote 0
        • rudibaraniR Offline
          rudibarani Project Sponsor @sdetweil
          last edited by

          @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 clientonly instances. I think the need for this will increase, as more and more MM-instances might be hosted within a Docker image.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy