raspberry-pi

Python Wiegand 34bits – ignore last 2 bits

Python Wiegand 34bits – ignore last 2 bits Question: I’m trying to read a code from a QR reader with python. Have used pigpio example from here http://abyz.me.uk/rpi/pigpio/examples.html#Python_wiegand_py When I scan a QR it returns bits=34 value=12835750879 which is too long, the code should be 10 digit only. The QR sends 34 bits, and the …

Total answers: 1

Raspberry Pi unable to connect to Windows Websocket

Raspberry Pi unable to connect to Windows Websocket Question: I am attempting to send data from a Python script running on a Raspberry Pi to a Java Micronaut ServerWebSocket running on a Windows machine, but I am getting asyncio.exceptions.TimeoutError errors during the process. I attempted to use the websockets library in Python on the Raspberry …

Total answers: 1

Processing Data from an MQTT stream using Paho-MQTT

Processing Data from an MQTT stream using Paho-MQTT Question: I have a microcontroller that is streaming data to a MQTT broker and also a python script using the Paho-MQTT package to subscribe to the topic that my microcontroller is publishing to. In all of the examples that I see with Paho-MQTT the script is constantly …

Total answers: 1

Parsing The Data from Rasberry Pi to Arduino for controlling 8 Relay

Parsing The Data from Rasberry Pi to Arduino for controlling 8 Relay Question: My project Bidirectional Communicate between Arduino and Rasberry Pi for implementing many AC Applications, sofar the read from Arduino to Rasberry Pi has been solved The only Problem now is parsing the data receving from the Rasberry Pi to the Arduino Mega, …

Total answers: 2

Pygame flickers only on second run of program

Pygame flickers only on second run of program Question: I have a simple pygame program that I’ve written that I am running on a raspberry pi CM4 using the raspberry pi lite OS (buster). As such I had to install x manually so that pygame would have something to output to. This was done using …

Total answers: 1

open-cv installation in docker image does not work on raspberry pi

open-cv installation in docker image does not work on raspberry pi Question: I have created python project with some dependencies, among them open-cv. Now I want to deploy my project in a docker image. For this, I created the following build-file on my local machine (running Ubuntu 22.04): # syntax=docker/dockerfile:1 FROM python:3.8-slim-buster WORKDIR /app COPY …

Total answers: 1

Display Keyboard integration

Display Keyboard integration Question: for a project I have built on a Tkinter based GUI, I would like to run it on a touch display. Does anyone know a way or a way to have an on-screen keyboard, that is installed on a Raspberry Pi, that open up when an input field is clicked in …

Total answers: 1

Using Python to start shell but wont interrupt original script

Using Python to start shell but wont interrupt original script Question: So I have a "master" python script which should be able to execute different shell scripts and not get stuck in the shell loops. import socket import subprocess UDP_IP = "192.168.50.3" UDP_PORT = 5005 sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.bind((UDP_IP, UDP_PORT)) …

Total answers: 1

Connect MariaDB on raspberrypi from remote over same network

Connect MariaDB on raspberrypi from remote over same network Question: I have installed mariaDb (Mysql) on my raspberry pi .I am trying to connect my db using python from another machine over the same network but I receive the below error . self.sock.connect(sockaddr) ConnectionRefusedError: [Errno 61] Connection refused The above exception was the direct cause …

Total answers: 1