Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.

learn more… | top users | synonyms

0
votes
1answer
11 views

Python to open the terminal and play a movie through VLC?

Is it possible to send a command from one Raspberry Pi, to another, and open up a video file with VLC, using Python? This is my idea that involves this: Raspberry Pi 1, has a web server on, where ...
0
votes
1answer
26 views

Problems installing lxml

I'm trying to install lxml (I need version 3.3.4) but when I try to pip install --upgrade lxml I keep getting build errors: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall ...
0
votes
0answers
20 views

how to interface raspberry pi and plc

am doing a project on controlling the plc by using raspberry pi. any one please suggest some sample coding and tutorial regarding this project. am already finished a coding part to connect a control ...
0
votes
3answers
50 views

More Software PWM

I'm currently working on a project which requires more than one PWM signals for my LED drivers. I'm not looking for any additional hardware for this and so my focus is mainly on software PWM. Based ...
2
votes
0answers
30 views

/sys/class/gpio values only working if python gpio script was used before

i have a problem with the gpio sysfs files. when i use cat to get the values of a gpio pin it will always show 0. but after using a python script ( ...
1
vote
1answer
52 views

Installing Python 3.4 on Raspberry Pi

Is it possible to run python 3.4 on a Raspberry Pi? Currently I have python 3.2, but the odd thing is that running sudo apt-get update sudo apt-get install python3 results in my Raspberry Pi ...
0
votes
3answers
35 views

How to solve a IndexError in python? [on hold]

I am working in python based in a java code. I have this in Java: public static byte[] datosOEM = new byte[900000]; public static byte x1=0,x2=0,x3=0,x4=0,x5=0,x6=0; I wrote this in python ...
0
votes
1answer
34 views

How does Raspbian depend on Python2.x?

I've written a Python3.x code on a PC (win 7) in order to read out temperature data from an external measurement unit (using basically pyserial & Matplotlib). I want to port this program on a ...
0
votes
0answers
26 views

from Java into python

Someone can help me with this: Anyone who knows how I must change this lines from java code into pygame (python) code. public static int response, DatoInt; public static boolean ...
1
vote
3answers
64 views

Transferring data from Arduino to RPi, Missing data

I had hooked up the Arduino Uno to the RPi through USB connection. The Arduino contains a light sensor and it will transfer data to the RPi. The baud rate used was 115200. This baud rate was used due ...
1
vote
1answer
24 views

2 things with python, import and exit

I am messing around with the GPIO and I am using my PI through SSH on my main desktop. First: with my script I am using from Adafruit_CharLCD import Adafruit_CharLCD I also tried ~/path/to/Ada... and ...
0
votes
2answers
75 views

Raspberry Pi and Arduino Storing Data

I need some help on my project. I had interfaced the Raspberry Pi and Arduino Uno through USB. I used the Arduino as a slave to obtain data from sensors. The data is then transferred to the Raspberry ...
0
votes
0answers
17 views

Raspbian crashing after servo.stop_servo()

I have a servo connected to my RPi and I try PWM.Servo's capabilities. The program below does what it should - but after execution it crashes system (it doesn't respond to any input, no animations, ...
0
votes
0answers
28 views

Run Python Script From Terminal No Output

I'm still new with Raspberry Pi and Python. I'm trying out a project which is to establish a communication between the Raspberry Pi and Arduino Uno through USB. The project is based on ...
0
votes
1answer
44 views

my raspberry pi freezes while face tracking using openCV and servoblaster

I'm trying to track face with Pan and tilt motion, using servoblaster and opencv, i followed this tutorial if anyone is intrested.. it runs perfectly but after few seconds camera freezes and it stops ...
0
votes
0answers
26 views

python script runs but stopped copping files

I have a python script that copies files from one folder to another on my pi, but is no longer working and i don't know why. 1) I know it is running, because the script sends me an email. 2) I'm not ...
0
votes
0answers
33 views

Raspberry Pi RetroPie GPIO Shutdown

I'm trying to make an arcade cabinet with my Raspberry Pi and I want to make a physical shutdown button for it. I can do this with the GPIO, I even wrote a python script to do it: import RPi.GPIO as ...
1
vote
0answers
46 views

Execute shell & python scripts from commands sent via POP

I have my pi set up to text my phone (XXXXXXXX@vtext.com) through a google account when the CPU reaches or exceeds 45 degrees Celsius. I would like to be able to message back to the account and have ...
1
vote
0answers
22 views

How to develop for Mikroe's click boards with free software only?

Hardware offer for the Raspberry Pi When looking for sensors, actuators etc, that are easy to use, one can spot that a Raspberry can host a Pi click shield - extension board for Raspberry Pi® with ...
2
votes
1answer
43 views

print a character in the usb-serial port

Hello everybody and thank you for all the answers that you give me to solve this problems. Someone said me: This code print a word that I choose in the screen, but How to send or print an ASCII ...
0
votes
1answer
60 views

Raspberry Pi not sending Multicast UDP

Multicast UDP on raspberry pi I haven't narrowed things down enough to know if my issue is because of debian, raspbian specifically, or if I am just missing a something completely. I have a python ...
0
votes
0answers
52 views

tornado server with video streaming

I'm running tornado web server on my Raspberry Pi and its task is very simple. It just to takes commands and sends them to an Arduino over serial. I'm thinking of adding the Pi camera module and ...
0
votes
4answers
76 views

trigger cron job from web application

I would like to improve on my project by using cron jobs. Currently, i have a web application that allows me to control servos. However I would like to add another function on the web application ...
1
vote
0answers
41 views

How to connect a devices with the raspberry pi [closed]

This time I need to know how to connect a device by the usb port to the raspberry pi. When I connect the device in the RPi and write lsusb, It shows me ID 0403:6001 Future Technology Devices ...
1
vote
1answer
48 views

Bottle keeps turning itself off?

I don't have this problem on my laptop or VMs I use at work. I use bottle for my web framework and my python scripts seem to just stop running, requiring me to start them again. I always use a screen ...
0
votes
0answers
23 views

pygame.mixer on thread fails with “(pygame parachute) Segmentation Fault”

On the Raspberry Pi, I'm trying to play some sounds using pygame.mixer and am having a problem when playing them on any thread other than the main thread. For example, I have a keypad hooked up and ...
1
vote
2answers
48 views

How do I restart a python program on my pi when it crashes? [closed]

I have a python program named endless.py. I want to restart it whenever it crashes, and write the time that it restarted, to a file named restartlog.txt. Here is my python code so far: import time, ...
1
vote
1answer
20 views

Language query(Python?)

I Know this is stupid but can you make JS games on the pi or does it have to be in python. I find HTML/JS/JQ easier and better to work with so I just wondered. Thanks Josh
1
vote
2answers
73 views

Check a program/script is active and running properly

I can't find guidance anywhere on how, if you're running a (say python) script permanently in Raspbian on a headless RPi, to check periodically it's running ok. I've researched reporting on running ...
2
votes
1answer
78 views

Raspberry pi GPIO input pins give random values

I've been playing a lot with the Raspberry Pi lately. But I have a problem. When I set up an input pin to check whether electricity is sent to it or not, it gives me rather unstable answers. A few ...
2
votes
2answers
78 views

Graphic output sensor data

I have some experience with Arduino but never used Raspberry Pi. I'm looking for the best way to show my sensors data via RPi. What I would want to do is: Arduino to read sensor data and send it to ...
2
votes
2answers
48 views

L.E.D controlled by IF STATEMENT from variable

I want to control some L.E.D's through the GPIO ports depending on the value of "variable1" which will become a raw input. The problem is, if variable1==70 then both led 12 and 16 with light, but only ...
4
votes
4answers
196 views

Sending live data readings from Raspberry Pi to laptop

I have a simple Python code that takes readings from a temperature sensor. I wish to send these readings (each time one is recorded in the code's while loop) to my laptop so the values can be used in ...
0
votes
1answer
23 views

Using FSR with Raspberry Pi

I am trying to get values from a force sensitive resistor with Raspberry Pi. I saw an example using Arduino such as this http://learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr and I can ...
2
votes
0answers
80 views

GPIO pins are always HIGH

I recently have started delving into using the GPIO on my raspberry pi and when I got to the input section of adafruit's tutorials I noticed something wrong. For some reason when I execute the python ...
1
vote
1answer
82 views

control omxplayer seeking with frame precision

I'd like to control omxplayer seeking with frame precision from an existing instance with python. I have seen this that I think is the way to go: open via python subprocess an instance, have a ...
0
votes
1answer
44 views

How to install pygame.mixer

I am trying to run some code from GitHub, but it is asking for pygame.mixer. How do I install this on the raspberry pi? Can someone give me the Sudo Get command? I am rather new to Linux.
0
votes
1answer
24 views

Printing Float Values to Console

I am using python to print the RPi CPU temperature to the console. The below method (function), returns a float which converts Celsius to Fahrenheit get_cpu_temp(). However the float value is ...
0
votes
0answers
51 views

Implement Android beam using Raspberry Pi NFC and Android device

I have Raspberry Pi board with a PN532 NFC extension and an Android device. I would like to create android beam technology between the NFC extension and the phone, in order to realize communication ...
0
votes
2answers
77 views

Get USB address

I have a FTDI USB-Serial (UART) IC connected to my Raspberry Pi. When I type lsusb I can see all my USB buses: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID ...
1
vote
1answer
39 views

locking a python script on my PI

I have a script script_1.py that when runs from the command line, it works, but when called by the system it does not. I think it must be being called whilst it's already running. Could someone please ...
0
votes
2answers
59 views

Script works from command line, but not when called automatically by PI

This script works when i call it from the command line, but when i have "Motion" call it following the save of a jpg to my PI, it only sends the emails. I'm mostly get about 10 jpgs, for each event, ...
0
votes
0answers
128 views

Use PyDrive to upload files to Google Drive folder

I'm using PyDrive to upload files to Google Drive but could not figure out how to define the destination folder. The following code saves a copy to the root on GDrive: gauth = GoogleAuth() drive = ...
0
votes
2answers
122 views

executing Linux commands inside a python script on my PI

I have a python script to send me an email when i detect motion from my noir Pi camera, which is been successfully called. I know the script is being called, as i get the email on movement; but the ...
1
vote
1answer
97 views

Adafruit I2C Library Problem?

I'm having trouble compiling the python from an example in the library. https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/Adafruit_ADS1x15/ads1x15_ex_singleended.py I ...
1
vote
1answer
166 views

How does python GPIO bouncetime parameter work?

I have a simple Python script that is observing two GPIO pins, I've set the bouncetime parameter to 500ms, but I get multiple (almost always 2) calls to my callback, usually 3 or 4 ms apart. This is ...
2
votes
2answers
67 views

The way to catch system clock interrupt in Python?

I would like to ask is it possible to get the system clock interrupt in Python for each second, so that I do not need to constantly check the clock in loop?
2
votes
1answer
94 views

Built-in http server or framework

I will use a Raspberry PI as a server to run python scripts from an ethernet connected Arduino (to encode short ip camera videos, send notifications through the internet and sync files to dropbox, for ...
2
votes
1answer
89 views

Degree symbol on LCD [closed]

Strings' encoding in Python 2.7 is hard to me. I'd like to show 0°C on a display. I've found little manual for my display, but weather = '%s%sC' % (str(temperature), chr(223)) ...
0
votes
0answers
59 views

Cannot delete file created using bash script

I'm having a problem with file permissions... Iv'e got a python program to automatically take pictures using fswebcam (by running a bash script using subprocess.call). however when i try to delete ...