Quantcast
Channel: Raspberry Pi Forums
Browsing all 1225 articles
Browse latest View live

Python • Re: Websockets = :-(

I have websockets installed on my raspberry pi but I am unable to establish a connection.pip show websocket-clientCode: pi@popcamera:~ $ pip show websocket-clientName: websocket-clientVersion:...

View Article


Image may be NSFW.
Clik here to view.

Python • Python serial programing

Hi,I'm not a programmer; I just occasionally code a bit. I thought this task wouldn't be too complicated, but...I have an old device that sends reports via a serial port in the form of SMS. Normally,...

View Article


Python • Re: Python serial programing

serial readline is tricky. When CRLF is not in the data, then getline is waiting till something arrives which terminates reading by a CRLF.Which in your case is the next message, possibly.Code: # Read...

View Article

Python • .service troubles

Newbie here who'd appreciate a bit of help!I'm trying to get my pi to recognize button inputs from the gpios and launch programs with them. To do so, I wrote a button reading program A which triggers...

View Article

Python • Re: .service troubles

This post should help viewtopic.php?t=314455Keep in mind that if you are running Python from a Virtual Environment there is additional command line considerations...

View Article


Python • Latest Bullseye images break Websockets

Pi 4. Running the following server.py code on existing Bullseye SD cards with Python 3.9.2 or on new Bookworm SD cards with Python 3.11.x works fine but if a new SD card is burned using Raspberry Pi...

View Article

Python • Re: Latest Bullseye images break Websockets

Why are you not using Pi OS Bookworm?Statistics: Posted by rpiMike — Sun Nov 10, 2024 12:49 pm

View Article

Python • Video feed not connecting / refreshing to WiFi Mesh

Hello, for context, I'm doing a project on an Air Duct Inspection robot, and right now im working on streaming a HD video to browser. We're using a WiFi Mesh and we put the routers and different...

View Article


Python • Re: Video feed not connecting / refreshing to WiFi Mesh

I would check if it is the “tornado” software by using a known working example.Try the picamera2 example script mjpeg_server_2.pyhttps://github.com/raspberrypi/picamera ... erver_2.pyThis works for me...

View Article


Python • Re: Send email from python

Have a look at this. It is COMPLICATED. That's why like 'bls' I haven't tried to use it yet.https://medium.com/@manojkumardhakad/py ... de606ecfa1this has already been tried and you need a paid azure...

View Article

Python • adafruit-circuitpython breaks lgpio on Raspberry pi

HelloI have been using the replacement Rpi.GPIO library lgpio on a pi zero 2w, but eventually I will be switching to a Pi 5. I belive lgpio is installed by default on Bookwormm. I am trying to also...

View Article

Python • Re: adafruit-circuitpython breaks lgpio on Raspberry pi

I have been using the replacement Rpi.GPIO library lgpio on a pi zero 2w, but eventually I will be switching to a Pi 5. I belive lgpio is installed by default on BookwormmFull disclosure, I'm not...

View Article

Python • Multiprocessing does not work

I have a raspberry Pi 4b with bookworm 64-bit installed.I'm working on a multiprocessing-script. And I cannot get it to work.What it supposed to do is:def waiting():VLC pauses a video on the first...

View Article


Python • Re: PIR false positive when sending mail

I solved the issue adding a ferrite sleeve on the cable going to the sr501 PIRThe issue was 100% related to emc as the script was working perfectly when utp cable was plugged in and was faulty when...

View Article

Python • Re: Python serial programing

Interesting, I'll read it. My first program was based on https://github.com/mistretta/psame but it did not fully support all commands, but I also wanted to understand communication better. I'm still...

View Article


Python • stop loop with button press--raspberry pi and gpio

Hello, I am pretty new to python and coding, so this may be a basic question, but how would I go about exiting a loop with a button press via gpio input?What I want is once a condition is triggered...

View Article

Python • Re: stop loop with button press--raspberry pi and gpio

Hello, I am pretty new to python and coding, so this may be a basic question, but how would I go about exiting a loop with a button press via gpio input?What I want is once a condition is triggered...

View Article


Python • Scaling Django for High Traffic During Sales Events

Someone suggested I use Django software that helps in the speed optimization of some sites. My jewelry store is expecting a surge in traffic this Christmas, and I want to make sure my Django...

View Article

Python • Re: Scaling Django for High Traffic During Sales Events

I'd suggest you will get a better answer from the Django Forum https://forum.djangoproject.com/Statistics: Posted by DS256 — Thu Nov 14, 2024 3:47 pm

View Article

Python • Package discid not found

I installed python3-libdiscid on rpi 6.6.51 (sudo apt install python3-libdiscid). When I run python (3.11) and import discid I get "No module named 'discid'. Every other apt install python3-* that I...

View Article
Browsing all 1225 articles
Browse latest View live