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

Posts

Recent Best Controversial
  • RE: CalendarExt3Journal fit with other modules

    @MMRIZE It’s running on a RPI5. The resolution should be 1080 x 1920 although I also see it when accessing the mirror from my desktop. I’ll open dev tools and try to figure out if some other module is interfering.
    So, even if you use 16-20 hours in your calendar, the text still goes below?
    Thanks for the help by the way, and for the module!

    posted in Troubleshooting
    C
    cpcode
    Dec 9, 2024, 10:56 PM
  • RE: CalendarExt3Journal fit with other modules

    @MMRIZE I think I narrowed it down to the hourLength attribute - mine is 14, and at least on my system if I use anything > 10 I see the issue. This is the config for the two modules, the image is below (the dayIndex was different when I took the screenshot but it should not matter):

    {
    			module: "MMM-CalendarExt3Journal",
    			classes:"Calendar",
    			position: "middle_center",
    			config: {
    				height: '50vh',
    				width: '100%',
    				locale: 'en-US',
    				staticWeek: false,
    				dayIndex: 0,
    				days: 7,
    				staticTime: true,
    				hourLength: 12,
    				beginHour:  7,
    			}
    		},
    		{
    			module: "helloworld",
    			classes:"Calendar",
    			position: "middle_center",
    			config: {text: "THIS TEXT SHOULD BE BELOW" ,}, 
                    },
    

    MirrorCalendarWithText.jpg

    posted in Troubleshooting
    C
    cpcode
    Dec 9, 2024, 10:20 PM
  • CalendarExt3Journal fit with other modules

    I have CalendarExt3Journal (working well, awesome module) in middle_center, and another module after it in my config.js, also in middle_center. The second module is a simple helloworld module with a div and some spans inside it, not very tall. Just using text has the same issue.

    The second module is NOT being rendered all the way below the calendar, but rather inside/behind it - near the lower quarter of it, the calendar is fairly high.
    For every other module I tested, including CalendarExt3, if I put two modules in the same position they are rendered one below the other. Is this a bug with CalendarExt3Journal or do I need to do something to the second module to force it down below the calendar?

    posted in Troubleshooting
    C
    cpcode
    Dec 9, 2024, 2:25 AM
  • RE: Best way to develop from Windows machine

    @sdetweil Thanks, this is perfect! I am set up with SFTP to the Pi and I can edit the remote files with VS Code on my machine. Haven’t tried SSH yet but hopefully that works well too.
    I’m good with old school HTML, JavaScript, and CSS, but have zero experience with anything Linux. This has been a great project to get my feet wet. I think in 3 or 4 more weeks I should be able to post some pics of my display here, it’s coming along.

    posted in General Discussion
    C
    cpcode
    Dec 3, 2024, 2:01 AM
  • Best way to develop from Windows machine

    I have a Raspberry Pi with Magic Mirror running - attached to a monitor but no keyboard or mouse. To develop, I am using Remote Desktop from my main Windows computer to remote in and do whatever. This is not ideal, as I have to:

    • Turn on the Pi, let it load to MM
    • Close MM, then Log the main user out of the Raspberry Pi OS (while leaving the Pi on)
    • Remote Desktop from my Windows machine
    • Develop / edit the mirror from the remote window

    I have to do this because Remote Desktop will not let me log into the Pi using the same user that is already logged in. I had actually created a second user, but then I don’t have access to the main user’s files (I know you can get around this, it just doesn’t seem like the right approach).

    So, is there some write-up or general consensus of the best way to work on Magic Mirror from a Windows machine, where the ultimate target is a Raspberry Pi? Things like editing the config and css files, installing modules, developing new modules, etc.

    BTW I also installed MM directly on my Windows machine as a way to develop a fork of a module, much easier than trying to do so via remote desktop. However, at some point I need to pull that fork down to the Pi, edit the config, test it with my other modules, etc.

    How do you long-time users do this?

    posted in General Discussion
    C
    cpcode
    Dec 3, 2024, 12:56 AM
  • RE: Auto-restart after quitting

    @sdetweil I open the Git Bash console, go to the MagicMirror folder, and type npm start
    No flags or scripts. Is there a better way?

    posted in Troubleshooting
    C
    cpcode
    Nov 25, 2024, 4:16 PM
  • RE: Auto-restart after quitting

    @sdetweil I’m not using pm2 - I didn’t install it and the log I posted above has a row that says ‘You are not using pm2’. Is there a similar thing that would keep rebooting my mirror?

    posted in Troubleshooting
    C
    cpcode
    Nov 25, 2024, 3:56 PM
  • Auto-restart after quitting

    I just installed MM on Windows, followed all the instructions from the wiki. I can successfully run from the Git Bash prompt with npm start.
    The problem is, when I use Alt+Space to bring up the context menu and select Close, the mirror closes and then immediately re-opens (reboots?). I can see in the Bash window that it seems to be restarting - this is the bash console output from starting it once and closing it once (trying to):

    $ npm start
    https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
    [2024-11-25 08:43:40.834] [INFO] Newsfeed-Fetcher: Broadcasting 26 items.
    [2024-11-25 08:43:43.320] [INFO] System information:

    SYSTEM: manufacturer: Dell Inc.; model: XPS 8940; virtual: false

    OS: platform: Windows; distro: Microsoft Windows 10 Pro; release: 10.0

    .19045; arch: x64; kernel: 10.0.19045

    VERSIONS: electron: 31.6.0; used node: 20.17.0; installed node: 22.11.0; npm

    : 10.9.0; pm2: 5.4.2

    OTHER: timeZone: America/Chicago; ELECTRON_ENABLE_GPU: undefined

    [2024-11-25 08:44:02.407] [LOG] Use existing calendarfetcher for url: https://
    ics.calendarlabs.com/76/mm3137/US_Holidays.ics
    [2024-11-25 08:44:02.408] [INFO] Calendar-Fetcher: Broadcasting 13 events from
    https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
    [2024-11-25 08:44:02.413] [LOG] Use existing newsfetcher for url: https://rss.
    nytimes.com/services/xml/rss/nyt/HomePage.xml
    [2024-11-25 08:44:02.413] [INFO] Newsfeed-Fetcher: Broadcasting 26 items.
    [2024-11-25 08:44:02.414] [INFO] updatenotification: Updater Class Loaded!
    [2024-11-25 08:44:02.414] [INFO] updatenotification: Checking PM2 using…
    [2024-11-25 08:44:02.426] [INFO] updatenotification: [PM2] You are not using pm
    2
    [2024-11-25 08:44:02.494] [INFO] Calendar-Fetcher: Broadcasting 13 events from
    https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
    [2024-11-25 08:44:02.502] [INFO] Newsfeed-Fetcher: Broadcasting 26 items.
    [2024-11-25 08:44:34.436] [LOG] Use existing calendarfetcher for url: https://
    ics.calendarlabs.com/76/mm3137/US_Holidays.ics
    [2024-11-25 08:44:34.437] [INFO] Calendar-Fetcher: Broadcasting 13 events from
    https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
    [2024-11-25 08:44:34.442] [LOG] Use existing newsfetcher for url: https://rss.
    nytimes.com/services/xml/rss/nyt/HomePage.xml
    [2024-11-25 08:44:34.442] [INFO] Newsfeed-Fetcher: Broadcasting 26 items.
    [2024-11-25 08:44:34.443] [INFO] updatenotification: Updater Class Loaded!
    [2024-11-25 08:44:34.443] [INFO] updatenotification: Checking PM2 using…
    [2024-11-25 08:44:34.449] [INFO] updatenotification: [PM2] You are not using pm
    2
    [2024-11-25 08:44:34.529] [INFO] Newsfeed-Fetcher: Broadcasting 26 items.
    [2024-11-25 08:44:34.541] [INFO] Calendar-Fetcher: Broadcasting 13 events from
    https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.

    You can see the timestamps jump from 08:44:02 (first run) to 08:44:34 - after I closed MM and it restarted on its own.
    So far the only way I found to stop this loop is to click on the Bash window and type Ctrl-C, which gives me this and closes the mirror:

    (path to my username)\MagicMirror\node_modules\electron\dist\electron.exe exited with signal SIGINT

    Any ideas what the problem is?

    posted in Troubleshooting
    C
    cpcode
    Nov 25, 2024, 3:19 PM
  • Community opinions on an interactive List module

    Building my first MM project, it’s a touch-screen for the family. One of my main needs is the ability to display interactive lists: meals for the week, items in our deep freezer, etc. I’d like the community to weigh in on whether you think it would be better for me to write my own module or use & modify an existing one.

    For context: I built my first module already, a fairly easy timer. I’m fine with JS and CSS, though this is my first real node.js and Linux experience.

    Requirements and nice-to-haves:

    • ability to add/edit/remove items directly on the screen
    • ability to optionally show a quantity for each item, and to easily change that. Worst-case I can do this within the item text, but it’d be nicer for the family to have a number they can touch and change next to each list item
    • multiple lists
    • ability to access the list from my phone while I’m out. This isn’t an absolute requirement but it would be nice.

    I looked at the existing 3rd party modules, and the biggest issues are lack of interactivity - since many of you have this as a mirror, - and unknown module support. Modules that display from AnyList, Todoist, Microsoft To Do, Google Keep/Shopping List/Sheets look ok but I’d have to implement the interactive bits, as well as any other changes (some of the above may not work anymore).
    Ideally I would love an integration with OurGroceries but I’m not sure I’m quite up to that task. I also looked at Mealie, which looks great, but the API is a bit daunting.

    If implementing my own module, I’d probably just keep the lists as json files in the module folder. I’m guessing this would be easier, but I don’t know how useful it would be to the community.

    This is an open-ended prompt, and all thoughts are much appreciated. Are there modules out there I could use or build on? What do you think are some pros and cons?
    Thanks!

    posted in Development
    C
    cpcode
    Nov 22, 2024, 8:43 PM
  • 1
  • 2
  • 2 / 2
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy