Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
4answers
60 views

Pi - own python startup script in the wrong order

I've written a python script to connect to mysql & insert the current time then close. The use case is if my Pi browns out/restarts (often does) the time of this event will be logged. The script ...
0
votes
0answers
363 views

HTTP 500 Error - Debugging??

I've been troubleshooting my RPi and I keep getting an internal 500 error in my errors.log for a script written in python. I actually get 2 errors in the logs, wondering how I would go about fixing ...
1
vote
1answer
92 views

Cannot Load Library “./pxcore.so” to autorun a python script on boot using systemd

I want to run a code at startup but I am getting this error below. The script works when running in python, but I am unsure how to allocate permissions or where to make a path to the pxcore.so file so ...
1
vote
1answer
133 views

How to allow a program with a high utilization of the processor to run for a long time

I'm running a python script which uses OpenCV an ffmpeg for video streaming on RPI 2 (os is raspbian Jessie). The script is camera = cv2.VideoCapture(self.camera_id) command = "ffmpeg -re -f ...
1
vote
3answers
216 views

No space on 8gb usb stick shows 100% du shows 3.5mb

root@rasp:/home/pi# df df: `/squashfs': No such file or directory Filesystem 1K-blocks Used Available Use% Mounted on rootfs 7498344 7481956 0 100% / dev 116816 ...
1
vote
1answer
2k views

Gather data from a PLC to a Raspberry Pi running Debian and then broadcast it on internet

I have an Unitronics V570 PLC which takes temperature readings. An Ethernet card enabled PLC is really expensive so I plan to connect the PLC to a Raspeberry PI. How can I use Python functions that ...
4
votes
2answers
6k views

Resetting usb device from terminal

I am using a USB IR Toy v2 and using this excellent https://github.com/crleblanc/PyIrToy python library to get it working after failing to get things going with LIRC. However, while it works once, ...
1
vote
1answer
583 views

sample speed i2c

If running standard release of debian on my Rpi. How fast can I sample the sensor readings through i2c and save values? Why Im asking, I tried to read a DS18B20 and save it,s values (wrote the ...
12
votes
4answers
59k views

How can I connect to a USB serial device?

I have a device with a USB serial port cable that I'd like to connect to my Raspberry Pi. The chipset for this USB to serial cable it the PL-2303 from Prolific Technology, Inc. How can I read data ...
29
votes
2answers
42k views

How to program a USB device with Debian/Python

The Pi is being promoted as an educational device primarily for Python. Inline with this, there have already been some great examples online of people accessing the GPIO from Python. However, most ...