Fitlet Temperature and CPU Frequency Monitoring App

Application notes using fitlet. Credit goes to user Hassellbear for publishing more than enough cool application notes to justify a dedicated sub-forum.

Moderator: hassellbear

Post Reply
hassellbear
Posts: 106
Joined: Mon May 28, 2012 12:25 pm

Fitlet Temperature and CPU Frequency Monitoring App

Post by hassellbear »

FitMon.pl is a simple Perl script for monitoring Fitlet's CPU Temperature, SSD Temperature, CPU Frequency Governor Settings, and CPU Frequencies. You can download it here:

https://github.com/hassellbear/Fitlet-Monitor
FitMon.png
FitMon.png (51.13 KiB) Viewed 11095 times
The dependencies are:
1. perl
2. perl-tk

There are a couple of ways you can execute this app from the command line.

1. Without execution permissions

~$perl FitMon.pl


2. Assigning execution permissions

~$chmod +x FitMon.pl
~$./FitMon.pl

FitMon is a derivation of similar apps used for monitoring Compulab's Utilite and Utilite2 computers.

Notes:
1. The code could be better.
2. There are other (and probably better) ways to accomplish the same thing.
3. Other parameters can be added - I included those I need at this time.
4. Average CPU Frequency is computed over entire Up Time period.
5. App was written for 4 core processors. For 2 core processors, comment out or delete all code for cores 2 & 3. (Cores are numbered 0,1,2, & 3)


Hopefully, this app will be useful for someone. Please let me know if you find bugs, errors, or omissions.

Best Regards - hassellbear

Post Reply

Return to “Cool stuff with fitlet”