Coder Social home page Coder Social logo

rpy-monitor's Introduction

Rpy-monitor

A lightweight temperature monitor and stress testing tool for linux, with a headless Raspberry pi in mind.

Features

A python script to render a real-time graph of temperture and CPU frequency vs time.

  • Extremely lightweight and minimal dependencies.
  • Does not need x11 forwarding as the graph is rendered directly to the terminal.
  • Nothing to install on client side!

Installation

Step 1: SSH into the Raspberry Pi (or any headless linux server)

Step 2:

python3 -m pip install plotext
sudo apt install stress
mkdir ~/Rpy-monitor
cd Rpy-monitor
wget raw.githubusercontent.com/thariq-shanavas/Rpy-monitor/main/Rpy-monitor.py

Usage

The script takes two arguments: Duration to monitor and whether to run a stress test. Duration (in seconds) is passed as an integer and the option to run a stress test in parallel is passed as either 0 or 1. If no arguments are supplied, the script runs for 5 minutes and skips the stress test. If only one argument is provided, it is interpreted as the duration to monitor and the stress test is skipped.

For example, the following command runs a CPU stress test for 5 minutes (300 seconds). The graph is refreshed every 5 seconds by default.

cd ~/Rpy-monitor
python3 Rpy-monitor.py 300 1

To simply run the monitor for 60 seconds without stressing the CPU

python3 Rpy-monitor.py 60 0

Tested on Raspberry Pi 4b running Raspbian Lite and my laptop running Arch Linux.

Example graphs

  1. Stress testing Raspberry Pi 4 with heatsink case, overclocked to 2 GHz

    Stress test

  2. What happens if you stick an ice-pack on a Pi?

    Ice pack test

Dependencies

rpy-monitor's People

Contributors

thariq-shanavas avatar

Stargazers

 avatar

Watchers

 avatar  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.