• 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.

Sending notifications from python to MM

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 3 Posters 3.2k 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.
  • A Offline
    AxLed Module Developer
    last edited by Oct 29, 2018, 6:46 PM

    @bream

    The link has to look like:
    http://MAGIC_MIRROR_IP:PORT/remote?action=HIDE&module=module_7_newsfeed

    You have to use the right module name, in my case it is “module_7_newsfeed”, you can find this out by opening your MM in your firefox browser and use F12 Button and check the HTML source, what the name of your newsfeed module is.

    Hope this helps.

    AxLED

    1 Reply Last reply Reply Quote 0
    • B Offline
      bream
      last edited by bream Oct 30, 2018, 7:46 AM Oct 29, 2018, 7:18 PM

      @axled said in Sending notifications from python to MM:

      You have to use the right module name, in my case it is “module_7_newsfeed”, you can find this out by opening your MM in your firefox browser and use F12 Button and check the HTML source, what the name of your newsfeed module is.

      It does - the buttons work as required now. Thank you :)
      So that looks like it’s the position of the module in the config file so it’ll remain static unless I change the config for some reason.
      I really appreciate that. Thanks again.

      1 Reply Last reply Reply Quote 0
      • C Offline
        cyberdie
        last edited by Oct 30, 2018, 8:27 AM

        And how to trigger an alert from python or bash (curl)?
        Is possible to show an image in the alert popup?

        B 1 Reply Last reply Oct 31, 2018, 7:45 PM Reply Quote 0
        • B Offline
          bream @cyberdie
          last edited by Oct 31, 2018, 7:45 PM

          @cyberdie
          From python, the following will result in an alert

          >>> import requests
          >>> url = 'http://MAGIC_MIRROR_IP:PORT/remote?action=SHOW_ALERT&title="This is the title"&message="And this is the message"'
          >>> requests.get(url)
          

          I can’t answer as to how you’d place an image within the alert though

          C 1 Reply Last reply Nov 4, 2018, 9:46 AM Reply Quote 0
          • C Offline
            cyberdie @bream
            last edited by Nov 4, 2018, 9:46 AM

            Thanks @bream !

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