Python • Re: problem with flask app.py
Are you starting this app manually from a terminal window or command line?Are there any errors output?What is in the log file?Statistics: Posted by rpiMike — Thu Mar 13, 2025 8:55 am
View ArticlePython • museum information board
Code: import osimport timeimport subprocessimport RPi.GPIO as GPIOBUTTON_PIN = 17video_path = "/home/pi/media/video.mp4"waiting_screen_path =...
View ArticlePython • Re: museum information board
Perhaps have a look hereviewtopic.php?t=382880&hilit=museumStatistics: Posted by ghp — Fri Mar 14, 2025 1:41 pm
View ArticlePython • Determine which state machine generated an IRQ
Hi,I am new to the forum and Python so I hope I am providing enough information. I am using a Raspberry Pi Pico with 2040 cpu. When running a program with several state machines each connected to one...
View ArticlePython • Re: No matching distribution found for RPi.GPIO
Is that “ OS Lite 32bit” using Bookworm?Statistics: Posted by neilgl — Fri Mar 14, 2025 2:26 pm
View ArticlePython • Re: Determine which state machine generated an IRQ
As a workaround, you could use different handlers for each PIO statemachine. Then you have a 1--1 relation between statemachine and handler.If the source code for the handler is almost identical, then...
View ArticlePython • problems with Astral
Hi allI experience some problems with using 'astral'. To start with: raspberry pi is new, and I have a very basic knowledge. I started with Code: sudo apt install python3-astralThen my script starts...
View ArticlePython • Re: problems with Astral
when I type pip show astral then I see that version 1.6 is installed, but according to https://pypi.org/project/astral/three is an older version. I tried to upgradeCode: sudo apt --upgrade and Code:...
View ArticlePython • Re: Issue sending data from raspberry pi to phone app via bluetooth...
If you are using an Android phone there is a much easier way using Tasker and AutoRemote. I do this literally hundreds of times per day from maybe 12-14 different raspberry pi. And you don't even have...
View ArticlePython • Re: need to run as sudo
$ groups givespi adm dialout cdrom sudo audio video plugdev games users input render netdev bluetooth lpadmin gpio i2c spiStatistics: Posted by sandy70 — Sun Mar 16, 2025 7:45 pm
View ArticlePython • Re: problem with flask app.py
I didn't see any errors in log but what i was asking myself. What if i try to develope my project on ubuntu server installed on another Raspberry pi, Is maybe Ubuntu server let's say stronger for this...
View ArticlePython • twilight times
Hi allCompletely new to programming, I try to get twilight times for a specific region (Brussels) using astral.So far I have Code: import datetimeimport zoneinfofrom astral import LocationInfofrom...
View ArticlePython • Re: twilight times
"dusk" and "dawn" would be close to 'twilight' which does not exist in the provided data.Or useimport astral.suntimezone = zoneinfo.ZoneInfo("Europe/Brussels")city = LocationInfo("Brussels",...
View ArticlePython • Failed to build installable wheels for some pyproject.toml based...
Hi!I am trying to install a package from a github onto my raspberry pi zero 2 that has python 3.9.10 and pip 25.0.1. I have installed the av dependencies with this command:Code: sudo apt-get install...
View ArticlePython • Trouble Installing AWSwrangler on Pi 4
Hello, All.As the title suggests, I'm having trouble installing awswrangler on my Pi 4 (Raspbian 10 - Buster). I tried a few things, such as updating and upgrading my Pi, but the installation keeps...
View ArticlePython • Re: Trouble Installing AWSwrangler on Pi 4
I tried following the Python Upgrade exactly but it didn't work. I got the following:Code: copying and adjusting /home/pi/Downloads/Python-3.11.1/Tools/scripts/pydoc3 -> build/scripts-3.11copying...
View ArticlePython • Gradually starting and stopping a numpy generated sine wave
Thanks for the numpy advice earlier. I have now have two numpy-generated sine waves which have abrupt starts and stops:Code: duration = 0.1amplitude = 1.0 # range [0.0, 1.0]sampleRate = 8000 # integer...
View ArticlePython • Re: Gradually starting and stopping a numpy generated sine wave
I had to graph it to visualize it better. I'm not comfortable with my math skills so it may be off, but it seems to look ok and, when transfered to the audio generator, seems to sound better. Code:...
View ArticlePython • Showing list contents in thonny
I'm working on a web scraper and I have decided to copy the target data from each site into a list of data objects so I can export to a .CSV file in an orderly manner. I have drafted that module to...
View ArticlePython • Re: Showing list contents in thonny
That is because you are checking the content of a list object. To have a closer look you could assign one of the elements to another variable, and check that. Add this to your code:Code: product =...
View Article