Category Archives: Python

omxplayer play controls / input

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=7987 omxplayer play controls / input   Post a reply 58 posts   Page 1 of 3   123 by alanpich » Sat Jun 09, 2012 9:23 pm I’m working on setting up a mediacentre controlled over http (through a smartphone web interface). Have successfully got omxplayer set up and running to play a video on command from the web server, however i can’t seem to find any way to interact with the player while its running. Does omxplayer have any facility for user input (play/pause/fast-forward/volume etc) via

Raspberry Pi playing a video in loop

http://www.mindemedia.no/wordpress/?p=16 Raspberry Pi playing a video in loop May 11, 2013So there is gonna be an art exibition where i work, its mainly video art, so they will need six projectors showing one piece of video each, and they are all gonna run in loop, all day long. There are several boxes that can play video, and still be cheaper than the mini-mac, but none as cheap as the raspberry pi. So i decided to see if i could make

Install HTPC, Manage your HTPC from anywhere

http://htpc.io/installation.html   Installation Jump straight to: Osx - Windows - Linux Installing HTPC Manager can be really easy but might also cause some problems. The main requirement is you run Python. Python 2.7 is in most cases the way to go. The difficult part is installing the Python Image Library. Python Image Library The Python Image Library or PIL, is used to convert and resize images retrieved from the Xbmc Api. Installing PIL is, depending on your OS, not so easy. This guide should help

Reading and writing from GPIO ports from Python

http://raspberry.io/projects/view/reading-and-writing-from-gpio-ports-from-python/  Raspberry IO Log In Sign Up Reading and writing from GPIO ports from Python Overview 1 2 3 4 5 6 7 Created by: coderanger Published Mar. 13, 2013 This tutorial covers the setup software and hardware to read and write the GPIO pins on a Raspberry Pi running the latest Raspbian operating system. We will showing how to read from a physical push-button from Python code, and control an LED. Related categories: Tutorial Step 1: Install Python development tools Open

HOW-TO:Write Python Scripts for XBMC

http://wiki.xbmc.org/index.php?title=HOW-TO:Write_Python_Scripts_for_XBMC HOW-TO:Write Python Scripts for XBMC This article was originally a copy of a python HOW-TO tutorial was prepared by Nelson Minar. The article have since then been reformatted, restructured, modified and updated several times. Contents [hide] 1 XBMC Python Scripting Tutorial 1.1 Python is not a snake 1.2 Some basic rules – be careful of the snake! 1.3 Always notice the snake behavior 1.4 the real work begins 1.4.1 Window 1.4.2 pad button 1.4.3 add (and remove) text label 1.4.4 init parameters 1.4.5 dialog box 1.4.6 buttons 1.4.7 virtual keyboard 1.4.8 Lists 1.4.9 Screen

Controlling LIRC From the Web

http://alexba.in/blog/2013/02/23/controlling-lirc-from-the-web/ Controlling LIRC From the Web FEB 23RD, 2013 | COMMENTS In this post I will cover how to create a web interface + API for LIRC, the Linux Infrared Remote Control project. I will be using NodeJS and a RaspberryPi in this post, but the ideas generalize to other languages and hardware. This post will serve as Part 3 of my open source universal remote project posts. If you haven’t had an opportunity to read the first two posts, I suggest checking

Raspberry-Pi / SMS Alarm System

https://sites.google.com/site/jfpayeur/raspberrypi Raspberry-Pi / SMS Alarm System Description Here are some information about a little Python Project I’ve made based on a Raspberry-Pi Platform. This is My first Python Project Ever, my code is not super clean, but it works great.   This system send me an SMS and/or Email if my door is open, or if the PIR (passive infrared movement detector) is triggered. This can be easily expanded to 8 or mores zones, or control something else. In my

Gamepad Input in Python

Gamepad Input in Python   http://yameb.blogspot.com/2013/01/gamepad-input-in-python.html I want to be able to command my upcoming Quadrotor with a game controller, so I purchased a Gigaware PC Wired Controller for $17 from Radioshack: Quadrotors are usually controlled with two thumbsticks (4 axes): Left Thumbstick Up/Down: Throttle Left Thumbstick Left/Right: Yaw Right Thumbstick Up/Down: Pitch Left Thumbstick Left/Right: Roll This inexpensive controller seems perfect for what I need it for, and there are some buttons I can use for initialization and other things.

Python tutorial From ZetCode.com

http://zetcode.com/lang/python/ Python tutorial This is Python tutorial. In this tutorial, you will learn the basics and more advanced topics of the Python language. Table of contents Python language Interactive Python Lexical structure Data types Strings Lists Dictionaries Operators Keywords Functions Files OOP Modules Packages Exceptions Iterators & Generators Introspection Python Python is a general-purpose, dynamic, object-oriented programming language. The design purpose of the Python language emphasizes programmer productivity and code readability. Similar tutorials Scripting languages tutorials on ZetCode include PHP tutorial and Ruby

MySQL Python tutorial

http://zetcode.com/db/mysqlpython/ MySQL Python tutorial This is a Python programming tutorial for the MySQL database. It covers the basics of MySQL programming with Python. It uses the MySQLdb module. The examples were created and tested on Ubuntu Linux. There is a similar PostgreSQL Python tutorial, MySQL Visual Basic tutorial, or MySQL PHP tutorial on ZetCode. If you need to refresh your knowledge of the Python language, there is a fullPython tutorial. You may also consider to look at the MySQL tutorial, too. About MySQL database MySQL

Python Joystick Test

  Instalasi & Testing Koneksi Joystick   import pygame as p p.init() stick = p.joystick.Joystick(0) stick.init() print(“initialized:”,bool(stick.get_init())) print(stick.get_name()) while stick.get_axis(0)*100 < 399: print(round(stick.get_axis(0)*100)) #need for right detection otherwise stick.get_axis always returns 0 for event in p.event.get(): None p.quit()

Recent Entries »