• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-NotificationReceived

Scheduled Pinned Locked Moved Development
7 Posts 3 Posters 898 Views 3 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.
  • ? Offline
    A Former User
    last edited by May 13, 2020, 3:44 PM

    MMM-NotificationReceived

    Simple module for developping.
    It allow to show notification send by modules.
    Notification is shown in dev console launched by npm start dev

    [Notification][MMM-Spotify] SPOTIFY_CONNECTED 
    [Notification][MMM-Spotify] SPOTIFY_UPDATE_PLAYING true
    [Notification][MMM-Spotify] SPOTIFY_UPDATE_DEVICE Object
    

    Of course, you can choose the notification sender and see Object / Array by developing it

    1 Reply Last reply Reply Quote 3
    • M Offline
      mmmmh Project Sponsor
      last edited by May 14, 2020, 10:26 AM

      @Bugsounet Great, this opens many options. I may be in the minority but for me a bridge from notifications to MQTT would be awesome.

      I use a workaround where external events can turn modules on/off. This is done by bridging from MQTT via Node RED to MMM-Remote-Control’s API.

      B 1 Reply Last reply May 14, 2020, 11:59 AM Reply Quote 0
      • ? Offline
        A Former User
        last edited by May 14, 2020, 10:28 AM

        sure, simple module but it help ;)

        1 Reply Last reply Reply Quote 0
        • B Offline
          bhepler Module Developer @mmmmh
          last edited by May 14, 2020, 11:59 AM

          @mmmmh - I don’t know if it will help you, but I use MQTT in my MMM-WeasleyClock module. It only subscribes, but adding publish capability shouldn’t be terribly difficult. I was considering adding that feature before I achieved what I was going for with the server configuration.

          I used mqtt.js and it wasn’t all that difficult.

          M 1 Reply Last reply May 14, 2020, 12:13 PM Reply Quote 0
          • M Offline
            mmmmh Project Sponsor @bhepler
            last edited by May 14, 2020, 12:13 PM

            @bhepler Interesting take on the location tracking. I created something similar where I use geofencing apps that support webhooks. A simple php script converts the calls to MQTT payloads and a small web page acting as an MQTT over websockets client shows icons depending on the person and the location. In my MagicMirror display said web page is embedded using an iframe module.

            I also use OwnTracks but for me it is not as reliable as other apps.

            B 1 Reply Last reply May 14, 2020, 7:07 PM Reply Quote 0
            • B Offline
              bhepler Module Developer @mmmmh
              last edited by May 14, 2020, 7:07 PM

              @mmmmh - No argument here. OwnTracks is great in that it’s open source and free. It’s buggy as hell though. If you have a recommendation for something more reliable, I’m all ears. I picked OwnTracks solely based on the Instructable that inspired the Weasley Clock.

              M 1 Reply Last reply May 15, 2020, 7:15 AM Reply Quote 0
              • M Offline
                mmmmh Project Sponsor @bhepler
                last edited by May 15, 2020, 7:15 AM

                @bhepler I use Geofency. You have to define the areas in the app and enter webhook addresses for entry and exit events. In my case, a JSON payload is posted to a self-hosted webserver (with encryption and basic auth).

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  1/7
                  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