Here are pics of my 2nd MagicMirror without a mirror. Had so much fun making this one!
Electrical Engr by profession
Works at Infineon Technologies Automotive Division
Loves to tinker around with electronics, cars, drones or anything I can get hold on to.
I play the guitar and piano to stay sane :)
Here are pics of my 2nd MagicMirror without a mirror. Had so much fun making this one!
Tinker with the Calendar to get previous, current and Next month…
@Mykle1 I saw the ISS south of us this morning. Naked eye was good enough 😀 since it reflects the sun, it’s very visible.
Following Mykle1’s lead I just have to try MagicMirror on the MacBook white running Ubuntu - server mode 😀
So sorry for the late reply…here’s an example of what I changed…
// Override dom generator
getDom: function() {
if ((moment() > this.midnight) || (!this.loaded)) {
var month = moment().add(1,'months');
var year = moment().year();
var monthName = moment().add(1,'months').format("MMMM");
var monthLength = moment().add(1,'months').daysInMonth();
// Find first day of the month, LOCALE aware
var startingDay = moment().add(1,'months').date(1).weekday();
@Sean Thanks a lot for sharing your knowledge and talent! Good luck! Stay safe and healthy!
So sorry for the late reply…here’s an example of what I changed…
// Override dom generator
getDom: function() {
if ((moment() > this.midnight) || (!this.loaded)) {
var month = moment().add(1,'months');
var year = moment().year();
var monthName = moment().add(1,'months').format("MMMM");
var monthLength = moment().add(1,'months').daysInMonth();
// Find first day of the month, LOCALE aware
var startingDay = moment().add(1,'months').date(1).weekday();
Following Mykle1’s lead I just have to try MagicMirror on the MacBook white running Ubuntu - server mode 😀
@Leobo Oh, if you just want the monthly calendar, checkout the calendar_monthly module by KirAsh4 under the Utility / IOT / 3rd Party / Integration modules. The same one I used.
@mrdenmark & @Leobo - I am not a programmer but I can understand a little bit of code :) Anyways, I essentially replicated/tweaked the calendar_monthly module of Ashley M, Kirchner - big thanks (& apologies as well) to him for this module!!
This calendar_monthly is basically using the moment() function. So for the next month module I used the "moment().add(1,‘months’)"to re-define the var month variables and for the previous month I used the “moment().subtract(1,‘months’)”…and since I was going to show prev, currrent and next months at thesame time, I removed the days (grayed days) of the other months that did not belong. I also played with the font size that was pre-defined in the wrapper as well as tweaked the cssStyle. Hope this helps :)
@OldSunGuy I used: calendar_monthly (tweaked to also show previous and next month), MMM-BackgroundSlideshow, MMM-pages, MMM-Page-Indicator, MMM-GooglePhotos,worldclock…
@cyberphox - the pages just cycle through every 30 seconds, I am thinking of adding options for external intervention i.e. voice commands but am not there yet :)