Try npm install valid-url
from the Magic mirror folder
Read the statement by Michael Teeuw here.
Best posts made by sdetweil
-
RE: MagicMirror does not start anymore
-
RE: [MMM-JaST] Just another Stock Ticker (new: version 2.x)
@morphisto see https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1622084388280
you can discover what you need to know
-
RE: MMM-Memo - Add some memos on your page and manage them through HTTP request
ok… I installed this module…
u define in the config.js a tag to identify acceptable incoming ‘memos’…
memoTitleonce I did that I was able, in a browser to do
http://192.168.2.26:8086/addMemo?memoTitle=testing&item=foobar
and I got back
{“status”:“success”,“item”:{“memoTitle”:“testing”,“level”:“INFO”,“item”:“foobar”,“timestamp”:“2019-09-16T00:12:05.199Z”}}
and a memo appears on the mirror screen192.168.2.26 is my mirror ip address, and 8086 is the port in the config.js
in config.,js I have
address: "", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8086, ipWhitelist: [], // allow anyone to connect
if address:“localhost” then only from INSIDE the mirror machine is allowed to make connections to mirror application
if I do this
http://192.168.2.26:8086/addMemo
the response is
{"status":"failed","error":"No 'memoTitle' given."}
if I do this
http://192.168.2.26:8086/addMemo?memoTitle=testing
where memoTitle matches the value specified in config.js
{ module: 'MMM-Memo', position: 'top_left', classes: 'default everyone', // if using MMM-ProfileSwitcher module config: { // See 'Configuration options' for more information. memoTitle: "testing" }
then i get this
{"status":"failed","error":"No 'item' given."}
so, http://192.168.2.26:8086/addMemo?memoTitle=testing&item=
note to have multiple memo pages, you need to add the module to the config.js multiple times, with different memoTitle values…
readme If you declare several modules in the config/config.js file, you will get several memo notes on your MagicMirror2 profile.
-
RE: Rasberry Replacement
@Anthony don’t have to create new Google project, just use the credentials file u already have
backup, backup, backup
use my script. saves custom.css, config.js and the url of all installed modules
https://github.com/sdetweil/MagicMirror-backup-restoresaves and can push that to gjthub
and restore from there and resetup all the modules… -
RE: Alt Key Doesn't Open Menu
@Fifteen15Studios well, we upgraded the to a newer version of electron. everyone keeps changing things…
-
RE: trouble Accessing JSON structure using variables, help
@sdetweil well, its a side effect of the way the code works…
if (object[key][key] !==‘undefined’)
will throw an access error if either of the two keys are not in the object… BEFORE you can check the results with the if…
SO, wrap with try/catch and all is well…
-
RE: [MMM-JaST] Just another Stock Ticker (new: version 2.x)
@jalibu you could pull a json list of stocks from a file, like compliments does
and do it on some timed cycle, hourly, daily.
@uros76 one could also try using my MMM-Config module, which presents a form for config.js, where user could + to add, - to remove
see
https://github.com/sdetweil/MMM-Config
then the user could change via their phone or ipad/laptop… -
RE: I must be missing something obvious, but how do I go about downloading and installing the module?
@drventure see the links in @Mykle1 signature.
On how to install a module and update config
-
RE: MMM-GoogleMapsTraffic freezes Magic Mirror
@drfukc I am away til later today. I will look at it. One of my modules gets photos from google