Weather Station software setup
There are a few steps involved in setting up the software for the Weather Station. Before beginning this section, please ensure that you have registered your School and Weather Station on the Oracle database.
Getting the latest Raspberry Pi OS
- The SD card that comes with the Weather Station kit contains a now-out-of-date version of Raspbian, the Raspberry Pi operating system.
- Follow the guide on the Raspberry Pi website which tells you how to install the latest version of Raspbian.
Setting up the sensing and database software.
The simplest way to set the software up is to use a simple install script. If you wish to proceed manually through the steps, then you can follow this guide, but this is only recommended if you have a firm understanding of command line interface, enjoy unnecessary labour, or want to make custom adjustments to your setup.
When Raspbian boots up, press Ctrl and Alt and the character t on your keyboard. This will open up a terminal prompt.
It's always best to ensure the software you are running is the latest version. Ensure that your Raspberry Pi is connected to the internet and then type the following into the terminal window.
sudo apt-get update && sudo apt-get upgrade -y
Note that sometimes during the
upgradeprocess you maybe prompted as to whether you would like certain pieces of software to be installed or certain settings to be changed.
Once Raspbian has been updated, it's time to install the Weather Station software. Type (or copy and paste) the following line into the terminal window.
bash <(wget -O- https://gist.githubusercontent.com/MarcScott/a843c4dd4dfa3934b3de7b1fc0beadf8/raw/e65fd1c178202cf4ad8d4361ed5dcc1eeb2bb8d5/weather_install.sh)
You can now proceed through the installation process:
When prompted, press any key to continue.
When prompted, type y if the time displayed is correct.
If the time is incorrect, type n and then enter the correct time in the format
Next you will need to choose a database password. It can be anything you like, as it is the password for the local database on your Raspberry Pi. Write the password down somewhere so you do not forget it.
- Next you need to type in the Weather Station name and password/key that you learned when you registered your Weather Station.
- Once the install has finished, your Raspberry Pi should reboot. You can now proceed to setting up the rest of the hardware.