[card:fewieden/MMM-Fuel]
Changelog:
Implemented voice commands to show the gas stations on a map with traffic layer
[card:fewieden/MMM-Fuel]
Changelog:
Implemented voice commands to show the gas stations on a map with traffic layer
@adadws in the start function your module is not rendered yet. so it doesnt exist, if your trying for module specific stuff, but it would exist for elements like the body
@jiggly the picture of your file tree shows that your module folder is called MMM-Coinmarketcap
instead of MMM-CoinMarketCap
. You should change that otherwise magicmirror can’t find the module
@E3V3A that is not true.
A node helper is not required for a module, but if a module has a nodehelper this statement required, because it imports this file into your node helper https://github.com/MichMich/MagicMirror/blob/master/modules/node_modules/node_helper/index.js
@saschasp you can change your regular expressions to the following:
/Meldung (.*)/ig;
, /Zone (.*)/ig;
and /Zeit (.*)/ig;
. This should help you displaying the data. For the problem with the newest file you need to do the following steps: Scan the directory, sort file list by highest number, read the first file.
Scan the directory https://nodejs.org/api/fs.html#fs_fs_readdir_path_options_callback
Sort the file names https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
Read the file https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback
calendars: [
{
symbol: 'calendar-check-o',
url: 'first adress ical'
},
{
symbol: 'calendar-check-o',
url: 'second adress ical'
}
]