This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# How to make this work | |
#---------------------- | |
# 1. Install required packages: | |
# sudo apt-get install curl | |
# 2. Copy this file to /etc | |
# 3 .Make this file executable: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Installation: sudo bash -c "wget -P /usr/local/bin https://raw.github.com/gist/5721473/rpi-monitor.sh && chmod +x /usr/local/bin/rpi-monitor.sh" | |
echo() { :; } # comment line to enable debugging | |
apiKey=XXXXXXXX # ThingSpeak channel write API key, put your own | |
freeram=$(free -m | awk '/Mem:/ { print $4 }') | |
freeroot=$(df -BM | awk '/rootfs/ { print substr($4, 1, length($4)-1) }') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
asterisks () | |
{ | |
echo "*********************************************" | |
} | |
header () | |
{ | |
echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
asterisks () | |
{ | |
echo "*********************************************" | |
} | |
header () | |
{ | |
echo |