I explain first boot your Raspberry Pi and set up Python environment for developing.
This project is developing now, yet not finish.
Please get somethings next list.
- Raspberry Pi 3B, 3B+
- RPi TPH Monitor Rev2
- micro SD card, 16GB above(recommended)
- USB connected key board
- USB connected mouse
- Raspbian
- HDMI cable and display
- use TV instead of display
- Python development environment
- We supported only Python 3.7 upper version.
You must set up your Raspberry Pi.
On your Mac or PC(Linux, MS-Windows), you can install Raspbian to microSD card.
I recommend using official Raspbian which can download from Raspberry Pi Downloads.
You will choose “Raspbian Buster with desktop and recommended software” or “Raspbian Buster with desktop”.
You must read installation guide for installing operating system image.
And download balenaEtcher.
If you use Apple Mac, you can install via brew
.
$ brew cask install balenaetcher
Only first boot time, You must connect USB keyboard, USB mouse, and monitor via HDMI. You must set Wi-Fi network and enable SSH via raspbian-config
. Please set fixed IP address, for example 192.168.0.121/24
.
On your Mac or PC, remote connecting test via ssh
.
$ ssh pi@192.168.0.121
I recommend upgrade your Raspbian.
$ sudo apt update
...
$ sudo apt upgrade
You can development on your Raspberry Pi.
I recommend preparing development environment on your Mac or PC.
Please install
Install Python via PyEnv
$ pyenv install 3.8.0
And setup pyenv-virtualenv
$ pyenv virtualenv 3.8.0 djrpi380
c.f. my home directory.
$ pyenv versions
* system (set by /Users/mitsu/.pyenv/version)
3.7.4
3.7.4/envs/djsample374
3.8.0
3.8.0/envs/djrpi380
djrpi380
djsample374
$ python --version
Python 2.7.16
my environment directory.
$ cd ~/git/hub/django-rpi-tph-monitor
$ pyenv local djrpi380
$ pyenv versions
system
3.7.4
3.7.4/envs/djsample374
3.8.0
3.8.0/envs/djrpi380
* djrpi380 (set by /Users/mitsu/git/hub/django-rpi-tph-monitor/.python-version)
djsample374
$ python --version
Python 3.8.0
If you use MS-Windows, venv instead of pyenv.
Let’s begin development “Home automation application”.
We divied codes and documents since
- Documents repositories
We published documentation on Read the Docs.
TPH forecast with Raspberry Pi and AI documentation.