Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsWireGuard is a modern, fast VPN. A Raspberry Pi at home can be the VPN server: your phone connects to it from outside, and then behaves as if it were on your home Wi-Fi. That is the safe way to watch a home camera or use Pi-hole away from home, instead of forwarding camera ports. PiVPN installs WireGuard and creates client profiles with a QR code. It needs a router that lets you forward one UDP port, and a home internet connection with a public address; many Indian home broadband connections use shared addresses, in which case you need a provider that gives a public IP or a relay.
Keep the Pi updated and use strong keys. Never share client QR codes.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
Official 27 W supply. The Pi should stay on, so a power bank or UPS in line helps through short cuts.
pivpn.sh# on the Pi, after Raspberry Pi OS Lite is flashed and updated
curl -L https://install.pivpn.io | bash # choose WireGuard, port 51820
pivpn add # create a client profile (name it after the device)
pivpn -qr # show a QR code to scan in the WireGuard phone app
pivpn -c # list connected clients
pivpn -l # list clients
Check the port forward is UDP and points to the Pi's fixed address, and that the Pi's DNS works.
Your provider may use a shared address (CGNAT). Ask for a public IP or use a relay.
Your home IP address changed. Check that the dynamic DNS name updates.
WireGuard is modern and secure, but only the one UDP port is exposed, and you must keep the Pi updated.
Open ports are scanned constantly. A VPN exposes one hardened port rather than every device.
Only the traffic that goes through the VPN does, and WireGuard is fast.
3 parts: Raspberry Pi 5 with 4GB RAM, Official 27W USB-C PD Power Supply for Raspberry Pi 5 – IN Plug and Official Raspberry Pi 32GB A2 Class Micro SD Card. On this page you can tick the parts you already have and add only the rest to your cart.
It is a advanced project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (pivpn.sh).
About ₹16,247 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
What a VPN server does; Installing WireGuard with PiVPN and creating a client; Forwarding one UDP port and using dynamic DNS.
Ideas that reuse this build: Raspberry Pi 5 Pi-hole network ad blocker. They are listed under Take it further on this page.
Your first MicroPython project: temperature and humidity on an OLED.
A web page with ON and OFF buttons that switches a relay over Wi-Fi.
A warm ring light that fades up at dusk and down at dawn.
Turn a Pi and a touchscreen into a home command centre with a clock and to-do list.
Learning project. Check every circuit and the datasheet of each part before you power it up.