sixbytesunder / custom-motd Goto Github PK
View Code? Open in Web Editor NEWHighly customizable Message of the Day script for Raspberry Pi
License: MIT License
Highly customizable Message of the Day script for Raspberry Pi
License: MIT License
apt-get -s dist-upgrade | tail -n 1
apt-get -s dist-upgrade | grep -Po '^[[:digit:]]+ (?=upgraded)'
apt-get -s dist-upgrade | grep -o '[[:digit:]][[:space:]]not upgraded'
update to
apt list --upgradable | wc -l
sudo rm /etc/motd
is optional. Update readme to say that.wget https://raw.githubusercontent.com/SixBytesUnder/custom-motd/master/motd.sh
$() is prefered as per http://mywiki.wooledge.org/BashFAQ/082
last -2 -a -F
last -2 -a -F | awk 'NR==2 {print $1,"on",$3,$4,$5,$6,$7,"from " $15}'
Last login: pi on Fri Feb 14 20:10:10 2020 from 111.111.111.111.dyn.net
The public IP of the creator is visible in de commit history.
In latest Raspberry Pi OS the path for vcgencmd is not /opt/vc/bin/vcgencmd but /usr/bin/vcgencmd
The temps only display in Celcius and not Fahrenheit.
The weather one can be fixed by switching the URL metric from 1 (celcius) to 0 (fahrenheit)
http://rss.accuweather.com/rss/liveweather_rss.asp?**metric=1** &locCode=$weatherCode
I am not sure how to convert the CPU temp in bash properly.
This is wrong:
City Name = "Stuhlweissenburg, HU" Location = "EUR|HU|HU011|SZÉKESFEHÉRVAR" Country = "Hungary"
It is corrected:
City Name = "Szekesfehervar, HU" Location = "EUR|HU|HU011|SZÉKESFEHÉRVÁR" Country = "Hungary"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.