Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
4 answers
119 views

Alerts by phone calls for location-relevant Israel Home Front Command alerts

This code checks the Israeli Home Front Command API, and when there is a new alert for specific areas it sends a request to a Django app which I am hosting in the cloud. The Django app then sends a ...
Kovy Jacob's user avatar
3 votes
1 answer
314 views

Python script that starts a video recording on a Raspberry Pi using a USB webcam

I’d love some critique, pointers or any improvement to my code. My project was mainly to record a video, through a Flask Application (online), then save it and display it on the Flask Application. ...
AlexanderKS27's user avatar
3 votes
1 answer
114 views

Raspberry Pi/PySimpleGUI based resistance test system

Hardware: Raspberry Pi 3B+, Elecrow touchscreen, DFR0660 Barcode Scanner, ADS1115 ADC I would like any bad practices/possible failure points pointed out specifically in the ...
Isaias_EE's user avatar
4 votes
3 answers
501 views

Loop to print changes in irrigation state to turn on and off a pump when water is low

Python Noob building an automation irrigation system in Python for Raspberry Pi. Python has two functions in the most basic use case: on/off the LED (which will in future be a relay->pump) and ...
GlennB's user avatar
  • 93
6 votes
1 answer
282 views

Python script which sends telegram message if Raspberry Pi's temperature crosses 60 °C

I need to know if there is any way I can optimize my code so that it does not use 0.6% of my total memory - which is approx. 22.4MB. This is a really small script that runs for as long as the ...
Aditya Sahu's user avatar
8 votes
2 answers
263 views

Car computer in Python / GPS tracking VERSION 2

This is an updated question with new code, taking into account your comments from last time: Car computer in python / GPS tracking I have an old car that I use for long distance driving and have coded ...
Damien Bourdonneau's user avatar
16 votes
2 answers
2k views

Car computer in python / GPS tracking

I have an old car that I use for long distance driving and have coded an onboard computer based on a Raspberry Pi 3 and a few other modules. It's my first project in Python and while I've already ...
Damien Bourdonneau's user avatar
1 vote
2 answers
181 views

Error handling on temperature sensor

I built an allsky camera with a temperature sensor and a heater. The heater is supposed to turn when the sensor (measure_temp()) return a temperature below 8, which ...
VBA Pete's user avatar
  • 257
3 votes
1 answer
3k views

Snake Game for Raspberry Pi Sense HAT written in Python

Goals learn Python improve problem-solving skills improve my coding style Hardware This code runs on a Raspberry Pi 3 Model B (Raspbian OS) in combination with the Sense HAT. The 8x8 LED-Matrix on ...
dadul96's user avatar
  • 173
14 votes
2 answers
3k views

Sort-of Alexa clone using Python on a Raspberry Pi

It's still a working process. There are still things I would like to add, and if you have any critiques or ideas they would be greatly appreciated! I would like to know if my code is readable. ...
AwesomeMeAY's user avatar
2 votes
0 answers
358 views

Streaming video from PiCamera to Windows using Java and Python

I'm making a robot with Raspberry. My goal is: Code a server on Rasbperry using Python that captures the image from camera and sends data via socket Code a client on PC using Java that reads data from ...
Fabio Mancuso's user avatar
17 votes
4 answers
1k views

Sensor logger for Raspberry Pi in a stratospheric probe

I'm writing a Python Script for a Raspberry Pi to measure different sensors. We are planning to send the Pi with that Script running to the stratosphere, so the power usage for the Pi is limited. I ...
Lexu's user avatar
  • 273
2 votes
1 answer
115 views

Refactoring coordinates for Minecraft Pi buildings written in Python

I'm fairly new to coding and I wrote this script in Python for a house with a roof in Minecraft Pi. I've found different ways to write the coordinates to make the code base shorter, but I'm wondering ...
DysFunction's user avatar
8 votes
1 answer
420 views

Runner 1-bit game in Python like the offline chrome dino

I made this little game to test if my Nokia 5110 screen can handle games. As in handle many frames per second/game loops. I am using a library made for this screen called Adafruit_Nokia_LCD These ...
Offtkp's user avatar
  • 371
3 votes
0 answers
320 views

OLED display application for Raspberry Pi

Python script to output status information to a small OLED screen connected to a Raspberry Pi. I'm relatively new at writing python so although the app works and outputs correct information it is far ...
David's user avatar
  • 283

15 30 50 per page