python's questions - English 1answer

2.181 python questions.

I just want to run a python file on raspberry pi and use terminal code ssh. So, I don't want type password to do that. What should I do?

I have a project I want to do, and I got an spi touch screen(tontec 3.5") for it. I want to start up into some sort of GUI application. I only have roughly 950mb left on my micro sd (8gb, install ...

I'm trying to check on the status of the pigpiod process from within a python script. These two methods both appear to work so far. Are there any significant advantages or disadvantages of one over ...

The red LED on my Pi Camera is not turning off. Does this mean the camera is still on even after the camera.stop_preview() command is executed? def setup_camera(): camera = picamera.PiCamera() ...

I'm in a bit of a python death spiral, here, with the "ImportError: No module named encodings" error when I try using python. I've read a dozen or so different posts on the problem, and none of them ...

I am having a problem while trying to upgrade my Raspberry Pi. It was a simple routine upgrade. I did update before upgrading. However, there seems to be an error while upgrading. The error is a ...

I have a Raspberry Pi Zero W and want it to use as an Internet Radio. So I wrote a Python script that connects to my bluetooth speaker and starts a stream. Everything works fine, but i always need to ...

I am trying to get python speech recognition (PSR) for a basic Pi project. I am using: OS: PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)"...

I've looked around a lot now and can barely find any information on how to clone RFID tags with the Raspberry Pi, I've seen plenty of content on how to do it using an Arduino but I would really rather ...

I have had my raspberry Pi 3b for a few months so I'm just getting used to it. I would however want to install PyCharm because I want to use my Pi to program on rather than my PC. Any ideas would be ...

Trying to just run the example code from SpeechRecognition (python 3.4.2) and it immediately fails when trying to create the Microphone class: import speech_recognition as sr # obtain audio from the ...

I'm currently using an mq5 gas sensor in my kitchen with the MCP3208 ADC. my code shows a continuous loop of the voltage charge. in the mq5 as it detects gases in the air. It is supposed to print ("...

On a fresh install of Raspbian Jessie+PIXEL (1/11/17 release), I installed from the source Python 3.6.0. I downloaded the tgz file from Python.org and built from source. I used a couple of sources ...

