I'm replacing an old Windows 2000 laptop with 196kB of memory with a laptop running Linux. (Win 2000 will run happily in 196kB of memory - the max this laptop can run.)
It monitors electricity consumption using a CurrentCost EnviR and uploads the data to PVOutput.org
At the moment, using Terminal, I run these commands:
minicom -D /dev/ttyUSB0 -b 57600 (sets USB port 0 to 57600 bps for the EnviR serial data)
cd /pvoutput-install/bin
chmod 755 pvoutput.sh (sets pvoutput.sh permissions to executable)
./pvoutput.sh (runs the script file)
I tried adding them to the rc.local file but I'm not sure that's correct or even if it's working. If I subsequently try the minicom command, I get told the port is locked.
This is what I have in the rc.local file:
#!/bin/sh -e
#
# rc.local
minicom -D /dev/ttyUSB0 -b 57600
cd /pvoutput-install/bin
chmod 755 pvoutput.sh
./pvoutput.sh
exit 0
If I can't work this out, I'll go back to Windows. The learning curve on Linux is quite steep. What's easy to do in Windows can be a pain in Linux. The reason I haven't gone back is that the laptop, currently loaded with Linux, is simply too slow** when Win XP SP3 is installed - also I'd like to minimise the vulnerability of my network by not running no longer supported versions of Windows.
** Too slow = up to 30 seconds to recognise a mouse click. And it crashes regularly. The laptop originally came with Win XP SP1 and cost me over $2K when I bought it new! It was quick back then.

I hate throwing usable stuff out. This laptop will have no other duty other than to monitor power consumption.
Bookmarks