MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. glitchgod
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Groups 0

    Topics

    • G

      MMM-Buttons update node error installed 48 need 57

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      2
      0 Votes
      2 Posts
      957 Views
      A
      @glitchgod I had the same problem, here is the solution which worked for me. Change into the modules directory cd MagicMirror/modules/MMM-Buttons Rebuild module for the correct elecron version npm rebuild --runtime=electron --target=$(../../node_modules/electron/cli.js --version) --disturl=https://atom.io/download/atom-shell --build-from-source AxLED
    • G

      GPIO in MMM: ModuleToggle with MMM-Buttons is randomly working

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      1
      0 Votes
      1 Posts
      964 Views
      G
      Issue comes from the buttons requiring an insane amount of presses to trigger, sometimes never triggering, and on rare occasions 2 of the 4 will work perfectly. The goal was to have an easy way to have buttons, in this case 4, and each have their certain modules. Using code from http://razzpisampler.oreilly.com/ch07.html import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == False: print('Button Pressed') time.sleep(0.2) I tested each one button with their own GPIO and each worked every time, so with this knowledge i know the buttons and the wiring is right. The code for the config is: modules: [ { module: 'MMM-ModuleToggle', config: { hide: ["clock"] } }, { module: 'MMM-Buttons', config: { buttons: [ { pin: 23, name: "Button_One", shortPress: { notification: "MODULE_TOGGLE", payload: {hide: [], show: ["calendar", "clock"], toggle:[]} }, longPress: undefined }, { pin: 13, name: "Button_Two", shortPress: { notification: "MODULE_TOGGLE", payload: {hide: ["calendar", "clock"], show: [], toggle:[]} }, longPress: undefined } ] } As stated they work, but at very random time. Im wondering if im suppose to like preload the knowledge to use GPIO ahead of the booting of the actual Magic Mirror program, or something like, or am i missing a step. Thank you in advance.
    • G

      MMM-CalendarExt cant get the calendar to show

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      23
      0 Votes
      23 Posts
      14k Views
      T
      Hello my name is TL and I’m very very very new. I’m just trying to get something to show up and it seems that when I start the MagicMirror that I get all the other modules but the CalendarExt module. For some odd reason I have a feeling I’m missing something rather simple. Below is a copy of my config file and my npm start dev below:. * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // 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: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: 'MMM-CalendarExt', position: "top_left", //anywhere. It is not related to real position of view config: { // Read below system:{ show: ['daily'], locale: '', //when omitted, default value would be your system default locale by moment.js showEmptyView: 1, fullDayEventLocalize: 1, redrawInterval: 30*60*1000, //minimum 60000 useProfileConfig: 0, startProfile: '' }, defaultView: { position: 'bottom_bar', positionOrder: -1, overflowRolling: 0, overflowHeight: 0, overflowDuration: 2, timeFormat: 'HH:mm', dateFormat: "MMM Do", fullDayEventDateFormat: "MMM Do", ellipsis: 0, limit:0, oneLineEvent:0, replaceTitle:[], classPattern:[], classPatternWhere:["title"], symbolPattern:[], symbolPatternWhere:["title"] }, views: { month: { showWeeks: 1, weeksTitle: 'weeks', weeksFormat: 'wo', weekdayFormat: 'dd', titleFormat : 'D', overTitleFormat : 'MMM D', monthTitleFormat: "MMMM", }, weeks: { showWeeks: 1, weeksTitle: 'weeks', weeksFormat: 'wo', weekdayFormat: 'dd', titleFormat : 'MMM D', overTitleFormat : 'MMM D', counts: 4, }, daily: { direction: 'row', counts: 5, titleFormat: "D", overTitleFormat: "MMM D", subtitleFormat: "ddd", }, weekly: { direction: 'row', counts: 4, titleFormat: "wo", overTitleFormat: "gggg wo", subtitleFormat: "MMM Do", }, monthly: { direction: 'row', counts: 3, titleFormat: "MMMM", overTitleFormat: "YYYY MMM", subtitleFormat: "YYYY", }, current: { title: 'Current', useRelative: 1 }, upcoming: { title: 'Upcoming', useRelative: 1 }, }, defaultCalendar: { profiles: [], views: [], symbol: "", styleName: "", replaceTitle:[], classPattern: [], classPatternWhere: ["title"], symbolPattern: [], symbolPatternWhere: ["title"], maxEntries:50, maxDays:180, interval: 1800000, }, calendars: [ { name: "Schooldays of John", url: "https://school.com/schedule.ics", auth: { user:'john', pass:'abcd1234', method:'bearer' } }, { name: "US Holiday", url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics", profile: ['daddy'], views: ['month', 'upcoming'], styleName: "style1", symbol: 'us@fi', maxEntries: 50, maxDays:365, interval: 24*60*60*1000, } ], profileConfigs: { "Tom" : {}, } }, }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "New York", locationID: "", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "New York", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;} Here is my npm start dev: pi@raspberrypi:~/MagicMirror $ npm start dev npm ERR! Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/node_modules/dev/package.json' npm ERR! at Error (native) npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! npm ERR! System Linux 4.9.59-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start" "dev" npm ERR! cwd /home/pi/MagicMirror npm ERR! node -v v4.8.2 npm ERR! npm -v 1.4.21 npm ERR! path /home/pi/MagicMirror/node_modules/dev/package.json npm ERR! syscall open npm ERR! code ENOENT npm ERR! errno -2 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/MagicMirror/npm-debug.log npm ERR! not ok code 0 pi@raspberrypi:~/MagicMirror $ Thank you.
    • 1 / 1