Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New stats for disk usage #126

Open
autourdupc opened this issue Oct 17, 2024 · 2 comments
Open

New stats for disk usage #126

autourdupc opened this issue Oct 17, 2024 · 2 comments

Comments

@autourdupc
Copy link

autourdupc commented Oct 17, 2024

Hello Patience.

I'm running last version on Pi Zero 2W.

As I told you I wanted to play with RPI-ECU.

For a first time, I had to understand the code you did and remember programing languages (I'm not working any more in software development).

I'm pleased to give you some files I created based on your good job. It permits for me to understand Influx database and Chartjs basic rules.

This extension to your job do:

  1. Collect every 6 hours data disk usage and put them in a database
  2. Using lbo_info in protected mode, you can display a dynamic info page refreshed every seconds (you can then see the CPU usage and temperature in real time)
  3. Have charts refreshed every 112 secondes to see disk usage variation for the last past 3 month

I made 4 files that should be stored into their respectives paths
/var/www/html/chartjs/lbo_chart_disk.php
/var/www/html/chartjs/lbo_chartdata_disk.php
/var/www/html/protected/lbo_info.php
/usr/lib/cgi-bin/ecu/lbo_sysinfos.sh

Need to sudo chmod +x /usr/lib/cgi-bin/ecu/lbo_sysinfos.sh

Also need to create a cron job :
sudo crontab 0 */6 * * * /usr/lib/cgi-bin/ecu/lbo_sysinfos.sh
and launch it manually one time via sudo /usr/lib/cgi-bin/ecu/lbo_sysinfos.sh

Replace in you menu the call to "info.php" by "lbo_info.php"

After 6 hours, you will have collected one more set of data for disk usage.

Here are the files
lbo_rpi-ecu.zip

image

image

Have fun !

@patience4711
Copy link
Owner

Thanks, you played a lot. Very nice. I am not going to implement this because i don't see the need for it. This is more like nice to have (as some other information too). Maybe you can publish a fork.
Keep up the good work.

@autourdupc
Copy link
Author

Rhhhhaaaaaa !
I found this so... Funny !

I'll try to do better the next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants