Especially to enable auto-startup and mouse pointer auto-hide. Then we will switch them with a cron command (here at 11pm and 6am): > crontab -e # For more information see the manual pages of crontab(5) and cron(8) # m h dom mon dow command 01 23 * * * cp /home/pi/MagicMirror/config/config_night.js /home/pi/MagicMirror/config/config.js 00 06 * * * cp /home/pi/MagicMirror/config/config_day.js /home/pi/MagicMirror/config/config.jsĪlternatively, you could use the MMM-ModuleScheduler, which allows to show or hide different modules at different times, quite brilliant! You'll find my configuration file using the ModuleScheduler below.įinally you may want or need to check the Raspberry Specific configurations, linked at the top of the configuration page. If you would like to have a day and night configuration, I suggest you create a config_day.js and config_night.js, as I did. I also provide my configuration file which you may use as a starting point. Let's start from the MagicMirror configuration file : you will find a sample file in your MagicMirror/config folder. There is one main configuration file to edit, plus you may want or need to tweak some other files, to optimize visualization and get the best result possible. I recently decided to try MMM-ModuleScheduler and never got back! It's easy to schedule the displaying of different modules at different times of the day/night.Ĥ) The other modules we will use are default modules, so no further installation is required. the equivalent module for Netatmo is also available: MMM-Netatmo. For each of the following modules there's a separate installation, it's quick and easy (simple copy and paste again), just follow the links for instructions: first MMM-AlarmClock, we will use this to play music or nature sounds in the morning MMM-Online-State, I find this useful to make sure WiFi is turned off during the night optional, if you have a Tado thermostat, MMM-Tado, to show current and set temperature, humidity, etc. 8GB) microSD card.Ģ) MagicMirror installation : the so called "manual installation" is as easy as a copy and paste of a few commands, so I would recommend it.ģ) MagicMirror (additional, 3rd party) Modules. Now time to go to the SW installation: 1) I assume you have a standard Raspberry Pi OS installation, with desktop, on a (small capacity, e.g. The setup is so simple: 1) first, if you have a case, insert your Raspberry Pi (version 2, 3, or 4 will work) with the microSD card into it (make sure the relevant pins/connector can still be accessed to connect the screen) Ģ) then just connect the screen (whichever you want to use) to the Raspberry Pi I would recommend a small one (like the 3.5" in the list), but you could also use the official Raspberry Pi Touch Display, or another one the touch function will be useful (but not 100% necessary) to turn off the alarm clock ģ) then, if you are using a bluetooth speaker, it may be practical to power/recharge it directly from the Raspberry Pi USB, so just connect it to any USB port Seen the difference? I don't need much information if I wake up at 3 a.m.: the clock is sufficient! And also the indication that the WiFi is turned on/off is ok (for example I set the on sign to yellow and off sign to blue). Let's take a peek at my screen now (day version): Then I thought cron is the easy and right tool to program some events during the day(s). MMM-ModuleScheduler (optional, to switch modules displayed).MMM-Tado (if you have a smart thermostat, you can display ambient info).MMM-Online-State (to check weather WiFi is on or off).MMM-AlarmClock (we want an alarm clock, right?).If you know MagicMirror a little, you know that there are different modules to install, to provide different kinds of functionality. It is mainly based on the beautiful MagicMirror project, but in this case we use it with a little screen to display information we need, without hiding everything behind a mirror. It comes with useful features like a soft wake up (with chirping birds from a little bluetooth speaker), changing set of information and luminosity for day and night, weather, news. Yes, this is yet another alarm clock ! But I feel like I'm not the only one deisiring a nice and simple object like this one to keep on the bedside table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |