Read the statement by Michael Teeuw here.
Issue displaying images in alerts
-
@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
-
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 :(
-
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.
-
@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. -
@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'});