Read the statement by Michael Teeuw here.
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?
-
@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.
-
@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!)
-
@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?
-
@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 :D
-
@himuura
I’m working on my real job, so in a few days I’ll update. Plz wait for a while. -
@sean said in Magic Mirror ServerOnly:
@himuura
I’m working on my real job, so in a few days I’ll update. Plz wait for a while.Will do mate!! Thanks for the support! You rock!