It has been pointed out to me that CAGE has mostly taken their script from Jeremy Blythe’s work here.
A quickie from CAGE Web Design – a Python script to print out some basic system info for the Raspberry Pi. Read the tutorial
It has been pointed out to me that CAGE has mostly taken their script from Jeremy Blythe’s work here.
A quickie from CAGE Web Design – a Python script to print out some basic system info for the Raspberry Pi. Read the tutorial
[…] recantha A quickie from CAGE Web Design – a Python script to print out some basic system info for the […]
Hmmm, not the best example – all it does is get the output of various system commands (so could just as easily be done in Bash) and IMHO the way it mixes up subprocess.check_output() and subprocess.Popen() and os.popen() is a bit “odd”.
And it looks like “import osdef get_ram():” is actually a typo that should be split over two lines. Unfortunately I can’t leave a comment on the original article.
Yeah, I couldn’t either, but I thought it might help someone even if it’s not the best example ever.
This was mostly ripped off from my script here: http://jeremyblythe.blogspot.co.uk/2013/03/raspberry-pi-system-monitor-embedded-on.html but with no link to my site or even a mention. That’s just rude.
Also, I consistently use subprocess.check_output() those other bits were added by someone else.
I had no idea that it’d been ripped off. I’ll add a credit to my blog post, even if I can’t do anything about Cage’s page.