@sdetweil I have a question: I thought git checkout is just changing the branch. So what is the command here git checkout … doing in index.js ?
Read the statement by Michael Teeuw here.
Posts
-
RE: Display turned black after I installed MMM-DigClock
-
"Update available for module ..." appears but I don't want to update
On the top center of my display appears the text from the topic. I don’t want to update the module because I did my own modifications on it. So is it possible to remove this without doing any update?
-
RE: Display turned black after I installed MMM-DigClock
@sdetweil Thanks for the answer but I get this:
pi@raspberrypi:~/MagicMirror $ git checkout modules/node_modules/node_help/index.js error: pathspec 'modules/node_modules/node_help/index.js' did not match any file(s) known to git
-
Display turned black after I installed MMM-DigClock
I installed the MagicMirror recently and tried the MMM-BackgroundSlideshow. Everything worked perfectly. But then I wanted use the MMM-DigClock but then nothing worked. The display just turned black and I can see the mouse on the top left corner. I assume that it could not install correctly, because I got this after the installation of MMM-DigClock:
pi@raspberrypi:~/MagicMirror/modules/MMM-DigClock $ npm install npm WARN deprecated undefined@0.1.0: this package has been deprecated npm WARN saveError ENOENT: no such file or directory, open '/home/pi/MagicMirror /modules/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/mo dules/package.json' npm WARN modules No description npm WARN modules No repository field. npm WARN modules No README data npm WARN modules No license field. removed 1 package in 1.439s found 0 vulnerabilities
How can I solve this problem?
-
RE: MMM-EasyPix Multiple pics
But is it not possible to position the one pic on top of the other one, so it is like a diashow?
-
MMM-EasyPix Multiple pics
How can I display multiple pics that are shown one by another. In this example is just one pic:
{
module: “MMM-EasyPix”,
position: “top_center”,
config: {
picName: “18.jpg”, // Enter the picture file name.
maxWidth: “75%”, // Size picture precisely. Retains aspect ratio.
sounds: [“1.mp3”, “me2.mp3”], // mp3 sound file names in quotes seperated by commas for Hello-Lucy
updateInterval: 30 * 60 * 1000, // updates display
animationSpeed: 3000,
}
},I already tried with picName: “18.jpg”,“4jpg”,
or picName: [“18.jpg”,“4jpg”],
but nothing worked
-
RE: Modifying existing module
@sdetweil Thanks you replyed. Could you look in the code when have time?
-
Modifying existing module
I have installed this module: https://github.com/htilburgs/MMM-MyPrayerTimes
And I have reallized that it gives me the wrong times. So what I wanted to do is, to use the same app but with an other API. I am a very beginner in javascript and json so I have to ask you for help.I want just the times of a specific city. I don’t want to change it with lon, lat or the timezone. The times should be static. The code should just take the data from the API: https://ezanvakti.herokuapp.com/vakitler?ilce=10565
What I need from this API is the value of: Aksam, Ogle, Ikindi, Imsak, Yatsi
So what I have done is, I changed this code: https://github.com/htilburgs/MMM-MyPrayerTimes/blob/master/MMM-MyPrayerTimes.js
Here are the changes:
-
In line 64 I changed the url to the new one: this.url = https://ezanvakti.herokuapp.com/vakitler?ilce=10565
-
I have commented the lines 92 to 113 out
-
In line 127 I changed the time of fajr to get the time of the api (Value of: Imsak):
from:
FajrTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Fajr) : MPT.Fajr;
To:
FajrTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Imsak) : MPT.Imsak; -
I have commented the lines from 138 to 159 out
-
line 173:
From:
DhuhrTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Dhuhr) : MPT.Dhuhr;
To:
DhuhrTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Ogle) : MPT.Ogle; -
line 195:
From:
AsrTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Asr) : MPT.Asr;
To:
AsrTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Ikindi) : MPT.Ikindi; -
commented from 206 to 227 out
-
line 241:
From:
MaghribTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Maghrib) : MPT.Maghrib;
To:
MaghribTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Aksam) : MPT.Aksam; -
line 263:
From:
IshaTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Isha) : MPT.Isha;
To:
IshaTimeCell.innerHTML = this.config.show24Clock == false ? this.convert24Time(MPT.Yatsi) : MPT.Yatsi; -
commented from 274 to 295 out
So what I know is that I am not doing the access correctly. For example the MPT.Yatsi is not correct. I also tried MPT[0].Yatsi or MPT.0.Yatsi but these also did not work.
I do not know if I also have to change the default:{…} Would it be enough to delete the lon lat and the other components I am not using? And do I also have to change other things (files) to get it to work? I hope you guys can help me.
-