Your home at your fingertips

Voice Usage Statistics

Home >> Node-RED App Library

This flow allows collecting data from the voice command usage. The data will be stored in a file on the system. The file can be downloaded, the format is JSON file.

These steps show how to add new flow to collect voice command usage data.

 

Step 1 : Download the flow via the URL below

To place the flow in the Node-Red, first download the flow and import it by clicking the menu on the top right.

Select the json file. The flow should now appear in Node-Red.

Click Save to save the new flow.

Step 2 : The statistic’s file

The statistic’s file is automatically created, but optionally you can inject manually to re-create/empty it. Click on the blue icon.

 

 

As alternative, enable “inject once after 3 seconds…”, if you do not wish to keep the file (automatic injection is disabled by default).  In this case, you can skip to step 4 as the file will be deleted every 24h and compression is unnecessary.

Step 3 :  Compress file in an interval of time (Optional, not recommended – unless you know what you’re doing)

The statistics file may need to be compressed to avoid excessive disk usage. The compressed files are kept for 7 days. To activate automatic compression, inject manually (second from the top) . Click on the blue icon.

This feature is based on logrotate, be sure to understand how it works before pressing the button…

 

Step 4 : Test and see how it works

You can now try some voice commands how it works in the user interface http://192.168.X.X:1880/ui. The voice commands that were heard and understood by the system will be kept in the statistics file. Select ‘STATISTICS’ from the menu, see below. The user interface should be automatically updated when a command is recorded (Firefox tested OK).

 

Download the statistics file by clicking on the link ‘Download statistics file’.

 

Download Code: voice-usage-statistics

How-to import: Video Tutorial