Dev Neil A
Dev Neil A
  • 65
  • 41 562
Building a Raspberry Pi Weather Station with Python | Part 3
In this third and final part of the series on building a weather station with a Raspberry Pi and Python, I’ll be adding a database to the program to allow for the readings to be stored in a structured way.
Following that, I’ll be building a simple web server using Python and Flask that will show the last 10 records from the database and include an option to download all the readings in the database to a CSV file.
#raspberrypi #python #howto #tutorial
Link to GitHub repository:
github.com/York13Pud/python-environmental-sensor
Timestamps:
0:00 Introduction
00:35 Installing SQLAlchemy
01:23 Adding a database
09:31 Building the Web Server
20:27 Final words
Products used:
Pi 3:
thepihut.com/products/raspberry-pi-3-model-b?variant=1138129768
Pi 3 Power Supply:
thepihut.com/products/raspberry-pi-zero-uk-power-supply
SD Card (Check the sellers feedback before buying):
64GB:
www.amazon.co.uk/gp/product/B073JYVKNX/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
128GB:
www.amazon.co.uk/gp/product/B073JYC4XM/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
256GB:
www.amazon.co.uk/gp/product/B0758NHWS8/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
16 x 2 LCD Module
www.amazon.co.uk/dp/B09FXMLYKZ?ref=ppx_yo2ov_dt_b_fed_asin_title
20 x 4 LCD Module
www.amazon.co.uk/dp/B099F2KPR4?ref=ppx_yo2ov_dt_b_fed_asin_title
Adafruit BME280
thepihut.com/products/adafruit-bme280-i2c-or-spi-temperature-humidity-pressure-sensor?variant=27740035153
Breadboard:
thepihut.com/products/full-sized-breadboard
Jumper / Dupont wire kit:
thepihut.com/products/thepihuts-jumper-bumper-pack-120pcs-dupont-wire?variant=13530244284478
QT Cable:
thepihut.com/products/stemma-qt-qwiic-jst-sh-4-pin-to-premium-male-headers-cable?variant=19932905209918
มุมมอง: 6

วีดีโอ