I have a python system script with various functions. I have multiple buttons hooked up to the Pi and I am using this code: import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(22, GPIO.IN, ...

I have installed Apache2 on the Raspberry and the idea is to run a Flask app. I managed to write a very simple app: import requests from flask import Flask from flask import make_response from flask ...

Here’s my plan: have a python script running hardware pwm code for a brushless motor im using. The idea is to have an iPhone have an app where 1. The python code can be interacted with to adjust a ...

I need to run a Python script on boot with display support I have tried using rc.local, cron and a couple of other methods. All of them start the program and it runs as it should but I have a blank ...

Any way to interact between node.js and python. I wrote a IoT dashboard using Node.js, then want to add a 1602 LCD screen to Raspberry Pi using python, so any way to interact between python and node....

I would like to control 10 different devices with SPI. As there is not enough ChipSelect outputs I use GPIO to toggle a MUX on the clock. Problem is I have to wait until the SPI is done transmitting ...

I have a python script that is located at /etc/testscripts/WebServer. I call this usually from the command line by calling sudo python3.6 /etc/testscripts/WebServer. I have a bash script that looks ...

I installed gspread library and ran pip install gspread and followed all the instructions on this page. I've read many other threads on this issue and have checked that no file named gspread.py exists ...

I would like to create an online interpreter that can be used to run sonic-pi. The goal of this being to allow people to collaboratively control the sandbox environment to create music with sonic-pi ...

So far i get a hall sensor and a raspberry pi 3. The hall sensor has 3 wires. I connected 2 of them for power it up (12v) and on the signal one i put a voltage divider to get around 3V on the output. ...

Problem: The code below can't access the display when running as a service. I have my raspi hooked up to a touch screen monitor in the kitchen and I've attached a Passive Infrared sensor to the GPIO ...

I'm experiencing some difficulties when I attempt to identify the MAC address of the built-in wifi in my raspberry pi 3 model B. My application requires the built-in wifi to always be identified as ...

I get an internal server error when I import the gpio pins library in my simple __init__.py file. And the debugger doesn't show up. As I understand it, the server doesn't have the permission to ...

I am a new to Python. What I want to do is that playing different videos depends on distance using Ultrasonic sensor. For example, if the distance <= 20, play movie1. if the distance > 20, play ...

I have installed requests but I'm unable to install the python-firebase package. I want to fetch data from firebase on my Raspberry Pi 3. I have used the following code to do the same on my PC. from ...

Working on a Raspberry Pi Model 3 B, running raspbian. Running Kivy v1.9.2-dev0 and Python v2.7.3 Trying out one of the Kivy examples but for some reason the application won't come up in "Windowed ...

I'm looking for a way to control the screen brightness from code. I saw this post but this just turns the screen on and off. How can I dim the screen before it goes to sleep instead of just turning it ...

I'm running kivy on a Raspberry Pi. I accepted that apparently you can't get around the fullscreen, but I can't get the cursor to show either. I tried by adding touchring = show_cursor=true to the [...

I connected this sensor with raspberry via UART( I have found that this IR sensor is one of few Lego sensors that connects via UART), and make serial_read and serial_write python scripts, just to test ...

For a project i need to be using ssl 1.0.2. For some reason though python seems to be pointing to a wrong version. i have installed pip pyOpenSSL and upgraded libssl-dev and python3-openssl, but ...

Hello great community of helpers! We new programmers greatly appreciate your continuous help. Thank You! Can you explain this 1 line of code below... - Or break it down into separate chunks. I ...

i am trying to make the file to run on startup with rasbian STRETCH , the file need to be execute like this "configurator.py settings.conf" with this config it doesn't work [Service] Type=idle ...

Im working on a university project with raspberry and gpiozero. I need to manage the button response to take diferent actions. The problem is that de function button.is_pressed its always true (even ...

I am attempting to run an array with mp4’s in a folder and play them at random through omxplayer. My result is the system looking for a mylist file and not entering the folder for the mp4’s. Any help ...

I would like to read an Eddystone Beacon using my Raspberry Pi 3 to calculate distance from the beacon. I can't find any resources to do this from the official Eddystone documentation. How should I go ...

I got the beacon result printed on linux (raspbian) terminal through command sudo python testblescan.py [source code: https://github.com/switchdoclabs/iBeacon-Scanner- ], but when I try to run the ...

I have a reed switch (actually several reed switches) that came pre-installed in my home as alarm sensors. When the 2 parts are together, the circuit is closed, when the 2 parts are apart, the ...

I am trying to use the smbus write_word_data command which takes three arguments addr, cmd, value - all of the documentation that I can find tells me that I need to specify cmd, but gives no clue as ...

I've got a python script on my Pi 3 to read a value from an ultra-sonic sensor then write to a db - that alls grand. I've tried to make a crontab task scheduler for it, but it's not working. First, ...

I am new to posting questions on this site so forgive me if this isn't in the best place or if I do something wrong. I have two Pi's and I am trying to capture images in a loop (giving me a video), ...

I'm using this in as my /etc/init.d/pirateRadio.sh the Radio does play a wav with this in the rc.local export PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/bin sleep 10 ( exec &&...

I used pip to install opencv3 with the following command on an Anaconda virtual environment. install opencv-python I successfully installed it because I can see the package in pip list. (olfatf)...

I am a new programmer, trying to learn python. I am using the sense hat to mess around with, I want to make it like rotate RGB colors. I am using the sense.set_pixel and passing in the x,y and r,g,b ...

I bought a MCP23017 and doing some small test with it. I've made a simple Python script to make read_out of pin state. Can anyove explain to me, why i'm loosing a bit when GPIO_A7 is triggered? I've ...

I acquired a set of images with the command raspistill -r -ss 100000 -o image.jpg, and I'd like to process the 'JPEG+RAW' images, which I already obtained, with OpenCV on python. I am aware of ...

This is how I'm fading some LEDs using a logarithmic function. But with that the LEDs are flickering somehow. I don't understand why... import time import math import RPi.GPIO as GPIO GPIO.setmode(...

I am working on a project in which I have to play 5 mp3 songs in a sequence one after another. Each song has a duration of 10s. For that purpose, I am using pygame library. All is working fine but I ...

Language

Popular Tags