MagicMirror² v2.6.0 is available! For more information about this release, check out this topic.

Magic Mirror ServerOnly



  • Hi there mates!! Loving the MM project and all the modules!!! Still trying to figure out some of the processes…like for instance, i have MMM-AssistantMk2 configured and working and i have a couple of questions:
    1 - Google Voice Assistant has a 60min capacity before being paid, is alexa a solution?
    2 - I have MM running in serveronly (node serveronly in a raspberry pi 2), is it possible when accessing via browser (on the tablet) to use the tablets microphone instead of the raspberry one? where can i confgure that?
    3 - Is there a way to integrate the MMM-AssistantMk2 to tell, lets say, the temperature that i’m displaying on the page?

    Can anyone shed some light?
    THanks in advance! Let’s keep the innovation running!


  • Module Developer

    It’s Google’s Cloud Speech API that costs money after the first 60 minutes - the Google Assistant API is free (well, the API limits are so high they’re pretty much non-existent).

    I’m using MMM-AssistantMk2 with the MMM-Hotword module and have yet to find any reason to use the cloud speech API - the google assistant API works just fine.

    In regards to your last question, if you’re using the google assistant API through MMM-AssistantMk2 you can get any sort of info that your google assistant has access to normally - eg. if you’re using the Google Home app and have added your thermostat in there, the assistant will be able to give you updates about the temperature.



  • so michael if im using the AssistantMk2 module, i wont get charged right? how can i confirm that? And on the second part, i dont have the google home app, how can it read the system temperature of the mirror? any idea?



  • @michael5r said in Magic Mirror ServerOnly:

    It’s Google’s Cloud Speech API that costs money after the first 60 minutes - the Google Assistant API is free (well, the API limits are so high they’re pretty much non-existent).

    I’m using MMM-AssistantMk2 with the MMM-Hotword module and have yet to find any reason to use the cloud speech API - the google assistant API works just fine.

    In regards to your last question, if you’re using the google assistant API through MMM-AssistantMk2 you can get any sort of info that your google assistant has access to normally - eg. if you’re using the Google Home app and have added your thermostat in there, the assistant will be able to give you updates about the temperature.

    i mean on my action console i see the queries (i think its limited to 500 a day or 60 a minute per user). Is it right? There’s no “limit” for the Google Assistant api? Billing-wise.


  • Module Developer

    @himuura said in Magic Mirror ServerOnly:

    so michael if im using the AssistantMk2 module, i wont get charged right? how can i confirm that? And on the second part, i dont have the google home app, how can it read the system temperature of the mirror? any idea?

    If you set up your Google project according to the instructions in the AssistantMk2 module, you’re only enabling the Google Assistant API - but you can always check the metrics for the Cloud Speech API just to be sure. Go to your project dashboard on the console.cloud.google.com site, click APIs & Services in the navigation to the left, then the Cloud Speech API to see whether you’re actually using any data.

    (No matter what, Google is very nice about giving you tons of warnings before you hit any API limits, so you shouldn’t be worried about suddenly facing a huge bill.)

    What do you mean by system temperature? Are you talking about the actual CPU/GPU temperature of your raspberry pi - like the data displayed by the MMM-Tools module?



  • @michael5r said in Magic Mirror ServerOnly:

    @himuura said in Magic Mirror ServerOnly:

    so michael if im using the AssistantMk2 module, i wont get charged right? how can i confirm that? And on the second part, i dont have the google home app, how can it read the system temperature of the mirror? any idea?

    If you set up your Google project according to the instructions in the AssistantMk2 module, you’re only enabling the Google Assistant API - but you can always check the metrics for the Cloud Speech API just to be sure. Go to your project dashboard on the console.cloud.google.com site, click APIs & Services in the navigation to the left, then the Cloud Speech API to see whether you’re actually using any data.

    (No matter what, Google is very nice about giving you tons of warnings before you hit any API limits, so you shouldn’t be worried about suddenly facing a huge bill.)

    What do you mean by system temperature? Are you talking about the actual CPU/GPU temperature of your raspberry pi - like the data displayed by the MMM-Tools module?

    Yes, something like that. i have mmm-systemtemperature that gives out the temperature of the CPU (/opt/vc/bin/vcgencmd measure_temp) and shows it on the MM screen but i cant quite figure how to make the assistant tell the temp that is on screen. do you have any idea? (a big thank you for all your help mate!)


  • Module Developer

    @himuura
    modify your module to use this method;

    this.sendNotification("ASSISTANT_SAY", "Temperature is XX")
    

    If you want to make it as a response of Assistant Query, use gAction or transcriptionHook. Anyway, your module modification is needed also at that case. (Sorry, MMM-systemTemperature is not made by me)



  • @sean is there any module that you know of that already has this integration?i mean, the assistant replies with the system temperature?


  • Module Developer

    @himuura
    As far as I know nothing. But I can update my MMM-Tools for that purpose.
    What do you need exactly?

    • Alert for dangerous temperature zone? (like over 65 degree warning)
    • Ask temperature by vocal query and get a response from Assistant? (like “How hot is the CPU temperature?” and “It’s 65 degree now”) => But I’ve never thought there is someone who really needs this.


  • @sean Wow sean, i really appreciate it!! Both sound like a tremendous idea! like when my RPI passes a certain threshold of CPU temp or RAM is getting full, the assistant could say something like “[Jarvis] is running hot! Go check it out!” or in case of RAM “[Jarvis] is running out of RAM!”. And it would also be nice if it could respond to the command “System Stats” or just “system temperature”. Is it feasible? Or is it too much work? Thank you for your time @Sean !! Im trying the mmm-tools now 😃