@mike-0
Have you considered this? https://github.com/gfischershaw/MMM-Touch
It can define your touch gesture then assign jobs even shell scripts execution.
Read the statement by Michael Teeuw here.
Posts
-
RE: Start and Stop the MagicMirror
-
RE: Connecting Modules to Each Other
@tonkxy
Hmmmm… I cannot understand thesetCurrentWeatherType.Anyway, I recommend you this module; https://github.com/BrianHepler/MMM-WeatherBackground
You need to study how MM module works, at least to train how to use.You don’t need to pull weather info from an external weather API like Darksky. Already there are many modules showing weather info on MM screen and spitting that info out through
notification.For example, default
weathermodule also emit notifications of weather info periodically. All you need to do is catching that notification and consume them in your module.default
weathermodule would emitCURRENTWEATHER_TYPEnotification.
You can catch that notification like this.notificationReceived: function (notification, payload, sender) { if (notification === 'CURRENTWEATHER_TYPE') { console.log(payload) // manipulate payload then extract data what you need. // do your job } }Anyway, Study the above module. That has almost all features you are trying. (except the image source)
-
RE: Blank Screen after New Installment
@rxldavid
You need ‘request’ module. It was deprecated from MM, but your quote of the day module is depending on it.- the best thing is to request module developers fixing it.
- you can install ‘request’ module by yourself
Go to quote of day module directory then;
npm install request -
RE: Connecting Modules to Each Other
@tonkxy
And there be already similar modules. Look inside and study how they did. -
RE: Connecting Modules to Each Other
@tonkxy
Usually some module might spit out some notifications with various data those want to be consumed.
With luck you can gather all data you need from the notifications.Some modules might provide public method functions to interact with other modules.
Some modules might provide WebAPI url endpoints to communicate with world.
Well, even if there exists nothing to use, you can inject or reassign(overwrite) MM module methods for your needs, because MM module is not encapsulated by default.
-
RE: Voice Assistant
@jairojosy
This would be unnecessary worrying, but I have to point these things;- Implementing Google Assistant in a device doesn’t mean you can handle that device with voice commands. The two things are less related.
- For native commanding MM with voice, you need to host
Custom Device Actionsby yourself. (Or you can depend on IFTTT, but somewhat limited features) - To get the benefit of native flawless conversation, you might need
dyanmic or local fulfillment, but in that case Certificated server is needed.
However, whole the experience will probably be interesting and funny. Good luck to you.
-
RE: Voice Assistant
@jairojosy
Ok.
I assume you are using Google Assistant Service SDK with Python library.
You may get the response from Assistant Server asAssistResponse. You can find some member data of that response likeaudio_outorscreen_out, orDialogStateOut.supplemental_display_textor whatever you need.Once you extract the data you need, the next thing you need to do is emit that data into MM. A usual way might be REST-like requesting/responsing. You need to build MM module which can handle HTTP request/response, like
GET http://localhost:8080/MMM-MyGoogleAssistant/message?...I think you can make your python app to request your data through that REST-like URL.Another way might be using MQTT, or websocket messaging. Or if you have some experience, you can execute your python app inside your node module then get the
stdoutas an input stream.I recommend implementing with native MM module by nodeJS instead of external Python thing. but decision is yours.
-
RE: Voice Assistant
@jairojosy
Use already existing module like MMM-GoogleAssistant.
Your python app is not compatible with MM. At least you need to hook the output response then transmit to MM, and also you need to build a receiver module to get and display conversation. I will not say it is impossible, but not so quite simple. Why are you reinventing wheel again? -
RE: Need help with resizing regions
@techlady
Unfortunately, MMM-CalendarExt2 doesn’t respect MM’s default show/hide mechanism, so you need some tweek to achieve your goal with some paging modules.
I’m regretting that I made that way, I thought it was a nice idea at that time. Anyway CalExt2 is going to its life ends due to dying dependencies. So at this moment I have no plan to improve. (Maybe new module instead?)