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.

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

    Scheduled Pinned Locked Moved General Discussion
    13 Posts 6 Posters 4.8k Views 7 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.
    • S Offline
      suvan
      last edited by

      Hi, is there any way I could set the mirror so that it automatically tell what’s the date, time and current weather at a specific time everyday?

      I’m a total noob in coding but I really hope someone could help me out with this, thank you very much!

      S S cowboysdudeC 3 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @suvan
        last edited by

        @suvan hm… as opposed to what it does now, which is show that date/time and weather ALL the time?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdmydbr9 @suvan
          last edited by sdmydbr9

          @suvan you will need to go deep with ifttt+webhook+Google tts (https://forum.magicmirror.builders/topic/10917/guide-control-mm-via-google-home?_=1630403716372)

          1 Reply Last reply Reply Quote 1
          • cowboysdudeC Offline
            cowboysdude Module Developer @suvan
            last edited by

            I’m confused…doesn’t it already do this?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              suvan @cowboysdude
              last edited by

              @cowboysdude Sorry, what I meant was tell the date, time and weather by using voice output. Just like how we ask Google/Siri what’s the date, time or weather but instead in my case I want it to automatically tells instead of needing to ask.

              1 Reply Last reply Reply Quote 0
              • S Offline
                suvan @sdetweil
                last edited by

                @sdetweil Not display, but tell as of using voice output to tell the date, time and weather at a specific time in a day. Sorry my question wasn’t really clear.

                S S 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @suvan
                  last edited by sdetweil

                  @suvan there is no built in voice output in MagicMirror, but the default modules do broadcast their status constantly, so another module COULD listen for those events and use some voice output service to speak…

                  I have not seen a module like that

                  the 3rd party list
                  https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules

                  has modules hat can speak … but depend on other modules to send requests to do that

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdmydbr9 @suvan
                    last edited by

                    @suvan I have a set up exactly as you have described. I’m using ifttt to send an alert or notification at a specific time and MMM-Googletts module reads out the messages which I have preset in the ifttt. You can even tell if when it’s going to rain or when there’s a breaking news.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      suvan @sdmydbr9
                      last edited by

                      @sdmydbr9 Do you need Google assistant module for this to work?

                      S S 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @suvan
                        last edited by sdetweil

                        @suvan no. it is timed, from IFTTT (If This Then That), and then uses GoogleTTS ( Text To Speech) to announce the text sent

                        I don’t know what catches the IFTTT event notice, maybe
                        https://github.com/jc21/MMM-IFTTT

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          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.

                          uros76U 1 Reply Last reply Reply Quote 0
                          • M Offline
                            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
                            • uros76U Offline
                              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

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 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