background preloader

How to Make a Raspberry Pi Web Server

How to Make a Raspberry Pi Web Server
Related:  RaspberryRaspberry Pi

RPi-Cam-Web-Interface RPi Cam Web Interface is a web interface for the Raspberry Pi Camera module that can be opened on any browser (smartphones included) and contains the following features: View, stop and restart a live-preview with low latency and high framerate. Full sensor area available. IMPORTANT NOTE: This is for the Raspberry Pi camera only. It's been programmed by silvanmelchior as a client for RaspiMJPEG in 2013. Remember, anyone can create an account on here and add to this wiki. Basic Installation Warning: The installer will replace various files, so backup all your data. See also Addition section for tips on installing from scratch. Step 1: Install Raspbian on your RPiStep 2: Attach camera to RPi and enable camera support ( 3: Update your RPi with the following commands: sudo apt-get update sudo apt-get dist-upgrade Step 4: For Jessie Lite run sudo apt-get install git Clone the code from github and enable and run the install script with the following commands: . !! .

Raspberry Pi temperature logger Ssh to your Pi, and type: > sudo apt-get install apache2 php5 libapache2-mod-php5 If you get an error, type: > sudo groupadd www-data > sudo usermod -g www-data www-data Now to restart the server:sudo service apache2 restart. To see if it installed correctly, on a web browser, type the ip address of your Pi (example, and you should see a page saying "It works!". Now edit the file /etc/apache2/sites-available/default. WSGIDaemonProcess temperature user=www-data group=www-data threads=5 WSGIScriptAlias /temperature /var/www/html/temperature/temperature.wsgi <Directory /var/www/html/temperature> WSGIProcessGroup temperature WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> This tells apache to serve the pages found in /var/www/html/temperature/. You have to edit the file temperature.wsgi if you have placed your files in a folder other than /var/www/html/temperature. And you should alter the line sys.path.insert ... to suit your needs. FL January, 2014

Raspberry Pi No-ip Tutorial Gegevens Categorie: Tutorials Dynamic IP adres? No problem! Note - Its important you create yourself an account and add a host on no-ip before installing the client as you will need your account details as part of the install. Install no-ip client: Create a directory for the client software mkdir /home/pi/noip[ENTER]cd /home/pi/noip Download the client software wget Extract the archive tar vzxf noip-duc-linux.tar.gz[ENTER] Navigate to the archive directoryNote - use 'ls' to check the directory name create when the archive was extracted, it was noip-2.1.9-1 when I installed the client. cd noip-2.1.9-1[ENTER] Compile and installThe client was compiled and installed on the Raspberry Pi, using the following commands: sudo make[ENTER]sudo make install During the install I was asked to proide my login, password and a refresh interval.Run the clientThe client is run using the following command: sudo /usr/local/bin/noip2[ENTER]

How to Overclock your Raspberry Pi - Tutorials Blog Do you want to safely overclock your Raspberry Pi? Here’s how you need to do it. There are a few articles out there on overclocking your Raspberry Pi, and I followed them but it didn’t work. So after some Googling and Stack Overflow work I find the answer, and I’m here to save you some time. Find your current clock speed There are several ways to find out what you Pi is running at currently. cat /proc/cpuinfo After running this you should see the following output: Processor : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : swp half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2708 Revision : 000f Serial : 0000000035dfc68c Note the “BogoMIPS” is at 697.95. cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq Which displays your frequency in Hz, which should be 700000. The best way to see what your Pi is really running is by using the following: vcgencmd get_config arm_freq

Raspberry Pi Way back when the Kinect was first released, there was a realization that this device would be the future of everything 3D. It was augmented reality, it was a new computer interface, it was a cool sensor for robotics applications, and it was a 3D scanner. When the first open source driver for the Kinect was released, we were assured that this is how we would get 3D data from real objects into a computer. Since then, not much happened. We’re not using the Kinect for a UI, potato gamers were horrified they would be forced to buy the Kinect 2 with the new Xbox, and you’d be hard pressed to find a Kinect in a robot. 3D scanning is the only field where the Kinect hasn’t been over hyped, and even there it’s still a relatively complex setup. This doesn’t mean a Kinect 3D scanner isn’t an object of desire for some people, or that it’s impossible to build a portabilzed version. This isn’t the first time we’ve seen a portablized Kinect. The problem facing [Mario] isn’t hardware.

Libnfc - NFC Tools Public platform independent Near Field Communication (NFC) library libnfc is the first libre low level NFC SDK and Programmers API released under the GNU Lesser General Public License. It provides complete transparency and royalty-free use for everyone. This list shows the current supported features. All major operating systems are supported, including GNU/Linux, Mac OS X and Windows. Stable release Stable releases can be found at libnfc download section. Development version git clone Note: If you want all libnfc hardware drivers, you will need to have libusb (library and headers) plus on *BSD and GNU/Linux systems, libpcsclite (library and headers). Under MacOSX, GNU/Linux, *BSD and probably a lot of POSIX systems you can compile development version using: autoreconf -vis . If you want to (re)generate documentation: make doc Third party packages The following sections describe per platform how to install and use libnfc. POSIX systems Manual installation

PiLogger Welcome to Pilogger... Instead of having multiple different code fragments around the site for datalogging I thought a bit of consolidation was in order. So after a number of very rainy days here is PiLogger. There are two versions of it for the raspberry pi, one is a console application to do basic logging and the other a more fully featured GUI running in raspbian including basic graphing. Note this was written on a raspberry pi Rev A so I used SMbus 0 that will need to be changed for users of raspberry pi Rev B to SMbus 1. Both are written in python and can be downloaded here and are open source and provided as is. If you like it and want to donate please do so here Console Application Gui Application PiLogger Gui In order to run the program save the download into a directory of your choice and navigate to that directory in Lx Terminal. At the prompt type in sudo python And after a few seconds you should have a window open like the one shown below 1.

Raspberry Pi - run program at start-up Anyway, I wanted to get my Raspberry Pi to start no-ip dynamic dns service when it started-up, so I wouldn't have to remember to start it every time it was powered up. For details on how to install no-ip on the Pi, see this post. There are loads of ways of running a command at start-up in Linux but my favoured approach is to create an initialisation script in /etc/init.d and register it using update-rc.d. Create script in /etc/init.d sudo nano /etc/init.d/NameOfYourScript The following is an example based on starting up the no-ip service [/usr/local/bin/noip], but change the name of the script and the command to start and stop it and it would work for any command. #! # Carry out specific functions when asked to by the systemcase "$1" in start) echo "Starting noip" # run application you want to start /usr/local/bin/noip2 ;; stop) echo "Stopping noip" # kill application you want to stop killall noip2 ;; *) echo "Usage: /etc/init.d/noip {start|stop}" exit 1 ;;esacexit 0 Make script executable

RPi VerifiedPeripherals Back to the Hub. Hardware & Peripherals: Hardware and Hardware History. Low-level Peripherals and Expansion Boards. Screens, Cases and Other Peripherals. A note about this page: For USB devices, please specify if they required a powered hub Notes 19-Apr-2012: Now that the Model B board is shipping, details added should relate to this board and the default Debian distribution unless stated otherwise. (A) - Relates to model A production board (B) - Relates to model B production board (!) Discuss: If you are adding to a product list it would help clarity if entries are kept/added in alphabetical order. Power Usage Notes Model B Hardware Revisions and USB Power limitsHardware Revision 1.0 The original Model B board had current limiting polyfuses which limited the power output of each USB port to approximately 100 mA. Linux Driver Issues Powered USB Hubs This section has been moved to a separate page. USB Remotes USB Keyboards USB Mouse devices USB Real Time Clocks

Raspberry Pi : The Unofficial Tutorial Advertisement Get to know the world’s favorite $25 computer: the Raspberry Pi. You’ll find tips, tricks and more in this unofficial Raspberry Pi tutorial from MakeUseOf. Whether you’re a current Pi owner who wants to learn more or a potential owner of this credit-card size device, this isn’t a guide you want to miss. Table Of Contents §1–The Raspberry Pi §2–What’s Inside the Pi? §3–What You Will Need for Your Raspberry Pi §4–Setting Up the Raspberry Pi §5–Getting to Grips with the GUI §6–Programming on the Pi §7–Configuring the Pi as a Media Centre §8–Fascinating Uses for the Raspberry Pi §9–Raspberry Pi: A Versatile Mini Computer §10–The Cream on Your Pi 1. You’ve surely heard of the Raspberry Pi: the palm-sized computer with enough power to run servers or media centres complete with retro gaming; with the connectivity to control security systems and enthusiast projects; and with the software tools to encourage the teaching and understanding of programming. It’s also just the tip of the iceberg.