Jump to content

Welcome, Guest!

Search the Community

Showing results for tags 'python'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Fruity Forums
    • News and Chat
    • New Members - Say Hello
    • Technical Support
    • Tips/Tricks/Guides/Resources
    • Project Logs!
    • International Fruity Forums

Categories

  • Raspberry Pi Linux Distributions
  • Guides
  • Raspberry Pi Emulation Software
  • Homebrew Software!

Categories

  • Beginners Guide To The Raspberry Pi
  • Raspberry Pi Tutorials / Guides / How-To's
  • Raspberry Pi Server Guides
  • Raspberry Pi OS Installation Guides

Categories

  • Raspberry Pi News

Categories

  • New Features
  • Other

Location


Location


Interests


Biography


Interests


Occupation

Found 8 results

  1. I've been working on a web site framework called Pyplate for over a year now. It's finally ready for beta testing. You can download it here: http://www.pyplate.com/install-pyplate Pyplate has been tested on Raspbian with Apache. Other web servers will be supported in the near future. My CMS is much smaller and simpler than Wordpress, so it's ideal for running on a Pi. I use it to power my Raspberry Pi cluster. Pyplate also works on PCs and other devices - anything that can run Linux and Apache. It uses SQLite, and has built in page caching. Check it out, and let me know how you get on with it.
  2. Passionate about Raspberry Pi? Instead of using expensive sensors and shields you can now save time, money and energy by using your smartphone in ways you've never imagined. Have fun while developing prototypes using our tools. With our mobile application you can now use your smartphone's sensors to control your Raspberry Pi and simulate new prototypes without having to buy all those sensors and shields. We are tring to validate our idea so if you think this is a mobile app that you'd like to use please subscribe here: http://signup.bucketshield.co/ It would really help us a lot if you'd fill this form here: https://docs.google.com/a/mobicedo.com/forms/d/1f4WJ-BbsXbUVvu344ha0GVGDayOAgFuxB2syzYqS8hw/viewform Thanks
  3. Passionate about Raspberry Pi? Instead of using expensive sensors and shields you can now save time, money and energy by using your smartphone in ways you've never imagined. Have fun while developing prototypes using our tools. With our mobile application you can now use your smartphone's sensors to control your Raspberry Pi and simulate new prototypes without having to buy all those sensors and shields. We are tring to validate our idea so if you think this is a mobile app that you'd like to use please subscribe here: http://signup.bucketshield.co/ It would really help us a lot if you'd fill this form here: https://docs.google.com/a/mobicedo.com/forms/d/1f4WJ-BbsXbUVvu344ha0GVGDayOAgFuxB2syzYqS8hw/viewform Thanks
  4. Installing OSC on Pi

    I need to enable TouchOSC to communicate with a Rasberry Pi. So first step is getting OSC installed on the Pi. To use 'SimpleOSC' http://www.ixi-software.net/content/body_backyard_osc.html do I first need to install PyOSC? Is there a tutorial anywhere that walks thru the process for a Python-linux newbie?
  5. On my web site at raspberrywebserver.com, I've written tutorials about web programming and programming with databases in Python. I want to build on the ideas in these tutorials to do something a little more complicated. To that end, I built a Raspberry Pi temperature logging system. It consists of two scripts. One is triggered by cron which reads the temperature from a DS18B20 sensor, and logs it in an SQLite database. The other script is a web UI that displays records from the database using Google charts. You can see a screen shot here:
  6. I just got my RPI and having hard time to select an OS. my main goal is to use it as an xbmc machine..but nonetheless, I wish to be able to run python scripts, compile c/c++ code (less needed), having the ability to share nfs/smb over the net & install transmission package on it. Which OS will give me best xbmc usage together with these wanted features?
  7. I am trying to get my motion videos to upload to google drive account. I have never used linux or python before and learning from scratch is slow. Can anyone give me some help on how/where to plug the file and path into the script that I found here? http://jeremyblythe.blogspot.co.uk/2012/06/motion-google-drive-uploader-and.html any guidance would be greatly appreciated!
  8. Thought I would share some of my Raspberry Pi tests. Rather than being project oriented, most of my tests have had an emphasis on specific sensors/devices and simple Python programs to demonstrate their functionality. This was mainly intended to be a personal log of my Raspberry Pi lab tests, but if anyone can benefit or wants to add their observations so much the better. Hardware: Raspberry Pi, Gertboard (not essential to test) and Parallax Motion Sensor #555-28027 (Radio Shack 276-135). While there are library modules (wiringPi and RPi.GPIO for example) available that handle interrupts, I took a more direct approach for this test and used the poll function in the GPIO facility in Linux. For the sake of clarity, I will first show using this method to check the state of a GPIO pin without the benefit of using an interrupt. Before running the program, a user interface must be created for GPIO25 by executing these statements from the prompt: sudo su echo 25 >/sys/class/gpio/export # create a user interface for GPIO25 echo in >/sys/class/gpio25/direction # configure GPIO25 as an input This creates a directory with several files representing the configuration and state of GPIO25. For example, the 'value' file will contain a '0' if GPIO is low or an '1' if GPIO is high. The 'direction' file contains 'in' after GPIO25 is created. We could set the contents of any of these files, but their default values are suitable for this next test. I am using the same Parallax motion sensor tested earlier, except BUF1 is jumpered to GPIO25 on my Gertboard. As before, the motion sensor outputs a high for 3 seconds when it senses motion. Otherwise its output remains at low. gpio25-read.py import time f = open('/sys/class/gpio/gpio25/value', 'r') # create a read file object while 1: f.seek(0) # reset pointer location in file to beginning motion = f.read(1) # read 1st byte of read file object if motion == '1': print('Warning! Motion Detected!') else: print('All is quiet...') time.sleep(1) The above program simply hangs in a loop and reads the pin every second. The downside of this approach is the cpu is given no time to do anything else. Before running the next program using interrupts, we make sure we have created a user interface for GPIO25 by executing these statements from the prompt: sudo su echo 25 >/sys/class/gpio/export # create a user interface for GPIO25 echo in >/sys/class/gpio25/direction # configure GPIO25 as an input echo both >/sys/class/gpio25/edge # configure GPIO25 to recognize both rising & falling transitions gpio25-interrupt.py import time import select import sys f = open('/sys/class/gpio/gpio25/value', 'r') # create a read file object myInterrupt = select.poll() # create a polling object myInterrupt.register(f, select.POLLPRI) # add read file object as a source to satisfy poll requests while 1: myInterrupt.poll() # wait for an interrupt f.seek(0) # reset pointer location in file to beginning motion = f.read(1) # read 1st byte of read file object if motion == '1': print('Warning! Motion Detected!') else: print('All is quiet...') With this method a user would be free to add code putting the cpu to work doing other functions, such as controlling other GPIO pins, performing caculations, etc.

About Us

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

The Fruity Computer

×