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.
0
votes
0answers
16 views
code stops after few hours and raspberry py freezes. (pymodbus + rs485 + raspberry pi) python code
i am using pymodbus to collect some data from sensors 4 reading every sec. program is in continuous loop but the problem is raspberry pi freezing every few hours(60 hr).
code stops automatically. ...
0
votes
0answers
15 views
Lighttpd and Werkzeug
I'm terrible with configuring webservers.
I've set up lighttpd and python, and I put some .py files in the cgi-bin folder and all that works. Just simple stuff like printing the datetime.
Then I ...
1
vote
2answers
64 views
Has anyone manage to drive a HD44780 LCD using a 74HC595 shift register?
Using Python, I am trying to interface with a HD44780 16x2 LCD display and would like to save a few pins from my Pi's GPIO banks by using a 74HC595 shift register.
So far, I have managed to run the ...
1
vote
0answers
73 views
How to use socat to transfer serial commands in a script over TCP/IP?
I have a web application that will constantly post some queries and get replies from a device through the serial port on Raspberry Pi. Like this:
@cherrypy.expose
def login (self, **data):
...
1
vote
3answers
178 views
PHP to execute Python scripts for GPIO
I found this code somewhere, that can execute Python scripts from PHP.
I've installed apache2 on the Pi and I'm able to access the PHP script. But when I press the HTML buttons, nothing happens! :(
...
1
vote
1answer
40 views
Python Synth with Raspberry
I'm trying to create a synth using python with raspberry pi. I've written the code for manipulate the gpio input (i've modified the electronic of an old pianola and connected it to raspberry with the ...
0
votes
1answer
70 views
Time a GPIO input
I want to time the duration a input GPIO pin is HIGH with microsecond precision.
I tried while loop with time.time(), but it adds a lot of rogue delays.
Any ideas?
0
votes
1answer
127 views
Start/stop Fan at certain time
I have connected a fan to my raspberry pi with a transistor that sits on pin 5 ( GPIO 5 ).'
I followed this "guide" to make it: ...
2
votes
0answers
75 views
installing pymedia
I've got a project in mind and i would like to use the spectrum analyzer of pymedia to get frequency data from audio while its playing.
Has anyone managed to install it? I've tried and failed. I've ...
0
votes
3answers
126 views
Playing audio files with python
I am looking for a well maintained python library with allows me to play audio files on my raspberry using the standart audio output. So far I've tried several but none of them seem to work. Although ...
0
votes
1answer
91 views
Python errors reading / writing files from Python executable
I'm writing a Python application that is executable. It reads and writes to a file. The application uses wx for a GUI and has been given the following permissions:
chmod +x app.py
When I load the ...
0
votes
1answer
63 views
Difference between ipython and python on SimpleCV installation?
What is the difference between,
sudo apt-get install python-opencv python-scipy python-numpy python-pip
(from the book Getting Started with Raspberry Pi) and
sudo apt-get install ipython ...
1
vote
1answer
45 views
What is the Path and Name of a runtime executable?
I am trying to upload an old encryption tool that I created a while ago to the Pi store. I am almost done, but have reached an issue at the Runtime Settings part of the upload. I need to know, what is ...
2
votes
0answers
84 views
Problems connecting XMega-A1 Xplained via USB
I am trying to connect a Atmel XMega-A1 Xplained board to the RPi via USB and reading out data with Python (PySerial). OS is Wheezy-Raspbian.
After trying a lot of different things, I'm out of ...
2
votes
0answers
49 views
My PI crashes and freezes when playing music from Spotify
I've programmed a small spotify application on my RPi that freezes quite often. I'm wondering if anyone here has any experience using pyspotify and managed to create a stable application using this ...
1
vote
2answers
71 views
Is there any way to hide my email when deciding to become a dev on the raspberry pi store?
I think that I will have much more excitement creating python programs if I am a dev on the Pi store. I also do not want to share my email. Is there any way for me to hide my email as a dev, or ...
0
votes
1answer
572 views
SimpleCV installation on Raspberry Pi
I want to install SimpleCV, a Python framework for computer vision, on my Raspberry Pi.
These are the steps I followed:
Step 1 - install dependencies
sudo apt-get install python-opencv ...
0
votes
0answers
66 views
Share screen from my laptop to raspberry pi
Can i get the screen buffers(screen share kind of software) from my laptop and send it to raspberry pi via as video packets over network which displays it. ( I have read bits on SIP , and i don't want ...
1
vote
2answers
137 views
Installed pyusb, still: 'ImportError: no module named core'
On my Raspberry Pi I installed libusb and pyusb via sudo apt-get install libusb-dev python-usb.
But running some Python code (pyrow, to read data from a rowing machine) gives me this error at import ...
4
votes
1answer
107 views
How do I update Python to version 3?
Is there any way to update Python on the Raspberry Pi (Wheezy) to Python 3.3?
1
vote
1answer
92 views
Why does Python program work in console mode, but not in Startx?
In this Stack Overflow question I asked about creating a Python program of mine which was meant to allow me to access the terminal from a Python shell. It did not work... at least when running the ...
1
vote
2answers
407 views
How to get the Raspberry Pi's IP address for SSH
I am using Mac OSx to access my Pi via SSH. To access it, I know that I need the Pi's IP address. So, I decided to use a few Python commands which have always succeeded in giving me the local IP.
...
2
votes
1answer
70 views
Is there a software block diagram that describes how a python call (e.g. GPIO) gets to the hardware?
Is there a software block diagram that describes how a python call (e.g. GPIO) gets to the hardware? I would assume there is a user/kernel interface. Maybe a kernel module that implements support ...
2
votes
1answer
77 views
Would Scrapy Be Ok To Run on A Raspberry Pi?
I'm thinking of getting a raspberry pi to do some scraping work so i can go out while everything continues to run while at home. Is there any reason why Scrapy would be a bad idea for a Raspberry Pi ...
0
votes
1answer
52 views
Is there a system that i can run that can seamlessly pull audio and video files from a flash drive?
I noticed that a lot of people are asking about video performance capabilities and things along those lines, but they all seem to be either streaming their videos through Ethernet via Youtube, etc or ...
1
vote
2answers
330 views
What's the right way to run a python script as a daemon (service) in raspbian (or debian)?
I'd like to use my Pi as a home thermostat, with the control loop running in a python script. I want to run it as a daemon on raspbian (debian) at startup.
There's an example bash script in ...
3
votes
1answer
257 views
Reading serial data from Arduino
I have am working on a project where I'm trying to get a Raspberry Pi to play some sounds when triggered by button presses on an Arduino. The command is sent to Raspberry Pi through serial. I used ...
0
votes
1answer
40 views
How can I get twitter updates to showup on my desktop as some sort of news feed like RSS?
I want to see if I can get twitter updates to showup on my desktop. I have been looking at different APIs so I can get the updates myself, but I want to know if there is something ready made and easy ...
1
vote
0answers
210 views
Pyaudio FFT — Opening Audio Stream
I am trying to run an FFT on the audio stream so that I could control RGB LEDs. I am trying to use this example from here.
I am getting the following error when I execute the program:
...
1
vote
1answer
54 views
How to use a key listener?
Ok, at the moment I am working on adding motors to a lego tank that I have. I have one servo in the front to steer and another motor in the rear that will make it go forwards and backwards. i have ...
1
vote
1answer
167 views
How to check for keyboard input, while waiting for switch input?
I'm a beginner at programming so bare with me.
I'm having some problems with implementing a way to stop my script manually. CTRL+C works perfectly fine in the terminal, but it seems it doesn't always ...
3
votes
1answer
103 views
Detect that a python program is running on the pi
I've got a python script that uses sys.platform.startswith('linux') to test if it is on linux or not, but then I can't tell the difference between the x86/64 processor, and the raspberry pi's ARM ...
1
vote
2answers
365 views
Falls off network (“Destination host unreachable”)
I am running my Pi headlessly, connecting via SSH over the network. I am having a problem that I can consistently reproduce. I will leave a Python script running on my Pi and come back a few hours ...
1
vote
1answer
185 views
Connecting the HMC6352 compass module to a Raspi using I2C
I am trying to connect a HMC6352 compass module to my Raspberry Pi.
According to the datasheet I need to send an "A" for a read command. However, I am somewhat new to I2C and do not know how to ...
5
votes
1answer
327 views
Can I control Minecraft Pi Edition over SSH from another computer?
I recently downloaded the Minecraft Pi edition for my Raspberry Pi. The main feature of the Minecraft Pi edition is the ability to interactively edit the landscape using Python. One would expect that ...
2
votes
0answers
128 views
Pi - Detecting hdmi out or power interrupted
Does anyone know of a way to script this?
The idea being that using raspbmc / hdmi to TV / Tv USB to Pi mini USB (with a battery for buffer)...
You could have your Pi running off the tv's usb. When ...
0
votes
2answers
215 views
How to configure Django/Apache on Raspbian?
I am trying to setup my pi as a python web server. I already have Apache/PHP/MySQL running. I can't find the correct way to configure Django on Apache however. Can somebody help?
1
vote
1answer
404 views
How to use OpenGL (ES) through Python
I recently got my Pi and thought to give OpenGL another try. So I searched around for OpenGL Python modules as this would be my first choice as language. Although I'm aware that there are differences ...
2
votes
2answers
411 views
python audio bindings
I'm trying to get python audio input on my raspberry pi. So far I've installed the following:
My inquiry looks similar to this one, but I'm not using an audio card, I just have a webcam plugged ...
2
votes
1answer
160 views
Comparison of Python Gui performances
I am building a data visualization application. It is a multithreaded Gui without user interaction.
I have 24 widgets that shall be updated any 100ms. 16 widgets are PyCairo rectangles and the other 8 ...
1
vote
1answer
275 views
Espeak over python cgi
I am running lighttpd webserver on my raspberry pi (raspbian os).
On my small website I have a form which executes a python script via cgi - this part is working okay.
Now I tried to call espeak from ...
0
votes
1answer
111 views
Raspberry Pi Python Error
I tried to install distribute or setuptools which has to be done prior to installing pip on the Raspberry Pi.
The command used was $ curl http://python-distribute.org/distribute_setup.py | python
...
2
votes
1answer
153 views
Updating wheezy breaks Adafruit_CharLCD
So, just to try and keep the wheezy up to date I did an apt-get dist-upgrade and upgraded a couple of things, among which python.
Now, when I try runing the example ./Adafruit_CharLCD.py I get no ...
3
votes
2answers
2k views
Running a Python script at startup
This question has been asked quite a few times before but I didn't seem to get it working using the existing information.
My Pi runs Raspbian. I have a Python script named dnscheck.py which loops ...
6
votes
1answer
683 views
How do capture audio using Python?
More particularly: How can I use python with ALSA to capture audio input?
I'm thinking about doing an oled-based spectrum analyzer for Pi-based audioplayer. One part of the solution is to read the ...
3
votes
4answers
681 views
Infrared NodeJS
I just orded my RPI a while ago (Haven't recieved it yet), and this is just completely out of curiosity, but will I be able to connect some sort of IR receiver, and get it's input in Node?
Or is this ...
1
vote
1answer
233 views
Python SQLite3 select with and operator
I'm pretty new to python and SQLite but have done substantial work with MySQL and php.
I'm trying trying to do a conditional select on some data and would like to use the AND operator.
The MySQL ...
1
vote
1answer
1k views
USB microphone recording input and audio output
I've got a USB sound card which I'm trying to record from using the standard pyaudio tutorial for recording however I get the following (below). Frustratingly this script actually works on my mac and ...
2
votes
1answer
200 views
Zbar Installation
I'm attempting to install zbar on my raspberry pi. I built the source by entering:
./configure
make
make install
I don't get any errors or warnings from any of the above commands.
After the install ...
0
votes
1answer
231 views
ShiftBrite - Running on Python
I was wondering if anyone can help me out with converting the example Shiftbrite ardino code into Python so I can run it on my Rpi. Here is the example code in question:
int datapin = 10; // DI
int ...





