Giter Site home page Giter Site logo

resmon's Introduction

resMon

What is it?

resMon is relativly simple project with Arduino and OLED screen with small custom python code, that displays you PC usage (CPU, RAM and up to 2 harddrives´s free space). This is how it looks:

resMonIMAGE

Installation

Requirements

  • Arduino of your choice
  • 128x64 I2C OLED display
  • bunch of wires for OLED
  • Arduino IDE
  • Python 3.x

How to

It is quite a simple process. First, you'll need to connect an OLED display to Arduino of your choice. Then, download this repo as zip, or clone it. Open the .ino file in Arduino IDE, select your board and COM port and upload the sketch. Take a note of your COM port, you will need to set it later in the Python script. If you want to verify that the sketch is working, open the serial monitor and on 9600 baud, there should be a long string of data sent roughly every second. If that is working, you can now close Arduino IDE and open resMon.py in your favourite text editor. Scroll down to (line 50)[https://github.com/ApplePie420/resMon/blob/master/resMon.py#L50) and set the variable to whatever COM port number you've set in Arduino IDE. That should be everything, all pythons' libraries come preinstalled, so you can run the script: python3 resMon.py

Arduino

I chose Arduino over countless other platforms because almost everyone own one, and if not, it can be bought for really cheap. Its programming language may not be the fastest and most reliable, but its really simple to use and understand and it have giant community and library support. I used default wire.h library with u8glib. I paired it with chinese 128x64 OLED display interfacing throught I2C bus, to keep simplicity. Thus you can utilize Arduino Pro Micro, an OLED display, 4 wires and custom 3D printed case to create really tiny and cute USB powered PC usage monitor!

Python

I created very simple python code using pySerial and psutil libraries to create simple, not demanding software that gathers CPU and RAM usage alongside with free HDD/SSD space counter and send it to Arduino via serial interface.

Help me

Feel free to fork it, tweak it, fix it, do stuff. If you find a bug or possibility to improve, leave an Issue or comment and I´ll take a look at it :) Almost every line is commented, so there is very close to no way you won´t understand, what is going on. Just take a look...

To-do list

  • 3D Case design LINK
  • Optimize (and proferably clean) the code (actually it was pretty well written from beggining.. open to any suggestions tho)
  • HDDmon
  • Add second screen with temperature readings
  • Plot graphs
  • Make an YouTube video LINK

Libraries, links

u8glib
pySerial
psutil
YouTube Video

resmon's People

Contributors

applepie420 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

kachroll dheiro

resmon's Issues

9999999999999999 in serial databytes

everything works amazingly but the SerialDataBytes constant have this weird string of nines at the place of the ssd percentage i don't know why even tho i looked up in all the corners of the code.
resmon

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.