SM RaspberryPi

From Seamonster
Jump to: navigation, search

I got the Make Raspberry Pi "starter kit". Flashed the SD card (doing it from Linux, remember to dd of=/dev/sdb (not /dev/sdb1) -- that tripped me up for a few minutes). It boots aok. It uses dhcp by default. I did an "apt-get update ; apt-get upgrade" first.

apt-get install:

  • tcsh
  • emacs
  • openvpn openssl
  • screen
  • wput
  • motion (just on the mgvcpi -- needed for image capture, pushing images, directory structure, etc...)
  • mplayer
  • ffmpeg

I have to start motion by hand (it starts up in /etc/init.d/motion but it doesn't start correctly.. I have to /etc/init.d/motion stop and then start it up (in a screen session)).

Also, on seamonsterak.com I have to "hand make" the directories for month/day/etc. Gotta fix this too!


Got the first pi configured and sent off to MGVC. Now have the second pi at home. Goal: play w/ serial for Campbell, play with motion and video (USB-Live2) for meteor camera / MGVCRock glacier camera.

Got the EDIMAX EW-7811Un 802.11b/g/n/ working with home WPA2 wifi network! Now doing "apt-get update ; apt-get upgrade"

also added:

  • apt-get install python-matplotlib python-mpltoolkits.basemap python-mpltoolkits.basemap-data

Had an issue w/ USB-Live2 with USB bus power. I'm ssh'ing in, so I disconnected the keyboard/mouse and plugged in USB-Live2 and all looked ok (according to dmesg).

Heavner 23:04, 28 May 2013 (PDT) No joy with the USB-Live2. Couldn't get a "non-blue screen" image. Try again (with the next pi!). For now, look at pi with weewx for Cathy Connor/UAS campus Davis Vantage Pro weather station logger and uploader to wunderground.

KAKJUNEA3 is station. Looking at https://github.com/torhve/blag/blob/master/raspberry-pi-davis-vue-weather-station-with-custom-frontend.md and http://www.weewx.com/

First, do "apt-get update ; apt-get upgrade"

sudo apt-get install python-configobj 
sudo apt-get install python-serial
sudo apt-get install python-cheetah 
sudo apt-get install python-imaging 
sudo apt-get install python-psycopg2

sudo apt-get install python-dev
sudo apt-get install python-pip
sudo pip install pyephem

wget -O weewx.tar.gz http://sourceforge.net/projects/weewx/files/weewx-2.1.1.tar.gz/download
tar xvfz weewx.tar.gz
cd weewx*
sudo ./setup.py install

wget http://hveem.no/weewx-2.1.1.postgresql.patch ; patch -p1 < weewx-2.1.1.postgresql.patch

cd /home/weewx
sudo chown -R pi /home/weewx 

emacs weewx.conf

configure open-vpn: 10.8.1.122 uaswxpi -- get munin going -- check, got munin working..

Tried:

 
pi@raspberrypi ~/weewx-2.1.1 $ ./bin/config_vp.py weewx.conf --set-interval 60

serial.serialutil.SerialException: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

Maybe just because the USB/Vantage Pro logger isn't plugged in? (pi in Los Alamos, Vantage Pro in Juneau...)

sudo cp /home/weewx/start_scripts/Debian/weewx /etc/init.d 
sudo chmod +x /etc/init.d/weewx 
sudo update-rc.d weewx defaults 98 
sudo /etc/init.d/weewx start

I think uaswxpi is all ready to go to Juneau... Sent it end of May, 2013. It is online. Vantage Pro plugged into USB. Now:

raspberrypi:/home/weewx# bin/config_vp.py --info weewx.conf
Querying...
Davis Vantage EEPROM settings:
    
    CONSOLE TYPE:                   VantagePro2
    
    CONSOLE FIRMWARE:
      Date:                         Apr 10 2006
      Version:                      <Unavailable>
    
    CONSOLE SETTINGS:
      Archive interval:             300 (seconds)
      Altitude:                     87 (foot)
      Wind cup type:                large
      Rain bucket type:             0.2 MM
      Rain year start:              1
      Onboard time:                 2013-06-18 00:56:31
      
    CONSOLE DISPLAY UNITS:
      Barometer:                    mmHg
      Temperature:                  degree_10F
      Rain:                         inch
      Wind:                         mile_per_hour
      
    CONSOLE STATION INFO:
      Latitude (onboard):           58.4
      Longitude (onboard):          -134.6
      Time zone code:               3
      Use manual or auto DST?       MANUAL
      DST setting:                  OFF
      GMT offset:                   -8.0 hours
      Use GMT offset or time zone?  GMT_OFFSET
        
    RECEPTION STATS:
      Total packets received:       5589
      Total packets missed:         37
      Number of resynchronizations: 1
      Longest good stretch:         1738
      Number of CRC errors:         17
      
    BAROMETER CALIBRATION DATA:
      Current barometer reading:    0.000 inHg
      Altitude:                     87 feet
      Dew point:                    255 F
      Virtual temperature:          59 F
      Humidity correction factor:   23
      Correction ratio:             1.000
      Correction constant:          +0.000 inHg
      Gain:                         1528.000
      Offset:                       17819.000




pi3

apt-get install tcsh emacs screen

apt-get install openvpn openssl munin

apt-get update ; apt-get upgrade