MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED Server <> Client communication

    Feature Requests
    2
    3
    895
    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.
    • rudibarani
      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
        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

        Create a working config
        How to add modules

        rudibarani 1 Reply Last reply Reply Quote 0
        • rudibarani
          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy