@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