Read the statement by Michael Teeuw here.
Tell weather, date & time automatically at a specific time.
-
@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.
-
@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.
-
@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-moduleshas modules hat can speak … but depend on other modules to send requests to do that
-
@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.
-
@sdmydbr9 Do you need Google assistant module for this to work?
-
@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 -
@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. -
@suvan
I think it’s possible withMMM-GoogleTTS
,MMM-NotificationTrigger
andcron
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 useMMM-ScriptScheduler
orMMM-ModuleScheduler
. I believe when you are usingMMM-ModuleScheduler
,MMM-NotificationTrigger
might not be needed. -
@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