11/13/2022 0 Comments Mmm system status magic mirror![]() This is my first foray into MM2 modules and Javascript for some time, so I had a lot of help from looking at other modules such as MMM-Ping and MMM-ping. #Mmm system status magic mirror tv#Perhaps you can check whether the games console is online to assume someone's playing games? Or whether the TV is on? However, as this just pings, chances are a lot of devices that are "always on" will still respond even when not in use. Here we have an icon and text set in the config, and a template that uses both. This works on the assumption that when they're home they'll be connected to the WiFi. As an "in/out" indicatorĪssign fixed IP addresses to family members' smartphones as a way of seeing whether they're home or out. Hikvision IP & Smart Security Camera Systems 8 Cameras Included. This template just has an up/down icon for each server with a red/green colour as needed. Hikvisions DS-2CD4A24FWD-IZH Smart IP camera is designed to capture high quality color. Of course, you don't have to use this to check on your server statuses specifically you can use it for any ping-able device! Here are some other suggestions. #Mmm system status magic mirror full#fullResults - full ping response (see ping module Output Specification) so all the ping response data can be used in the templates.PingTime - the time (in ms) of the first successful ping isAlive - Boolean (true/false) to show whether the host responded or not.name - friendly name (as given in the module config).In the default template, you will see the results are parsed through with: The module will pass all of the module configuration settings to the template (as config) and the ping results (as pingResults). For example, if you've created a template called fabNewTemplate.njk, adjust your module config to include templateName: "fabNewTemplate". njk file in the module directory and set the templateName option in the config to the name of your template (minus the. If you'd like to use a different template, create a. This is so much easier than writing HTML through Javascript, and has the benefit of allowing the end user to simply create a new template to use without having to recode the module. This module uses Nunjucks templates to render its output. This gets passed directly to the color setting of the tag so it can be anything you can use in HTML/CSS styling (e.g., "red" or "#ff0000"). Open /MagicMirror/modules/MMM-VoiceAssistant/pi/audiofileinput.py. This gets passed directly to the color setting of the tag so it can be anything you can use in HTML/CSS styling (e.g., "green" or "#00ff00"). Google Assistant Service can only support 500 requests every day. Text to show for a down/offline status (e.g., "DOWN"). The symbol to use for a down/offline status. Text to show for an up/online/alive status (e.g., "UP"). The symbol to use for an up/online/alive status. If given, the basic template provided will add it to the table element of the module's output. Specify the name of the Nunjucks template to use (.njk extension not required). Set a delay when the module first starts before firing off any ping requests. Please consider what you are pinging before setting a really short interval. Set the time in seconds between each round of pings. Use this if you need more than one instance of the module running - each module will need its own group name. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |