wzern / weather-pi-project

⛅ A year 13 digital and electronics project

Home Page:https://weatherpi.wzernikow.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hero image

⛅ ESPi Weather Station | 2022

Powered by ESP8266 and Raspberry Pi

Badge showing when the last commit was made Badge showing the total of project issues Badge showing project license type

About   |   Technologies   |   Requirements   |   Get Started   |   License   |   Author

🎯 About

This is a year 13 digital and electronics project in which we build a weather station using a Raspberry Pi 4 and some ESP8266 micro-controllers with sensors

⚙️ Main Technologies

html5 logo css3 logo javascript logo php logo arduino logo

✅ Requirements

🚀 Getting Started

Downloading and Installing Raspberry Pi OS

Downloading and Installing Raspberry Pi OS

Once you have all the required components, use the next steps to prepare your Raspberry Pi 4 to act as a database and webserver for your weather station system. This is where the ESP8266 sensor units will send their sensor readings for us to see in our web-browser.

The following steps will work on Linux, Windows and MacOS

  1. Insert a microSD card / reader into your computer
  2. Download and install the official Raspberry Pi Imager
  3. Click Choose OS and select 'Raspberry Pi OS (Other)'. Then choose 'Raspberry Pi OS Lite (64-bit)'
  4. Click Choose Storage and choose your SD Card
  5. Click the Settings icon in the bottom right corner. Set the hostname to espi-weather, enable SSH, and set your password for the 'pi' user. Please DO NOT change the username, keep it as pi or else the installer script for this project will not work properly.
  6. Finally, click Write

Booting Your Raspberry Pi for the First Time

Booting Your Raspberry Pi for the First Time

Coming Soon


Preparing your Raspberry Pi for the installation scripts

Preparing your Raspberry Pi for the installation scripts

In order to run the scripts that install the software for this project, we need to install Git

sudo apt install git -y

It is also recommended to set your Timezone so the system time is accurate. The following command is setting the timezone to Auckland, default for New Zealand

sudo timedatectl set-timezone Pacific/Auckland

Running the weather station install script

Running the weather station install script

This script was built to configure the Raspberry Pi as a database and webserver. It will pull the latest firmware from this repository, configure the backend services, and install the web-interface where you will be able to visualise the sensor data and configure system settings

First we clone my repository into the home directory

cd ~/
git clone https://github.com/wzern/weather-pi-project
cd weather-pi-project/

Next we execute the install.sh script

sudo bash install.sh

First time logging in

ESPi Weather Interface - https://raspberry_pi_ip/

Username: admin

Password: password

If you encounter problems with the script, please open a new issue on this repository with a screenshot of the script's output


📝 License

This project is under license from MIT.

A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

For more details, see the LICENSE file.

🙋‍♂️ Author

Made with ❤️ by William Zernikow

About

⛅ A year 13 digital and electronics project

https://weatherpi.wzernikow.com

License:MIT License


Languages

Language:PHP 49.1%Language:Shell 17.8%Language:JavaScript 12.5%Language:CSS 10.1%Language:C++ 6.0%Language:Python 4.6%