@cotxwx hm… I have it loaded too… we shall see
Read the statement by Michael Teeuw here.
Best posts made by sdetweil
-
RE: Refresh modules / MagicMirror without running pm2 restart?
-
RE: mmm-nest-status unresponsive after 12hours
@costascontis bug in the original repo, use mine
git clone https://github.com/sdetweil/mmm-nest-status -
RE: Installing Magic mirror on windows 10
@Chrisflex looks like you missed these steps
cd ~/MagicMirror cd vendor npm install cd ..\fonts npm install cd ..
-
RE: MMM-Memo not able to send messages to Magic Mirror
@FruityBebbles I’m not the author, just another user trying to help…
the code in node_helper.js
defines how the module responds…and it says for add
this.expressApp.get('/AddMemo', (req, res) => { var query = url.parse(req.url, true).query; var level = query.level; var memoTitle = query.memoTitle; var item = query.item;
http://Pi’s_IP:port/addMemo?memoTitle=&item=&level=
and for remove
this.expressApp.get('/RemoveMemo', (req, res) => { var query = url.parse(req.url, true).query; var memoTitle = query.memoTitle; var item = query.item;
http://Pi’s_IP:port/RemoveMemo?memoTitle=&item=
that is the only way this module responds
so to remove, u need the exact text of the ‘item’ when u added it.
u can use curl or http request , you don’t have to use a browser… I was just offering an easy way to test it out -
RE: How to declare an array in config.js?
@fischershaw @bhepler the way you have done it works for me…
from my MyCovid19 module
in config.jsconfig:{ countries:["Italy","USA","China","Spain", "France",'Sweden'],
in my code
for(var i in this.config.countries){ switch(this.config.countries[i].toLowerCase()) {
oh, single or double quotes doesn’t matter, even in the same array, long as they are matched
why do you think it is a string? its an array of strings
-
open the developers window, (npm start dev or ctrl-shift-i on the keyboard),
-
select the sources tab,
-
look thru the items on the left, expand modules, find your module, click its .js file ,
-
then put a stop (click on the line edge to the left of the 1st statement after start),
-
then hit f5 (refresh page) and the page will be reloaded and the debugger will stop on that statement,
-
u can examine the variables in the config object
-
-
RE: MMM-Memo not able to send messages to Magic Mirror
@FruityBebbles no problem, glad I can help… you don’t need to be a coder… but some of this stuff is very rigid in its requirements…
-
RE: MMM-PIR or MMM-PIR-Sensor issues...
@cowboysdude someone had to add a parm to the command
Either way, i found another way which is using the command 'vcgencmd display_power 0 2' and 'vcgencmd display_power 1 2' where the 0 stands for Off and 1 stands for On and the 2 stands for my display ID.
-
RE: MMM-EasyBack no autostart Video
@Darkmx-6 there are two ways to run Magic Mirror
all in one(all in one application) , uses electron, npm start.
we’ve solved the pi 0 problem… my installer handles itsplit mode (two applications)
start serverOnly
then view with some other browser (chrome, firefox, ie, …) either locally or from another machine/phone… -
RE: MMM-Reddit: 404 error
@reubenvickers said in MMM-Reddit: 404 error:
Now I just have to fix my googleassistant module. Have you got any experience with MMM-GoogleAssistant or MMM-AssistantMk2?
yes, both are a pain…
@Bugsounet can u help here?
-
RE: MMM-google-route Example ?
@FruityBebbles looks like the doc for the module references a google doc with says
directionsRequest Required The directions to show on the map. Type: google.maps.DirectionsRequest interface
direction request link takes you here
https://developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRequest
which says LatLng or LatLngLiteral
https://developers.google.com/maps/documentation/javascript/reference/coordinates#LatLngLiteralwhich both show as this
{lat: -34, lng: 151}
so
module: "MMM-google-route", position: "top_left", config: { key: "google api-key", directionsRequest:{ origin: "address, city, country", destination: {"lat": number, "lng":number}, // can't figure out... height: "400px",//default=300px width: "400px",//default=300px avoidTolls: true, showAge: false, fontSize: "80%", } } },