MMM-Assistant icon indicating copy to clipboard operation
MMM-Assistant copied to clipboard

Implement a request counter to keep track of free usage

Open E3V3A opened this issue 6 years ago • 0 comments

I suggest we implement a request counter to keep track of the number of GA requests that has been made, so that the users do not exceed their free quota of ~240 requests/month.

When the GA request is understood and processes, it returns a done:true, that we could use.

[ASSTNT] GA Transcription:  { transcription: 'Make me a sandwich',  done: true }

This value need to be:

  • saved upon module shutdown to the file ./assets/googleRC.dat.
  • saved within module for conversation restarts, and remote MM connections.
    gRQC = this.googleRequestCounter
  • shown updated under microphone icon after each successful completion when config option:
    showGRC: true.

E3V3A avatar Mar 26 '18 15:03 E3V3A