使用Windows IOT Core从Raspberry Pi获取CPU温度

时间:2016-09-30 14:00:25

标签: powershell raspberry-pi windows-iot-core-10

有没有办法从带有Windows 10 IoT核心的Raspberry Pi获得CPU温度,就像你可以在Raspbian中运行“vcgencmd measure_temp”一样?不幸的是,Windows Dashboard App Manager“SystemPerformance.htm”仅显示CPU性能,而Windows IOT Core的PowerShell不包含在此页面上运行脚本的“Get-WmiObject”Cmdlet:https://gist.github.com/jeffa00/9577816。还有其他选择吗? :(

2 个答案:

答案 0 :(得分:0)

我认为WMI cmdlet不存在,但CIM cmdlet是。我也不确定你需要的WMI类是否存在。但是使用CIM cmdlet看起来像这样:

$t = Get-CimInstance MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"

答案 1 :(得分:0)

也许您可以尝试Open Hardware Monitor Report这是一个开源软件。 Get CPU temperature in CMD/POWER Shell