ESP8266 Weather Station
ESP8266 Weather Station
Getting Started Guide
About the Book
The ESP8266 is a programmable chip similar to the Arduino microcontrollers but it can be easily connected to a WiFi network. This guide helps you to get started with your first Internet-of-Things (IoT) project: a crisp OLED display shows weather information on several side-scrolling screens. In a first part the guide covers which hardware components to use, which software to install and how to configure the demo code to display weather information for your city. Summaries at the end of each chapter help to understand what has been accomplished. Info boxes explain important expressions and technologies to beginners.
In the second part of the book three more projects are introduced: a plane spotting tool which fetches information from the internet about the planes that are above your head, a world clock which displays times in various timezones together with beautiful icons. Do you want to measure temperature and humidity outside your house? The ClimateNode project explains how to do that.
- ESP8266 Module
- OLED Display
- Wires & Cables
- Download and Install the Serial Driver
- The Arduino IDE
- Install the ESP8266 tool chain
- Testing the Setup: WiFi Scanner
- Trouble Shooting
ESP8266 Programming Basics
- The Arduino Sketch
- Hello World: The serial console
- Input/Output: GPIO pins
- Measuring analog signals
Using External Components
- Connecting the Display
- Displays, Drivers and Protocols
- Driver Initialization
- Basic Drawing Operations
- Hello World
- More Drawing Methods
- The DHT Sensor
- Wiring the Sensor
- Installing the Libraries
- Using the Sensor
The ESP8266 WeatherStation
- Installing the libraries
- Open the Weather Station Example
- Getting the OpenWeatherMap API Key
- Configuring the Weather Station
- Connecting the Hardware
- First Run
The WeatherStation Code Explained
- The JSON Streaming Parser
Collecting and Displaying Local Data
- The Climate Node Setup
- Thingspeak Setup
- Programming the Climate Node
- Displaying the data on the WeatherStation
- The ESP8266 PlaneSpotter
- The ESP8266 WorldClock
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.