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

    Posts

    Recent Best Controversial
    • RE: Show calendar based on IP Address accessed

      @Spinster
      By the way, which client are you using? Electron? Or Browser?

      posted in Development
      M
      MMRIZE
    • RE: MMM-CalendarExt3Agenda no longer works after a certain time.

      @Old_Death I updated yesterday. Did you check it?

      posted in Troubleshooting
      M
      MMRIZE
    • RE: Show calendar based on IP Address accessed

      @sdetweil
      Yes. I thought a small module with node_helper that could return clients’ ip as a result of REST api call from calendar module.

      posted in Development
      M
      MMRIZE
    • RE: Show calendar based on IP Address accessed

      @Spinster
      Ah I suddenly remember that getting Internal IP with only JavaScript on client browseris hard.
      Hmmm another approach might be needed.

      posted in Development
      M
      MMRIZE
    • RE: Show calendar based on IP Address accessed

      @Spinster
      I’m out of my test PC, so I can’t show atm. (Maybe tomorrow possible, if you couldn’t success until that time)
      You can add custom config attribute map-like object calendarMap in your config.js

      module: "calendar",
      position: "top_left",
      config: {
        calendarMap: {
          "192.168.178.100": ["calendar1", "calendar2"],
          "192.168.178.101": ["calebdar1", "calendar3"],
        },
        calendars: [
          {
            url: " … ",
            name: "calendar1",
          },
      …
      
      

      In calendar.js around line 176, when CALENDAR_EVENTS notification coming, you can filter the payload(array of events) of that notification by checking calendarName of each event is matched to this.config.calendarMap.

      Sorry I can’t show the real code now. Maybe some hours later I may be able to. Anyway concept would be like this.

      posted in Development
      M
      MMRIZE
    • RE: Show calendar based on IP Address accessed

      @Spinster
      Depending on the environment and which modules you want to display on the screen, it may vary, but… If you don’t have many clients (less than 10) and your server has sufficient capacity, it might be better to provide each client with a dedicated server instance with a different port number. For example, Client 1 - Port 8081, Client 2 - Port 8082, … If there are 10 clients, run 10 MM servers.
      You just need to setup config.js of each client-server pair for your purpose.

      There’s no need to modify the source code, and you also don’t need to allocate fixed IP addresses for each client through router settings or WLAN settings of clients. Usually, in home or office environments, DHCP is common, so this would be a simpler approach.

      posted in Development
      M
      MMRIZE
    • RE: MMM-CalendarExt3Agenda no longer works after a certain time.

      @Old_Death
      I found out what was wrong. I made some mistakes in my previous updates, and there is still a missing one. I’ll fix it and update it soon.

      posted in Troubleshooting
      M
      MMRIZE
    • RE: MMM-CalendarExt3Agenda no longer works after a certain time.

      @Old_Death
      Share with me your config (eouia0819@gmail.com)

      posted in Troubleshooting
      M
      MMRIZE
    • RE: PAJ7620u2 Sensor (Grove Gesture)

      @Dennys1
      Are you using MMM-GroveGesture?

      posted in General Discussion
      M
      MMRIZE
    • RE: Modul CalendarExt3Agenda

      @Old_Death
      Sorry, there was still another hidden formatting-twice issue. (in onlyEventDays. I didn’t check that part on the previous update.)
      I fixed it now.
      90b3edb1-a5cf-4ba3-b488-e0597cde049c-image.png

      posted in Troubleshooting
      M
      MMRIZE
    • 1 / 1