9 votes

What model of Raspberry Pi is good for a local web server?

All Pi's should work for this simple set-up. Of course, there are limits to the implementation. But for a simple set-up as yours, you are far below the limits of the humble Zero W.
  • 2,331
7 votes

How to change host name before first boot?

If someone is still looking in this thread, you are now able to change the hostname (among other initial settings) from the Pi Imager before writing your boot drive. To enable Pi Imager advanced ...
4 votes

Does there exist a list of all required processes, for a raspberry pi running raspbian, to continue proper operation?

A number of issues with killing random stuff that you don't know what it is... Each process running is doing something. If you kill it, whatever that something is won't be working anymore. So before ...
  • 864
3 votes

Raspberry Pi hdmi black screen (SSH works fine)

I had a similar problem. My first Raspberry Pi, brand new, would not boot. Went through all the hoops of not booting RPi4B 8GB to finally trip over this link: https://github.com/raspberrypi/firmware/...
3 votes

UTF-8 support on Raspberry Pi

File is not in utf8 format, so the decoder is seeing an invalid (i.e., non-utf8) byte sequence. 0xbd is the ½ character in Latin-1, utf8 represents it as the two-byte sequence \xc2\xbd
  • 1,181
3 votes
Accepted

Can I upgrade my Raspberri Pi 3 Model B to a newer Raspbian version?

Yes, the latest Raspberry Pi OS Bullseye is compatible with all Raspberry Pi models. Note, Raspbian is now named Raspberry Pi OS. Best option is to get a new sd card and use Pi Imager to flash the ...
  • 6,430
3 votes

RasPi resets fake-hwclock time on USB Stick on reboot (Overlay FS)

I'm simply writing an answer, to share the "config" of /lib/systemd/system/fake-hwclock.service. Important Note: Before implementing any of this, please make sure to read the Edit at the ...
  • 175
3 votes

What model of Raspberry Pi is good for a local web server?

I hosted an Nginx server on a Pi 4 with 4 Gb of memory for a personal site, it worked well for local connections. Hosting a site to control a lamp should be within the capabilities of all Pi's, ...
  • 31
2 votes

My Raspberry PI hangs after searching for files on the SD card

You seem to have a faulty SD card which sporadically stops working during intensive use. Try using a different one, and if the issue goes away, just dispose of the faulty card. It might be that this ...
2 votes

SSH not working with fresh install

I was getting Permission denied (publickey,password). It turns out that for headless setups there is now a new step on top of creating the ssh enabling file: you need to setup the user enabling file. ...
2 votes

Temporarily disable expand filesystem during first boot

I found a very easy solution for this issue. Seems the automated resizing process only fires when the Raspian image is the LAST one. So what I did while trying to setup a 2TB OpenMediaVault server (...
2 votes

How to check if installed RTC is working or not?

I prefer to use this command: $ sudo hwclock -rv It's more affirmative and informative wrt the RTC status IMO. For example, here's an output from earlier today: $ sudo hwclock -rv hwclock from util-...
  • 19.2k
2 votes

How can I clone a display on a Pi 4?

From here: Open the Screen Layout Editor, drag HDMI2 on top of HDMI1, click the green checkbox, and done.
  • 21
2 votes

Watchdog on the RPi4

For the RaspberryPi4 it's more straightforward than for earlier software as much of the configuration scaffolding is already in place. Edit /etc/systemd/system.conf adding the line RuntimeWatchdogSec=...
  • 121
2 votes

How can I set Raspberry Pi keyboard layout with a one line command?

I figured out this sed command line to set e.g. german keyboard layout: sudo sed -i -e 's/XKBLAYOUT="[a-z][a-z]"/XKBLAYOUT="de"/' /etc/default/keyboard
2 votes

Raspbian: Enable/disable OverlayFS from terminal?

sudo raspi-config nonint enable_overlayfs or sudo raspi-config nonint disable_overlayfs Then reboot.
  • 121
2 votes

Can I upgrade my Raspberri Pi 3 Model B to a newer Raspbian version?

If you want the latest software download a new image from the raspberrypi.org site. That image will work on all Pis. You could manually upgrade between major versions but it is safer just to download ...
  • 68.3k
2 votes

Which is better to measure voltage and current,INA219 or current/voltage sensors?

Use the 1NA219, or any other IC that offers 'high-side' measurement. To explain: current is measured by putting a small resistor in the battery line; say you have a 12V battery and it is feeding 1 amp,...
  • 272
2 votes

BlueZ receive Bluetooth sensor information

gatttool is one of the tools that has been deprecated by the BlueZ project. If you are following a tutorial that uses those tools then you should be careful that the tutorial isn't incompatible with ...
  • 1,342
2 votes

BlueZ Profile RequireAuthentication=False not working when trying to initiate connection without pairing

I have tested the Python code you posted in your question on my system and it also didn't work. Looking at it more closely, and running some experiments, I noticed that you were not making the server ...
  • 1,342
2 votes
Accepted

Thermal mini printer receipt adafruit printing gibberish

First, make sure the baudrate matches. Your code uses 19200, while in the comments you mention 9600. That alone would explain the garbage you get. Print a test page (by holding the feed button as the ...
2 votes
Accepted

How to set the SPI comms delay from CS to SCLK?

You will have to control CS yourself. You will have to assert the signal, delay, and then call the SPI transfer. Unless your delay is significant (milliseconds rather than microseconds) this is ...
  • 68.3k
2 votes
Accepted

RasPi resets fake-hwclock time on USB Stick on reboot (Overlay FS)

This is most likely due to the fact that fake-hwclock gets called before your USB stick is mounted. Make sure fake-hwclock.service is executed after local-fs.target. Note that simply adding After=...
2 votes

How can I make it easy for my worker nodes to know where the central node is?

169.254.x.x is a Link-local address . Your router DOES NOT assign them. Some network clients will let you assign addresses in this range but it is futile as Link-local addresses are not routable. I ...
  • 55.5k
2 votes

Minicom not working

/dev/ttyAMA0 is connected to Bluetooth so this won't work. See How do I make serial work on the Raspberry Pi3 or later It IS POSSIBLE to disable Bluetooth but this is unnecessary to use serial. In the ...
  • 55.5k
2 votes
Accepted

Raspberry Pi Model 4 - Disconnects after a time of inactivity

I am not quite sure I follow your explanation of things in the answer you've provided. Your answer indicates you have resolved your problem for now, but your closing sentence suggests you are not ...
  • 19.2k
2 votes

Raspberry pi 4 Low voltage warning

The Pi requires 5V +/- 0.25 volts to operate properly. You will get the low voltage warning if the Pi has less than 4.65 volts.
  • 68.3k
2 votes

Reading data from GPS module using Python on Raspberry PI

I tend to use the pynmea2 library to parse the GPS data: import serial,time,pynmea2 port = '/dev/serial0' baud = 9600 serialPort = serial.Serial(port, baudrate = baud, timeout = 0.5) while True: ...
  • 6,430
2 votes
Accepted

How to get Python binding to recompiled libcamera?

You can enable the pycamera option when building libcamera: https://github.com/raspberrypi/libcamera/blob/f30ad033c911f874b4304938dc5a4c2e9ee07aa2/meson_options.txt#L62
  • 931
2 votes

How to get measured(analog/digital) output from 801s vibration sensor?

801 is a digital sensor, so you will not be able to get a analog output from it. Quote: Outputs a logic HIGH when module senses a vibration Ref.: https://protosupplies.com/product/801s-vibration-...
  • 2,587

Only top scored, non community-wiki answers of a minimum length are eligible