Build your own web server using a Raspberry Pi Pico W using Phew!

Опубликовано: 04 Октябрь 2024
на канале: Kevin McAleer
47,965
1.1k

*Thank you to Ian, who spotted the error in the forms demo - I hadn't copied the default.html file from the repository onto the Pico, and that's why it wasn't working! Great spot and thanks Ian!*

Did you know your Raspberry Pi Pico W can actually host websites? Using the new web server and templating library from Pimoroni you can build interactive and useful sites into your projects.

💁‍♂️ For more information on SMARS Robots, tutorials and more visit: https://www.smarsfan.com​

🎖To join the membership at 🥉bronze, 🥈silver or 🥇gold levels, head over to
https://www.smarsfan.com/membership

Join me on Discord - https://action.smarsfan.com/join-discord

Join the list - https://action.smarsfan.com/join-the-...

☕️ Enjoy this video? Buy me a coffee! https://www.buymeacoffee.com/kevinmca...

📸 Follow me on Instagram - @kevinmcaleer   / kevinmcaleer  
🐦 Follow me on Twitter - @kevsmac   / kevsmac  
🙂📘 Join the Facebook group - Small Robots   / smallrobots  

👩‍💻 Phew demo MicroPython Code on GitHub: https://www.github.com/kevinmcaleer/p...

🎵 Music by Epidemic Sounds https://www.epidemicsound.com/referra...

#Pico​ #MicroPython​ #Robotics
00:00:00 Introduction
00:00:46 Session goals
00:01:57 What is Phew?
00:02:43 How The Web Works
00:04:01 Installing Phew
00:04:45 Demo 1 - Installing Phew
00:08:37 Helper Functions
00:09:02 Demo 2 - Quick connect to Wifi
00:11:12 Logging
00:13:27 Why Log?
00:15:40 Demo 3 - Logging
00:19:53 Web Server
00:20:57 Demo 4 - Simple Site
00:24:26 Templates
00:25:52 Demo 5 - Templates
00:30:16 Template - going further
00:30:46 Demo 6 - Multi-part pages
00:34:29 Bootstrap
00:52:30 Simple Blog page
00:53:43 Forms
00:54:49 Demo 7 - Forms
01:10:31 Next Cube Model