Quantcast
Browsing all 1234 articles
Browse latest View live

Python • Re: Running python script from PHP - crashes at "import...

I managed to fix this in the end and post what I did here in case it helps others. I decided to test my php script from the command line logged in as my daytoday user first with and without sudo....

View Article


Python • Re: Simple stepper motor driver with acceleration setting for Rpi5

import gpiodimport timestep_pin = 24dir_pin = 23# use gpiochip4chip_name = 'gpiochip4'try: chip = gpiod.Chip(chip_name) step_line = chip.get_line(step_pin) dir_line = chip.get_line(dir_pin)...

View Article


Image may be NSFW.
Clik here to view.

Python • Re: How to get Python to use a custom library path

You completely miss the point of what Python venvs are for.[. . . .] This has now gone WAY off topic. But hopefully it sheds some light on why some things are the way they are even if it's initially...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Pi 5 / RC522 / Python for RFID Reading?

works perfect is there a way to use more then 1 Reader on Pi5 with your Code?Statistics: Posted by tinotino — Thu Jul 11, 2024 9:42 am

View Article

Python • Stepper control via PIO for a dosing device

I need help with programming. Unfortunately, I haven't been able to find any like-minded people in my area (15526 Reichenwalde) with whom I could exchange ideas. At the biblical age of 65, I'm trying...

View Article


Python • Re: Python script calling VLC on startup fails

I was running into a similar issue but I was trying to play audio at scheduled times not particularly on start-up. I could execute the script from the terminal and successfully play audio via an audio...

View Article

Python • Re: Best way to run a Python Program

In general, should a relay Keep it's state after the triggering python program runs and closes?It won't usually unless it's a "latching relay" and most aren't.This is one of the reasons to start the...

View Article

Python • Connecting RPI to RPI via SPI using Python

Hello, I am new to programing with the RPI and Python. I need to connect 2 RPI's to communicate over SPI bus (SPI bus is my special need) to send large data. For some reason i can even pass the...

View Article


Python • Re: Connecting RPI to RPI via SPI using Python

AFAIAA, the userspace spidev interface is master only - SPI devices have a limited userspace API, supporting basic half-duplex read() and write() access to SPI slave devices..And I don't see anything...

View Article


Python • printing image in python

Hello,I would like to print an image in python.I have a label color printer. When I try to print by the iamge viewer of the system, everthing works well (just need to select the correct paper type...

View Article

Python • Re: printing image in python

This post may help viewtopic.php?t=287651Statistics: Posted by DS256 — Wed Jul 17, 2024 1:39 pm

View Article

Python • cups custom paper size

Hello everyone,I would like to know how to set custom paper size with Cups.My paper size is 50x75mmThanks a lotStatistics: Posted by mchimot — Thu Jul 18, 2024 5:30 am

View Article

Python • Tkinter & iconphoto

I have a simple python and Tkinter app which displays the CPU temperature. When minimized, the thermometer icon appears on the taskbar when using Bullseye but Bookworm shows a generic icon. This is...

View Article


Python • Re: cups custom paper size

I don't know the answer to that, but cups documentation has helped me before. Take a look there and see if it has what you need. https://openprinting.github.io/cups/#DOCUMENTATIONStatistics: Posted by...

View Article

Python • Re: Tkinter & iconphoto

This could be a Wayland problem.Switch to X11 and see if it works there. Open a Terminal window and type :Code: sudo raspi-configThen select Advanced - A6 Wayland then select X11.You will need to...

View Article


Python • Re: Need help for read numbers from a picture

As the github says# If you don't have tesseract executable in your PATH, include the following:pytesseract.pytesseract.tesseract_cmd = r'<full_path_to_your_tesseract_executable>'Your code seems...

View Article

Python • gpio library for new projects? is pigpio still the best answer?

several years ago I did quite a lot of messing about with gpo, and I used pigpio, which was a fantastic library which allowed really precise timings and even the use of DMA from memory to drive GPIO...

View Article


Python • Re: gpio library for new projects? is pigpio still the best answer?

For python have a look at gpiozero (“ which is installed by default in Raspberry Pi OS.”)Also rpi-lgpio (and gpiod)Due to Pi5 having the new I/O chipStatistics: Posted by neilgl — Sat Jul 20, 2024...

View Article

Python • Re: Debouncing digital inputs, best practices ?

If using the gpiozero Button, you can set bounce_time:https://gpiozero.readthedocs.io/en/stab ... tml#buttonCould you please explain how to add a second parameter using the example quoted in your...

View Article

Python • Apparent conflict between tkinter and gpiozero

I am trying to combine 2 programs which work correctly individually.I want to be able to use the tkinter GUI to display outputs from gpiozero.However, tkinter and gpiozero both use the Button...

View Article
Browsing all 1234 articles
Browse latest View live