MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Tell weather, date & time automatically at a specific time.

    General Discussion
    6
    13
    295
    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.
    • S
      sdmydbr9 @suvan last edited by

      @suvan no… just ifttt, notification trigger, and google tts…
      You will need to go for port forwarding, I went for Dataplicity(a service similar to port forwarding to open my 8080 port).
      I have followed this particular link and followed the steps, this is the link to follow for the steps of
      You give it a try and let me know if you need more help. The steps here are pretty clear.
      Note: 1. ifttt used to be free but now it’s paid. You can use upto 5 applets for free and if you just want it to tell you the time and I guess the free tier is okay.
      2. Google tts, you will need to enable billing in your project, although you won’t be charge for that, there is an api counter in that particular module.

      uros76 1 Reply Last reply Reply Quote 0
      • M
        MMRIZE last edited by MMRIZE

        @suvan
        I think it’s possible with MMM-GoogleTTS, MMM-NotificationTrigger and cron

        cron

        0 8 * * *  curl --data "notification=YELL_TIME" http://localhost:8080/webhook
        

        This is an example of a daily 8 am execution.

        MMM-NotificationTrigger

        {
          module: "MMM-NotificationTrigger",
          config: {
            useWebhook:true,
            triggers:[
              {
                trigger: "YELL_TIME",
                fires: [
                  {
                    fire:"TTS_SAY",
                    payload: function(payload) {
                      return {
                        content: "It is " + new Intl.DateTimeFormat("en-US", { dateStyle: "long", hour: "numeric", dayPeriod: "long" }).format(new Date())
                      }
                    },
                  },
                ],
              },
            ]
          }
        },
        

        MMM-GoogleTTS
        whatever…

        I haven’t tested this on real machine.

        Instead of direct using cron, you can use MMM-ScriptScheduler or MMM-ModuleScheduler. I believe when you are using MMM-ModuleScheduler, MMM-NotificationTrigger might not be needed.

        1 Reply Last reply Reply Quote 0
        • uros76
          uros76 @sdmydbr9 last edited by

          @sdmydbr9 perhaps off-topic, perhaps an idea. I have homeassistant which does thse kind of announcememnts daily. It’s connected with my alexa (works also with google). I know it’s not related to MM but still, it works without the need for much coding and it’s quite modular for controlling various elements of my home

          My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

          1 Reply Last reply Reply Quote 0
          • 1
          • 2
          • 2 / 2
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy