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

Issue displaying images in alerts

Scheduled Pinned Locked Moved Unsolved Bug Hunt
9 Posts 3 Posters 3.0k 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.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer @Tagriel
    last edited by Oct 28, 2018, 3:24 PM

    @tagriel if you open the image in an icognito window of your browser, can you see it? Otherwise the settings are probably still broken.

    If the local path doesn’t work, you can make use of the internal web server of the magic mirror. you can add a public directory in a module, like i did in the v2 of MMM-soccer and access the images via /MMM-soccer/image.png

    Please create a github issue if you need help, so I can keep track

    1 Reply Last reply Reply Quote 0
    • T Offline
      Tagriel
      last edited by Oct 28, 2018, 8:30 PM

      Yup, I’m able to see it on Incognito mode, I’ve been uploading images to other servers and it still is the same, is not dropbox either :(

      1 Reply Last reply Reply Quote 0
      • T Offline
        Tagriel
        last edited by Oct 29, 2018, 8:57 AM

        Hi, I manage to get it working with box instead of dropbox, amazon, google, and everything else that I’ve tried.

        I was searching for MMM-soccer but I can’t seem to find any module with that name. Could you share the module URL? I think the idea of having an internal web server might do the trick here. I think is better to have it hosted locally because box URL is veeeeeery long and specific, it has so many chars in the URL that I believe it will work today but maybe not tomorrow.

        S 1 Reply Last reply Oct 29, 2018, 8:10 PM Reply Quote 0
        • C Offline
          cyberdie @strawberry 3.141
          last edited by Oct 29, 2018, 10:27 AM

          @strawberry-3-141 Looks nice!
          I’m trying to do the same from a python script and/or bash script.
          Do you known how to trigger an alarm from curl or python?
          thanks in advance.

          1 Reply Last reply Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @Tagriel
            last edited by strawberry 3.141 Oct 29, 2018, 8:12 PM Oct 29, 2018, 8:10 PM

            @tagriel the url would be https://github.com/fewieden/MMM-soccer

            but the only thing you need is a module let’s call it imageserver, which is only responsible as an image host.

            directory structure:

            MagicMirror
            - modules
              - imageserver
                - public
                  - kids.png
                - imageserver.js
                - node_helper.js
            

            imageserver.js

            Module.register("imageserver", {});
            

            node_helper.js

            const NodeHelper = require('node_helper');
            module.exports = NodeHelper.create({});
            

            config.js

            {
            	module: "imageserver"
            },
            

            command

            MM.getModules()[0].notificationReceived("SHOW_ALERT", {title: 'My Title', message: 'Some Text', imageUrl: '/imageserver/kids.png'}, {name: 'test'});
            

            0_1540843796205_93d389de-7eb6-4713-bab0-630e13884ac2-grafik.png

            Please create a github issue if you need help, so I can keep track

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