Jump to content

Welcome, Guest!


  • Content count

  • Joined

  • Last visited

  • Days Won


drewibbo last won the day on September 29 2013

drewibbo had the most liked content!

Community Reputation

2 Neutral

About drewibbo

  • Rank
  • Birthday 11/06/1979

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Worthing, UK
  • Interests
    Anything Pi :D
  1. So! You have received your Raspberry Pi or other Linux based computer and are now wondering what to do with it… Well don’t fret. I was thinking the same thing when I got mine. After I had visited the Raspberry Pi website and installed the Debian “Wheezy†Operating System (OS) onto my Class 10 8Gb SD card I was ready to go… Or was I??? Being a hardened Windows user myself, I was a little daunted when faced with command lines. Here are some useful commands that have really helped me. To Update your Debian “Wheezy†or other Linux OS software… sudo apt-get update sudo apt-get upgrade Start the graphical Interface (Linux version of Windows)… startx Find the IP (internet protocol) address of your Pi… Next to the wlan0 entry you will see inet addr. This is the IP address of your Pi… sudo ifconfig Make a file executable (means you can run it in a terminal window)… sudo chmod 755 /home/pi/path_to_file/file.sh Change the current directory… cd /home/pi/name_of_directory/ Open a file in a text editor… nano /name_of_folder/name_of_file.txt Check how much free space you have… Check how much free space you have… List directories & files recursively to a .txt file… ls -1tr -l -R --group-directories-first | grep -v files > filedate.txt See how long your Pi has been on for… uptime Search for text in files (recursively)… grep -ril "TEXT TO FIND" /path/to/search List all installed programs to a text file… dpkg --get-selections > installed_progs_04-05-2013.txt List all directories recursively to a file… ls -l -R | grep ^d > filedate.txt 
  2. Problem with web server

    Have you tried setting the permissions for the directory in question. Open a terminal and type the following: chmod 755 /mnt/media/music I might be wrong but you may also need to change the actual link slightly too. Try the following: href="../../mnt/media/music" The "../" being the relative position of your /var/www directory to your /mnt directory. Andy
  3. Hi -) from Denmark Esbjerg

    Hi and welcome! You project sounds interesting. Will be looking out to see how it turns out. Keep us updated. Andy.
  4. Help with a Python Script?

    Hi, if i understand your question correctly, all you need to do is create the folder for Google Drive and ensure the settings are the same in the config file. Then, as stated, use the Motion code to upload it automatically upon completion of the file. I presume the script files must be executed from within the Google Drive folder. Hope this helps... Andy
  5. please help

    Hi, You could try overclocking your Pi. This will allow you more processing power that might help. From a terminal type: sudo raspi-config You will now be presented with the following menu: Choose the overclock section and select one of the options. Reboot and you should notice a difference with any luck. Andy.
  6. Pi's all round

    Excellent. Sounds like you have a bit of work ahead of you. I currently have a webserver running on my Pi using Apache2. It seems to be going very well. Andy
  7. Pi's all round

    Blimey...! That second paragraph sounds a little tricky. What software do you intend to use? As a matter of fact... what imaging device do you also intend to use? Hope it all works out for you. Andy
  8. Installing WiringPi To make use of the Raspberry Pi's gpio pins for hardware testing I nearly always use the wiringPi library to communitcate with the gpio pins. This set of libraries was designed by Gordon at <a href="https://projects.drogon.net/raspberry-pi/wiringpi/" target="_blank">Gordons Projects.</a> It offers an easy way to utilise the gpio outputs and inputs on the Raspberry Pi. To install, open a terminal window and type the following: git clone git://git.drogon.net/wiringPi Once downloaded, to build the libraries, type the following: cd wiringPi./build That's it! Easy peasy! Lets now see how it works. We first need to wire up an LED to our breadboard. See this diagram for instructions on how to do this. As you can see we have connected the LED to actual pin 11 on the Raspberry Pi. This, in wiringPi terms, is gpio 0. The LED is also connected to ground (GND) via a resistor. To power the LED all we do is set the pin as an output. Type the following into the terminal: gpio mode 0 out Then to light it up type: gpio write 0 1 The write command sends current to GPIO 0 (1=send power). To test that power is being sent (if LED doesn't light up) we can type: gpio read 0 If the answer is (1) we know that power is being sent through the pin. If the LED is not lit, just remove from the breadboard and change the orientation of the legs (turn it around). To turn it off simply type: gpio write 0 0 The write command stops current to GPIO 0 (0=stop power). Author drewibbo Category Raspberry Pi Tutorials / Guides / How-To's Submitted 04/26/2013 10:33 AM
  9. Time lapse Webcam With The Raspberry Pi, fswebcam and mencoder A nice easy tutorial now. This one will have you making your own time lapse movies in minutes using a button to start the camera. I will also show you how to encode them into a short movie. View my sample video here. Here is a list of things that you will need: Rapsberry Pi Debian “Wheezy†Operating System USB webcam (I have used the Trust HD 1080) wiringPi gpio library Download and install the following packages: sudo apt-get install fswebcamsudo apt-get install mencoder To install wiringPi type the following into the terminal: git clone git://git.drogon.net/wiringPi Once downloaded then type: cd wiringPi./build This will install wiringPi on your system. That is the software taken care of. Now lets take some photos as a time-lapse. We have a button attached to wiringPi pin 16 on the GPIO header. Type the following into the terminal: sudo nano timeplapse.sh Copy the following into the file: #!/bin/sh# Time-lapse capture script# Andy Ibbitson 17-03-2013###############################button=16setup (){echo Setupgpio mode 0 out}# waitButton:# Wait for the button to be pressed. Because we have the GPIO# pin pulled high, we wait for it to go low to indicate a push.#####################################################waitButton (){echo "Press the button to begin the sequence ... "while [ `gpio read $button` = 1 ]; dosleep 0.5done}beginCapture (){i=0echo "CAPTURING... [CTRL+C] to cancel..."while [ $i -lt 750 ]do fswebcam -r 1280x720 -S 15 --jpeg 99 -p MJPEG --shadow --title "IbboCam" --subtitle "BN11 1BY Looking North..." --info "Author: Andy Ibbitson" --save photos/home$i.jpg -q gpio write 0 1 sleep 0.01 gpio write 0 0 sleep 0.5 i=$(($i+1))done}setupwhile true;do waitButton beginCapturedoneSave as timelapse.sh and create a directory called “photosâ€. The script will take up to 750 photos and save them to “photosâ€. You can terminate the script early with CTRL+C. Once you have taken all of your photos you can then use encode.sh to make your mini movie: sudo nano encode.sh Copy the following into the file: echo "This script will encode a time lapse movie..."echo "\n"echo "ENCODE THE VIDEO NOW? [y/n]..."read inputmakefiledate=$(date +"%d-%m-%Y-%H-%M")if [ $inputmake == "y" ]; then cd photos ls -1tr | grep -v files > $filedate.txt echo "Enter the desired frame rate of the finished movie (15-20 is normal)..." read frames mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o $filedate.avi -mf type=jpeg:fps=$frames:sc_threshold=-1000000000 mf://@$filedate.txt cd .. echo "\n" echo "Your time lapse movie has been created. It has been saved to the photos directory." rm *.jpg rm *.txt else echo "OK THIS SCRIPT WILL NOW EXIT... Nothing has been done." exitfi And there we have it! Take a look at your time lapse movie. One tip: Clouds make great subject matter as do people. Author drewibbo Category Raspberry Pi Tutorials / Guides / How-To's Submitted 04/25/2013 07:57 AM
  10. Hi everyone :D

    Hello everyone. My name is Andy and I have set up a site of tutorials for the Raspberry Pi. I was completely new to Linux/GPIO etc... and thanks to tutorial sites like this I am now having great fun with my Pi. I aim to get a few tutorials on here very soon, but please visit my site http://andyseasysite.com/ for some basic and intermediate tips on setting up your Pi and also some GPIO/Hardware stuff. Andy

About Us

Bringing you the latest Raspberry Pi news, tutorials and user forum.

The Fruity Computer