@chaseb1357 Hehe! Great! :) Nicely done!
Read the statement by Michael Teeuw here.

Posts
-
RE: MMM-Modulebar - A module that adds touch buttons for showing/hiding other modules.
-
RE: MMM-Modulebar - A module that adds touch buttons for showing/hiding other modules.
@chaseb1357 Hmm… I have not tried it… But what if you have two instances of the modulebar one with only one button hiding the “other” module bar. :)
-
RE: MMM-Modulebar - A module that adds touch buttons for showing/hiding other modules.
@chaseb1357 Personally I’m using the “Hide all” module for removing everything. :)
-
RE: MMM-Modulebar - A module that adds touch buttons for showing/hiding other modules.
@chaseb1357 Well, you could “hide” it with a button, but the problem is to get it back again. :)
-
Listening to only 127.0.0.1:8080...
Hi all,
At last update, it seams the MM only listens to 127.0.0.1:8080 if I have set [] in the ipWhitelist.Here is the “start” of the mirror:
[STREAMING] Now streaming realtime logs for [all] processes 0|mm | Starting MagicMirror: v2.1.3-dev 0|mm | Loading config ... 0|mm | Loading module helpers ... 0|mm | Initializing new module helper ... ...
All is starting ok and the mirror shows up on the local screen.
But it’s not available from any other IP.The start of my conf…
var config = { port: 8080, ipWhitelist: [], language: "sv", timeFormat: 24, units: "metric",
And the listing ports (IPs) with netstat:
pi@MagicMirror:~ $ netstat --tcp --listening --programs --numeric (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 3486/electron.js ... (removed the other ports in the list) ... pi@MagicMirror:~ $
As you can see it’s only listening on 127.0.0.1:8080…
What have I missed/done?I can no longer access the /remote.html (for example) or any other “service” on the mirror from another machine.
Best regards Snille
-
RE: MMM-Chart - View your graphs on your Mirror
Hi, this is a part of my php pickup/conversion script…
I hope this can help you. :)// Get all the data from the database. foreach ($ids as $i => $idnum) { //Fetches the data from MYSQL via PDO. $values[] = getvalues($dbservername, $dbname, $dbusername, $dbpassword, $deftable, $defsensoridcolumn, $max, $ids[$i], $sort); } // Initialize the array. $outarray = array(); $first = 0; foreach ($values as $key => $value) { $position = 0; foreach ($values[$key] as $i => $value) { If ($first == 0) { $outarray[$position][] = $values[$key][$i]["time"]; } $outarray[$position][] = floatval($values[$key][$i]["value"]); $position++; } $first++; } // Make it JSON. $json = json_encode($outarray); // Print it. echo $json;
-
RE: MMM-Chart - View your graphs on your Mirrorand the whole “set” also needs to be inside [ ] as well. :)
Here is some of my config… This is one of my graphs.
{ module: 'MMM-Chart', position: 'top_center', header: 'Temp & Fukt Ute senaste 24 timmarna', config: { name: "outside", url: "http://10.0.0.20/housedata/housedata.php?id=9,10&max=24&sort=desc", graphStyle: "line", xaxisLabelTicks: true, updateInterval: 600000, graphFill0: true, graphLabel0: "Temp ute C", graphLineColor0: "rgba(200, 200, 200, 1)", graphTickColor0: "rgba(200, 200, 200, 1)", graphFillColor0: "rgba(200, 200, 200, 0.2)", graphFill1: true, graphLabel1: "Fukt ute %", graphLineColor1: "rgba(100, 100, 155, 1)", graphTickColor1: "rgba(100, 100, 155, 1)", graphFillColor1: "rgba(100, 100, 155, 0.2)", xaxisTimeUnit: "hour", xaxisTimeFormatLabels: "HH", } },
And the JSON looks like this:
[["2017-07-07 08:56:00",16.9,85],["2017-07-07 06:58:00",13.4,91.3],["2017-07-07 05:54:00",13.3,90.4],["2017-07-07 05:02:00",13.4,89.2],["2017-07-07 03:58:00",13.6,88.2],["2017-07-07 02:55:00",13.6,90],["2017-07-07 01:50:00",13.5,91.9],["2017-07-07 00:57:00",13.6,92.6],["2017-07-06 23:54:00",13.6,90],["2017-07-06 20:55:00",20.1,67.9],["2017-07-06 19:50:00",27.1,52.3],["2017-07-06 18:57:00",25.5,55.1],["2017-07-06 17:54:00",22.4,58.1],["2017-07-06 17:02:00",22.6,66.3],["2017-07-06 15:59:00",22.1,64.4],["2017-07-06 14:56:00",22,65.7],["2017-07-06 13:49:00",21.1,66],["2017-07-06 12:57:00",19.8,66.9],["2017-07-06 11:54:00",18.7,67.1],["2017-07-06 11:01:00",17.6,75.8],["2017-07-06 09:59:00",16.5,79.7],["2017-07-06 07:50:00",12,95.5],["2017-07-06 06:58:00",10.6,98.2],["2017-07-06 05:54:00",9.4,97.7]]
I think the missing fist (and last) “[” “]” may be the problem. :)
-
RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror
Hi! I’m trying to figure out how to hide/show modules with “REMOTE_ACTION” from “MMM-ModuleScheduler”.
First, here is the remote control “config”.
{ module: "MMM-Remote-Control", position: "top_left", config: { "moduleData":[ {"identifier":"module_55_MMM-TextClock"}, ], } },
I know that the “identifier” for the “MMM-TextClock” is correct.
Then in the “MMM-ModuleScheduler” I have this:
{ module: "MMM-ModuleScheduler", config: { uselock: false, notification_schedule: [ {notification: "REMOTE_ACTION", schedule: "0 11 * * *", payload: {action: 'HIDE {"identifier":"module_55_MMM-TextClock"}'}}, ], global_schedule: [] }
It’s suppose to hide the “MMM-TextClock” at 11 AM but it’s not hiding it.
I do get this in the log at the correct time:--- MMM-TextClock received a module notification: REMOTE_ACTION from sender: MMM-ModuleScheduler module.js:115 ---
So the action get sent… But the “MMM-TextClock” still shows… What have I missed?
Or misunderstood? :)Thank you.
-
RE: When weather updates module unhides...
HI all again,
Am I the only one having this problem? The two default modules “currentweather” and “weatherforecast” does not respect the “hidden” (of not locked) attribute when they update.Anyone else? :)
-
RE: MMM-ModuleToggle
I think the class is the same but the “id” is different. I’m using the ID in my MMM-Modulebar. But I’ll have to test it when I have some time. :)