PiCamera - Get FPS

I am attempting to record video to a file in Python-OpenCV and I am finding settings the frame rate manually to be too inaccurate, I found a solution online for C++ posted...

How to adjust windows/icon/font size on raspbian desktop using command line?

I have a PiTFT with 320x240 screen size running raspbian desktop on raspberry pi. I would like to resize the whole desktop, make the windows + icons + fonts sizes smaller so it may better fit the...

Access GPIO (/sys/class/gpio) as non-root

The /sys/class/gpio can only be access as root by default. So I like that a new group gpio can use the files and directories under /sys/class/gpio. To achieve that I added the following lines to...

HTTPS sites not working in Squid transparent mode

I am trying to setup my Raspberry pi as WiFi access point with squid proxy. All the users connected to AP (wlan0) will get internet from eth0 When I configured browser with Proxy 192.168.0.1:3128...

502 Whoops, GitLab is taking too much time to respond

I installed Gitlab on Raspberry Pi2, and it had worked well for a couple of months. But since shutting down the power of RPi, it doesn't work anymore. The webpage returns 502 error. 502 Whoops,...

Convert byte to bool in C#

I'm trying make a library to iot core on c# based on arduino library (http://blog.electrodragon.com/rc522-write-a-card-demo-code/) but i don't understand what is: if (!(temp & 0x03)) or while...

How to exit python program on raspberry

My program in python runs on RaspBerry Pi, and instantiates several objects (GPIO inputs and outputs, http server, webSocket, I2C interface, etc..., with thread). When exiting my program, I try to...

Raspberry PI Sense Hat Joystick triggering event on reset

I have a simple python program that uses the sense hats joystick as inputs, which calls reads from various sensors on the hat and returns their values to the 8x8 LED display. The program works but...

ERROR opening V4L interface: Operation not permitted

I compiled mjpg-streamer in my raspberry pi, but when I run the below command, it occured an eeror shown in the title. Details are...

How can I play an audio file using Raspberry Pi motion? Possible permissions issue?

Alright, so here's what I have: I have a script, called detect.sh. This file is located in /home/pi/detect/detect.sh. It's permissions are: -rxwrxwrxw 1 motion motion 66 Feb 19 10:20...

Raspberry Pi -fatal error: sys/cdefs.h: No such file or directory

I'm trying to compile gcc5.3.0 on my Raspberry Pi with latest Raspbian system image. $ ./configure --enbale-checking=release --enable-languages=c,c++,fortran...

Enable HDMI audio on RPi 2 with IoT Core

Is it possible to enable HDMI audio when running an UWP app on RPi 2? There is sound when I connect speakers via the 3.5mm jack, but I would prefer HDMI audio. Apparently it's possible, but I...

Valgrind on FreeBSD

Good day! I'm playing around one C project. It is located on FreeBSD machine (it looks like Raspberry PI2, not sure) The problem is I want to run project in Valgrind to find memory leakage. When...

Python tkinter after

I use tinter.after() for refreshing the display of an analog clock on a raspberry pi every 200ms. At the beginning it's OK but gradually the time between each refresh reaches about 2-3 seconds. Is...

Push button GPIO.FALLING event getting triggered twice

This is my first attempt at coding a Raspberry Pi and a hardware push button on a breadboard. The program is simple, when a button press is detected, turn on an LED on the breadboard for 1...

Max length of signal in gpio

What's the maximum length across a single core wire will a high signal last on a raspberry pi GPIO pin? I.e if I have a 3 metre signal core wire attached to a relay when the raspberry pi sends the...

cv2.videocapture doesn't works on Raspberry-pi

How can i make the cv2.VideoCapture(0) recognize the USB camera of raspberry-pi. def OnRecord(self, evt): capture = cv2.VideoCapture(0) if (not capture.isOpened()): print "Error" #...

OpenCV NoneType object has no attribute shape

Hello I'm working on Raspberry Pi with OpenCV. I want to try a tutorial which is ball tracking in link http://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/ But when I compile it, i...

Running Raspberry Pi 1 OS on Raspberry Pi 3

I have a Raspberry Pi 1 running Raspbian. I tried running the SD card from it on a Raspberry Pi 3 but it didn't boot. I've read various things about upgrading a Raspberry Pi 2 install to run on...

eglfs on raspberry2 -- * failed to add service - already in use?

that's is my first post here. I'd like to keep it short... Following problem: i want to run a qt5/qtquickcontrols2 application utilising the eglfs backend on a raspberry-pi 2b, accelerated by vc4,...

How to stream video to browser with Kodi

Not sure if this is the correct place to ask this but here goes nothing. I setup openelec's Kodi on a Raspberry pi2. I uploaded a video and managed to get it to play on a connected TV via HDMI....

Raspicam Camera.retrieve() error

I write simple application and have problem with raspicam library. I've opened simpletest_raspicamm.cpp: #include <ctime> #include <fstream> #include <iostream> #include...

Typewriter Effect Pygame

This question is really difficult to ask, but I know you guys here at Stack Overflow are the brightest minds. I'm totally blinded by why this issue happens (I'm fairly at Python and Pygame, so any...

File transfer on Raspberry Pi using pscp

I am trying to send file from windows local system to QEMU raspberry pi emulator.But every time I am getting "access denied".I have downloded pscp.exe. I have tried the following...

Raspberry pi sudo apt-get install apache2 gives error (404 Not Found)

I have been following this tutorial and I now cannot finish it by running: https://www.youtube.com/watch?v=T3s9KYCU3tE sudo apt-get install apache2 What I am trying to do is basically turn my...

Call a function on raspberry pi using android application?

I have a project where i need to call a function on raspberry pi. I've wrote the function in python.Both devices will be connected using WiFi. Now i cant figure out how to call the python function...

Execute shell command from python script (RaspberryPi)

I am trying to execute this command sudo mavproxy.py from a python script on raspberrypi. I can execute this in the shell and see it load. The code i have for my current test is: import...

dotnet core System.Threading.Timer only fires once

Working on a Linux service and when I setup the System.Threading.Timer it only fires once. The interesting part is it only fires once on Linux. When debugging on Windows it continually fires. For...

Raspberry Pi 2 Raspbian automatic startup for browser in full screen for Kiosk

I am trying to make my raspberry pi open a set of page's automatically when i start it up in the morning but unfortunately i can't get it to work i already have the links in chromium so if...

VNC on Raspberry Pi shows Cannot Currently Show the Desktop

I am trying to use VNC in a headless install on my Raspberry Pi 4, running Raspberry Pi OS, installed via Raspberry Imager. The install is more or less vanilla, as the only changes I have made are...