GithubHelp home page GithubHelp logo

esctabcapslock / battery_record Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 108 KB

컴퓨터의 베터리를 기록하고, 웹으로 시각화한다.

HTML 6.78% JavaScript 71.40% C 21.82%
front-end nodejs clang svg back-end

battery_record's Introduction

Battery_record (베터리 기록)

목적

  • 베터리가 갑자기 빨리 닳는 현상이 발생함
  • 현상에 대해 잘 알기 위해 만들었음.

구현

배터리잔량.js

  • node.js로 실행됨.
  • node.js에서 WMIC PATH Win32_Battery Get EstimatedChargeRemaining cmd 명령어를 이용해 현재 배터리 값을 받아옴.
  • 이를 바이너리로 bt.dat에 저장한다.
  • 클라이언트의 요청이 있으면
  • 다시, bt_backup.dat의 파일을 range.exe를 통해 읽어 전송

range.c (exe)

  • bt_backup.dat 를 읽는 용도.
  • 명령법: [로그출력: p, 아니면: n] [처음 유닉스시간/1000] [끝 유닉스시간/1000]
  • 요청할 때마다, 실행되게 만들었더니, 느리다...

클라이언트 (./asset)

실행화면

  • 클라이언트에서는 이를 바탕으로 데이터 시각화
  • 키보드 키, 또는 →↓↑← 버튼으로 범위를 움직일 수 있다.

battery_record's People

Contributors

esctabcapslock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.