推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
jun4rui
V2EX  ›  Python

Python 如何获得 Windows 下的 GPU、CPU 传感器信息,然后显示在 Windows 的提示栏?

  •  
  •   jun4rui · Apr 11, 2015 · 8917 views
    This topic created in 4100 days ago, the information mentioned may be changed or developed.

    夏天来了,机器偶尔总有点不利索了,想做一个小的监控程序自己用用。什么鲁大师之类的都不太好用,顺便学习一下Python在Windows下的API之类的

    10 replies    2015-04-11 22:24:11 +08:00
    sandtears
        1
    sandtears  
       Apr 11, 2015
    Python 没把这些东西封装进标准库吧。。
    直接用 ctype 调用 Win32 API 的 dll 来做呗
    geeklian
        2
    geeklian  
       Apr 11, 2015 via iPhone
    调用wmi可以取到数据,但各种传感器,输出的数据都不是标准的...
    所以靠谱的方法是用gpu-z一类软件提供的api
    zhizhuo
        3
    zhizhuo  
       Apr 11, 2015
    跑下题,mac下有Today Script 可以在通知中心用脚本显示状态.
    教程. http://www.makeuseof.com/tag/replace-geektool-entirely-yosemites-notification-center/
    Github https://github.com/SamRothCA/Today-Scripts
    yksoft1
        4
    yksoft1  
       Apr 11, 2015
    感觉要写驱动
    vansje
        6
    vansje  
       Apr 11, 2015   ❤️ 1
    orzfly
        7
    orzfly  
       Apr 11, 2015
    http://openhardwaremonitor.org/ 这个东西可以打开内置的 Web 服务器,然后你可以用 Python 抓他网页拿数据。
    dofine
        8
    dofine  
       Apr 11, 2015
    @zhizhuo 这个会不稳定唉,而且貌似获取不到温度,温度需要结合其它的付费软件。。
    askfermi
        9
    askfermi  
       Apr 11, 2015
    可以用psutil?
    geeklian
        10
    geeklian  
       Apr 11, 2015   ❤️ 1
    命令行输入
    wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value

    popen也好,commands也好,就随便咯。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3093 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 13:32 · PVG 21:32 · LAX 06:32 · JFK 09:32
    ♥ Do have faith in what you're doing.