In the meantime, if you just want a bit of fun, you can add the following to any of your existing python files in VC that are set to load when VC first loads (e.g. the weatherDay.py python file).:
import clr
clr.AddReference("System.Management")
from System.Management import ManagementObject
def CPUload():
usg = ManagementObject("Win32_PerfFormattedData_PerfOS_Processor.Name='_total'")
load = str(usg["PercentProcessorTime"])
return load
#see http://www.ironpython.info/index.php?title=WMI_with_IronPython for other system info examples
If you're not using any python scripts yet, save the above as something like cpu.py in your \PY folder, and then create a VC command to load it (as per other examples on the forum).
Then, the following command provides a bit of CPU load chitchat -- mostly for entertainment value. Not particularly practical.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.7-->
<command id="332" name="Jarvis, how are you feeling" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>PY.ExecString</cmdType>
<params>
<param>result=CPUload()</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)<(B)</ifType>
<ifParams>{LastResult}&&40</ifParams>
<then>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>Currently I'm taking it easy, thanks.|Pretty much chillinn -- most of the time. |No worries. I'm A-OK.</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>Frankly, I've seen lighter loads.|Try to take it easy, would you?|Dude, yer killin' me.</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<action>
<cmdType>VC.Pause</cmdType>
<params>
<param>400</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>CPU usage is at {LastResult}%.</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Jarvis, how are you feeling</phrase>
</command>