• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-EventSearch - show events in your city from google

Scheduled Pinned Locked Moved Entertainment
10 Posts 3 Posters 521 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    chrisfr1976
    last edited by chrisfr1976 Dec 29, 2024, 4:37 PM Dec 29, 2024, 4:27 PM

    Hi guys,

    I’ve created a new module. My motivation was to see what’s up around me in my city. I’ve missed so many events in my life, so I was searching for an event reminder. But I didn’t find anything that fits to my belongings. So I decided to create something on my own:

    MMM-EventSearch

    The MMM-EventSearch module for MagicMirror fetches and displays event information using the SerpAPI to search for events based on a given query, location, and other parameters. It uses in this case google (see SerpApi for other options) and displays the list results from google which everyone has seen already.

    To find a suitable query go to goolge and try a little for your city or surrounding city/provice/state.
    The results are currently limited to the the results that google initally shows. So the “mode results” button does not work or is not accessible with this API!

    The module dynamically generates a table with event details, displaying:

    • Date/Time: Event’s date and time.
    • Title: The title of the event.
    • Image: A thumbnail image of the event, if available, which links to the event’s page.

    Event Fetching:
    Events are refreshed periodically based on the updateInterval. On the free plan from SerpAPI 100 calls are free per month. So be careful.

    CSS Styling is a little acc. to Google results.

    Bild Text

    Have fun!

    Cheers
    Chris.

    Regards, Chris.

    L 1 Reply Last reply Jun 22, 2025, 2:22 PM Reply Quote 1
    • L Offline
      lmhmm @chrisfr1976
      last edited by Jun 22, 2025, 2:22 PM

      @chrisfr1976 Hello Chris this is fabulous thank you.

      So far after signing up with Serpapi I can use the playground to get exactly what I want. However when I try to enter the same settings into EventSearch it says no events found …

      location: “Cockermouth, England, United Kingdom“
      query: “events cockermouth”
      hl: “en”
      gl: “uk”
      googleDomain: “google.co.uk”

      Everything else as yours except apiKey.

      Is there something I’m missing?

      Lorraine

      C 1 Reply Last reply Jun 29, 2025, 3:07 PM Reply Quote 0
      • B Offline
        bugphunk
        last edited by Jun 29, 2025, 12:03 PM

        The idea behind the module is very cool, but it is not working for me neither …

        0|MagicMirror | [2025-06-29 13:58:01.345] [ERROR] Error when loading MMM-EventSearch: Cannot find module ‘node-fetch’
        0|MagicMirror | Require stack:
        0|MagicMirror | - /home/bugphunk/MagicMirror/modules/MMM-EventSearch/node_helper.js
        0|MagicMirror | - /home/bugphunk/MagicMirror/js/app.js
        0|MagicMirror | - /home/bugphunk/MagicMirror/js/electron.js

        Any ideas?

        C 1 Reply Last reply Jun 29, 2025, 6:02 PM Reply Quote 0
        • C Offline
          chrisfr1976 @lmhmm
          last edited by Jun 29, 2025, 3:07 PM

          @lmhmm Hello Lorraine,

          I needed to fix the API request. Should be solved now. Update the module, please.

          I also needed to add a “maxResults” option. The new api call is much better. :)

          Regards, Chris.

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrisfr1976 @bugphunk
            last edited by Jun 29, 2025, 6:02 PM

            @bugphunk
            should be now fixed as well. Update the module.

            Regards, Chris.

            L B 3 Replies Last reply Jun 29, 2025, 6:26 PM Reply Quote 0
            • L Offline
              lmhmm @chrisfr1976
              last edited by Jun 29, 2025, 6:26 PM

              @chrisfr1976 Wow! It works! Fabulous Chris I’ve just got to reconfigure as it’s off the page. Well done fixed up!

              Best wishes,

              Lorraine

              1 Reply Last reply Reply Quote 0
              • B Offline
                bugphunk @chrisfr1976
                last edited by Jun 30, 2025, 1:00 PM

                @chrisfr1976
                Works like a charme! Thanks for your effort! Great module!!!

                May I ask kindly if you´re able to include a sliding option, so that the shown events are not cut off due to limited screen space? My screen only allows 7 events top_left with the clock module above it. Therefore all other events are not shown. A slide-interval option would solve that problem.
                Another space saving option would be a “table-view” without those thumbnails, so that the events are shown as a list with date and title (and maybe smaller pictures as an configurable option).

                Looking forward to possible updates :)

                Thanks again and kind regards!

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bugphunk @chrisfr1976
                  last edited by Jun 30, 2025, 1:11 PM

                  @chrisfr1976

                  I got it by editing my custom.css. Could have checked prior to my posting. Sorry for that. The sliding option still might be a cool thing ;)

                  C 1 Reply Last reply Jul 2, 2025, 8:56 AM Reply Quote 0
                  • C Offline
                    chrisfr1976 @bugphunk
                    last edited by Jul 2, 2025, 8:56 AM

                    @bugphunk The sliding option is a really nice idea. I’ve just implemented it to the code. If you discover any bugs or new improvement ideas please let me know :)

                    Regards, Chris.

                    B 1 Reply Last reply Jul 3, 2025, 3:25 PM Reply Quote 1
                    • B Offline
                      bugphunk @chrisfr1976
                      last edited by Jul 3, 2025, 3:25 PM

                      @chrisfr1976 Thanks a lot! I´ll check it out and keep you posted! Beste Grüße ;) & kind regards

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      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