Commits

Sebastian Bub  committed 3139fe4

readme update

  • Participants
  • Parent commits 5cd19cf

Comments (0)

Files changed (1)

 
+*** A thin java webapp to control your GPIO ports of the RaspBerry Pi using http
 
-*** A thin wrapper to control your GPIO ports of the RaspBerry Pi using http
+rpi-gpio-webapp is a java based web application to control your GPIO ports of your
+Raspberry Pi over http. It is based on documentation 
+http://elinux.org/Rpi_Low-level_peripherals#GPIO_Driving_Example_.28Shell_script.29
 
-rpi-gpio-webapp is a java based webapp to controll your GPIO ports of your raspi
-over http. 
+It is tested with Winstone, but any other servlet engine will probably do, too
 
 Features:
 - You can set every port as input or output
 
 * Starting
 
-1. Install Java, e.g.
+1. Install Mercurial 
+sudo apt-get install mercurial
+
+2. Install Java, e.g.
 sudo apt-get install openjdk-6-jdk
 
-2. Check that you can call java from the command line, e.g.
+3. Check that you can call java from the command line, e.g.
 ~$ java -version
 java version "1.6.0_18"
 OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze1)
 OpenJDK Zero VM (build 14.0-b16, mixed mode)
 
-3. Install Maven2
+4. Install Maven2
 sudo apt-get install maven2
 
-4. Build the project
+5. Get the project
+hg clone https://bitbucket.org/sbub/rpi-gpio-webapp
+
+6. Build the project
 mvn package
+(First build toke me about 4:30 min on raspi (with downloads), second took 3:30min))
 
-5. Get Winstone Servlet Engine: http://winstone.sourceforge.net/
+7. Get Winstone Servlet Engine: http://winstone.sourceforge.net/
+put the jar in the same directory as the start.sh
 
-6. Check the location and name of WINSTONE_JAR in start.sh
+8. Check the location and name of WINSTONE_JAR in start.sh
 
-7. Copy gpio.conf.MUST_BE_CHANGED to gpio.conf and configure it
+9. Copy gpio.conf.MUST_BE_CHANGED to gpio.conf and configure it
 
-9. Start the servlet container
+10. Start the servlet container
 ./start.sh
 
-10. Make a request, e.g. http://raspberrypi:8080/handle?g0=1
+11. Make a request, e.g. http://raspberrypi:8080/handle?g0=1
 
 *** Going productive
 - Make sure you disable simulate mode