@Jopyth maybe something like alias
{
module: "modulename",
alias: "fancymodule",
...
}
then check if alias exists if not display normal module name
@Jopyth maybe something like alias
{
module: "modulename",
alias: "fancymodule",
...
}
then check if alias exists if not display normal module name
MMM-Anti-Screen-Burn-In.css
.MMM-Anti-Screen-Burn-In {
margin: 55px 55px 65px 65px; /*this would shift it 5 pixels higher and 5 pixels to the right side than the standard of 60px on each side*/
}
MMM-Anti-Screen-Burn-In.js
start: function(){
setInterval(() => {
document.querySelector("body").classList.toggle("MMM-Anti-Screen-Burn-In");
}, 6 * 60 * 60 * 1000); // every 6 hours
},
getStyles: function(){
return ["MMM-Anti-Screen-Burn-In.css"];
}
@darkeagl105 it’s done from the api after the first matchday this should be fixed automatically
{
module: "helloworld",
position: "top_left",
config: {
text: "<img src='path_or_link_to_your_image'>"
}
}
@bibi the boot screen is replaced in the newest version if you are using the new raspbian version which is using PIXEL
@andrewchumchal create a package.json file with npm init fill out the fields, after that type npm install --save DEPENDENCY then the dependencie gets saved into the package.json file, when you provide the package.json file with your module the users have to type npm install and all dependencies which are stored in package.json automatically getting installed
@geeflaxx there must be something wrong with your whole setup. i would personally go and do it again with this instructions https://forum.magicmirror.builders/topic/236/complete-setup-tutorial
@merceaemil I looked into openjarvis, it’s basically an offline hotword detection with snowboy or pocketsphinx and then it uses online detection for commands with bing or google
url: "", //Insert your url here
result: false,
defaults: {
updateInterval: 30 * 60 * 1000 //Every 30 mins
},
start: function(){
this.getData();
setInterval(()=>{
this.getData();
}, this.config.updateInterval);
},
getDom: function() {
var wrapper = document.createElement("div");
if(this.result){
var table = document.createElement("table");
for (var i = 0; i < this.result.length; i++) {
var row = document.createElement("tr");
var name = document.createElement("td");
name.innerHTML = this.result[i].name;
row.appendChild(name);
table.appendChild(row);
}
wrapper.appendChild(table);
} else {
wrapper.innerHTML = "No data to show!";
}
return wrapper;
},
getData: function(){
$.getJSON(this.url, (data) => {
this.result = data;
this.updateDom();
});
}
Changelog:
TODO:
[card:fewieden/MMM-NFL]
@cpramhofer could it be a screensaver option from raspbian os?
@barnosch you can see a list of all changes here https://github.com/cowboysdude/MMM-NOAA/commits/master
every item in the list will show you what has changed. green is added, red is removed
There is a new Pi Zero with wlan and bluetooth
https://www.raspberrypi.org/blog/raspberry-pi-zero-w-joins-family/
due to the different timezone, it would be nice if some of you could test my alpha version of live match detecting on the next matchday, by doing
git fetch
git checkout feature/live-matches
start your mirror and report here how it goes, it should detect live matches automatically and while at least one match is running it fetches every minute for new data, otherwise it will stay by the standard 3hours interval
it’s not tested yet, but if it works you should see that the time of a quarter get’s updated and the score as well. it will also show which team is in ball possession and if the team is entering the redzone it will start to flash the indicator. if something is not working pls provide the errors from the terminal and the electron console (cmd+shift+I)
@hawk13 in the second line from the bottom you used : instead of ; and in the last line you used [ instead of {