
energy hunt
Raspberry Pi task checklist:
sudo ln -s /home/pi/web /var/www/ (this negates need to edit 000-default)
scp pi@192.168.3.212:/var/www/index.html /Users/admin/Desktop
copy files TO raspberry pi:
scp /Users/admin/Desktop/installpf2.txt pi@192.168.3.212:/home/pi/
Install appletalk:
sudo apt-get netatalk
After netatalk is enabled, create a directory in /home/pi:
mkdir /home/pi/www
chmod 777 www
then go to
/etc/apache2/sites-enabled/
look for
000-default
sudo nano 000-default
replace
/var/www/
with
/home/pi/www/
do this twice.
Now, we can upload content to the server from afp
to enable directory listing, alter the name of index.html to index2.html
-------
Optional: VNC installation
sudo apt-get install tightvncserver
run: tightvncserver
create control and view passwords (8)
start VNC server from terminal:
vncserver :0 -geometry 1024x768 -depth 24
Client: can be iTeleport or free installer at tightvnc.com
n.b. port may be 5900, 5901, 5902, scan to determine
-------
PiFace installation:
in text editor, create file install.txt:
sudo apt-get install -y python-dev python-gtk2-dev git
pushd ~/
git clone https://github.com/thomasmacpherson/piface.git
pushd piface/python
sudo python setup.py install
popd
sudo piface/scripts/spidev-setup
popd
sudo apt-get update
upload the file install.txt to your home directory /home/pi/
run bash install.txt
sudo shutdown -r now
test with this script:
python /usr/share/doc/python3-pifacedigitalio/examples/blink.py
python3 /usr/share/doc/python3-pifacedigitalio/examples/simplewebcontrol.py
Go to IP address:8000 for web interface
http://piface.github.io/pifacedigitalio/simplewebcontrol.html
http://piface.github.io/pifacedigitalio/example.html
PIFace Control and Display 2 installation (CAD)
To use the PiFace CAD you need to install the software that runs it.
Install the CAD software with the command
sudo apt-get install python3-pifacecad
This will ask you a couple of questions, to proceed enter Y
To use PiFace CAD, you should reboot your Pi
sudo reboot
Once you have installed the PiFace CAD software you can display our system info example using the buttons and LCD screen on your PiFace CAD
First move into the PiFace CAD examples directory
cd /usr/share/doc/python3-pifacecad/examples
Now run sysinfo using the following command
python3 sysinfo.py
Something like the following should appear on your PiFace CAD screen
The top line is displaying your local I.P. adrress. The left side of the bottom line is displaying the RaspberryPi's processor's temperature, and the right side displays the current memory usage. press Ctrl C to exit the program.
To install the media player that piface radio uses, enter the command:
sudo apt-get install mplayer
enter y when prompted.
Unzip the piface radio example, with the command:
sudo gunzip /usr/share/doc/python3-pifacecad/examples/radio.py.gz
Run the PiFace radio with:
python3 /usr/share/doc/python3-pifacecad/examples/radio.py
Fun links:
Part two: phidgetsconnections
basic startup with NOOBS
connection with HDMI (temporary)
connection with ssh
web page setup
wifi setup
advanced topics: pi Face interface I/O board
Part three: arduinobasic I/O with sensors (light, temp, etc.)advanced I/O with servoswebcams
To prepare, for class Monday 10.29.14, please read these two articles:basic setupcommand line setupnetwork setupprogramming examples
HTML
Pico
http://physics.hpa.edu/users/stinson_kenji/weblog/16941/Notes.html
Advanced Commands
SSH/Traceroute
http://physics.hpa.edu/users/chen_ivan/weblog/93f01/Command_Reference.html
IP Net Monitor
http://physics.hpa.edu/users/balbo_luigi/weblog/37953/Computer_programming_notes_119.html
OSAScript
http://physics.hpa.edu/users/bleckel_bo/weblog/91c4b/12213.html
Using a remote computer
Directory Navigation
http://physics.hpa.edu/users/balbo_luigi/weblog/9de95/Computer_programming_notes_123.html
Wired and Wireless
CAT 5 - Patch cords
http://physics.hpa.edu/users/balbo_luigi/weblog/b4b03/Computer_programming_notes_213.html
Bullet and various antennas
http://physics.hpa.edu/users/balbo_luigi/weblog/002f3/Computer_programming_notes_220.html
Hunting the antenna
http://physics.hpa.edu/users/arakawa_kazu/weblog/f4ae5/UBNT_Scan_Results.html
Energy Systems - Sensor Hunt
http://physics.hpa.edu/users/stinson_kenji/weblog/8a9d9/Energy_Lab_Sensors_.html
During this course, it's absolutely advisable to take advantage of the unique benefits of using the weblog, as it's a limitless source of knowledge and bonus grades, with a constant and efficent use of this tool, you will find yourself on the top of the game , enjoy this incredible course and entertain yourself shutting down the computers of your friends.
textutil -convert html file1.doc
with drag and drop from finder