Elgato Wave 3 Pop Filter Unboxing and Review
มุมมอง 5028 วันที่ผ่านมา
In this video, I do an unboxing, installation and sound check of the Elgato Wave 3 Pop filter. The sound check will be done with and without the filter installed so you can hear if there is any difference. The filter can also be used on the Wave 1 as well. This video is not sponsored and I bouth the filter myself. #elgato #unboxing #review Link to the Elgato Wave 3 Pop Filter: www.amazon.co.uk/...
UGREEN USB-C 65W 2-Port GaN Charger Unboxing and Review
มุมมอง 47หลายเดือนก่อน
In this video, I unbox and review the UGREEN USB-C 65W 2-Port GaN Charger that I recently bought.I test the power adapter with a number of items I have, including PS4, PS5 and Nintendo Switch controllers along with a Nintendo Switch and an iPad Pro 2018 model.Disclaimer: I paid for the power adapter myself and this video is not sponsored. Links: UGREEN USB-C 65W 2-Port GaN Charger: www.amazon.c...
Maidesite T2 Pro Standing Desk - Seating position stability
มุมมอง 90หลายเดือนก่อน
In this video, I show the stability of the Maidesite T2 Pro Standing Desk in the seating position. This was a question that was asked in the comments on the main review of the desk so I thought I would do a follow up video showing that. Product Links: Maidesite T2 Pro Standing Desk: www.amazon.co.uk/gp/product/B087M1KG5X/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1 Maidesite Desktop: www.amaz...
Apple iPhone 16 Plus Black Unboxing
มุมมอง 2.4Kหลายเดือนก่อน
I recently ordered a new iPhone 16 Plus in black with 256GB of storage to replace my over five year old iPhone 11. In this video, I'm going to do a quick unboxing of the iPhone 16 Plus. I might do a follow-up video later on comparing the iPhone 11 I have used for five years to the iPhone 16 Plus. If you have anything that you would like to see me cover in that video, please leave a comment and ...
Code with me | Using Dates and Times in Python | Python for Beginners
มุมมอง 45หลายเดือนก่อน
In this video, I go over how to work with dates, times and time zones in Python. Working with dates and time is something that most Python developers should know, if not all as it is a commonly used data type. Link to code on GitHub: github.com/York13Pud/youtube-code/tree/main/python/dates-time #python #howto #programming #ai
How To Create a macOS 15 Sequoia USB Installation Drive
มุมมอง 1.7K2 หลายเดือนก่อน
In this video, I show you how to create a USB installation drive for macOS Sequoia. The process is the same wetheryou are using an Apple Silicon-based or Intel-based Mac. You can find a list of support Macs for macOS Sequoia at the below link: support.apple.com/en-gb/120282 Here is the command to run in the terminal. Remember to change NameOfUSBDisk to the name of your USB stick: sudo /Applicat...
Code with me | Creating and Using Virtual Environments with Python | Python for Beginners
มุมมอง 532 หลายเดือนก่อน
In this video, I’ll be explaining what a virtual environment is, why & when to use them and showing you how to create and use a virtual environment with a sample Python program. #python #ai #howto #tutorial Timestamps: 0:00 Introduction 00:26 What is a Python Virtual Environment? 02:10 Sample Project Prerequisites 02:38 Checking Installed Packages 03:14 Creating the Project Folder 03:50 Creatin...
Building a Raspberry Pi Weather Station with Python | Part 2
มุมมอง 1402 หลายเดือนก่อน
In this second part of this tutorial series on howto build a weather station with a Raspberry Pi and Python, I’ll be making the app more modular, along with adding error logging and environment variables to make customising the hardware a little easier. The goal is that by the end of the third part, the sensor readings from the Adafruit BME280 sensor will be stored in a SQL database and the dat...
Code with me | Creating Sample Data With Python and Faker | Python for Beginners
มุมมอง 352 หลายเดือนก่อน
In this video, I will be showing an example of how to use the faker library in Python to generate some names and addresses. The fake data it generates can be used for testing an app, adding dummy data to a SQL database or for data analysis for example. #python #coding #ai #howto
Northern Lights From Rotherham England UK - 11th October 2024
มุมมอง 283 หลายเดือนก่อน
Northern Lights From Rotherham England UK - 11th October 2024
Maidesite T2 Pro Standing Desk Unboxing and Review
มุมมอง 7593 หลายเดือนก่อน
Maidesite T2 Pro Standing Desk Unboxing and Review
Code with me | Swapping Two Variables Values with Python | Python for Beginners
มุมมอง 183 หลายเดือนก่อน
Code with me | Swapping Two Variables Values with Python | Python for Beginners
Building A Weather Station with a Raspberry Pi and Python | Part 1
มุมมอง 4533 หลายเดือนก่อน
Building A Weather Station with a Raspberry Pi and Python | Part 1
Samsung T7 Shield 2TB Portable SSD Unboxing and Review
มุมมอง 5124 หลายเดือนก่อน
Samsung T7 Shield 2TB Portable SSD Unboxing and Review
How To Setup A Real Time Clock on A Raspberry Pi 4 Using Ubuntu 24 04
มุมมอง 5335 หลายเดือนก่อน
How To Setup A Real Time Clock on A Raspberry Pi 4 Using Ubuntu 24 04
How To Install Ubuntu 24.04 or 24.10 On A Raspberry Pi 4 Or 5
มุมมอง 1.5K5 หลายเดือนก่อน
How To Install Ubuntu 24.04 or 24.10 On A Raspberry Pi 4 Or 5
A Pong Desktop Game Built With Python
มุมมอง 135 หลายเดือนก่อน
A Pong Desktop Game Built With Python
Harvard CS50 Final Project | Blog Site Statistics Analysis Using Python
มุมมอง 65 หลายเดือนก่อน
Harvard CS50 Final Project | Blog Site Statistics Analysis Using Python
How To Remove the Message of the Day on Ubuntu Linux
มุมมอง 1206 หลายเดือนก่อน
How To Remove the Message of the Day on Ubuntu Linux
EE Smart Hub Plus Unboxing and Review (June 2024)
มุมมอง 17K6 หลายเดือนก่อน
EE Smart Hub Plus Unboxing and Review (June 2024)