Code Monkey home page Code Monkey logo

esp8266-weather-station's Introduction

Build

  • Stable: Build Status
  • Development: Build Status

esp8266-weather-station

New version of the ESP8266 Weather Station

Arduino IDE

Make sure you use a version of the Arduino IDE which is supported by the ESP8266 platform. You can find it here: https://www.arduino.cc/en/Main/OldSoftwareReleases

Setup Arduino IDE

  • Install the following libraries with your Arduino Library Manager in Sketch > Include Library > Manage Libraries...

  • ESP8266 Weather Station

  • Json Streaming Parser (by Daniel Eichhorn)

  • ESP8266 Oled Driver for SSD1306 display (by me as well). Make sure that you use Version 3.0.0 or bigger!

  • Go to http://wunderground.com, create an account and get an API Key

  • In the Arduino IDE go to File > Examples > ESP8266 Weather Station

  • Enter the Wunderground API Key

  • Enter your Wifi credentials

  • Adjust the location according to Wunderground API, e.g. Zurich, CH

  • Adjust UTC offset

Setup for PlatformIO

If you are using the PlatformIO environment for building

  • choose one of the available IDE integration or the Atom based IDE
  • install libraries 561, 562 and 563 with "platformio lib install"
  • adapt the WeatherStationDemo.ino file to your needs (see details above)

Upgrade

The ESP8266 Oled Library changed a lot with the latest release of version 3.0.0. We fixed many bugs and improved performance and changed the API a little bit. This means that you might have to adapt your Weather Station Code if you created it using the older 2.x.x version of the library. Either compare your code to the updated WeatherStationDemo or read through the Upgrade Guide here: Upgrade Guide

Available Modules

  • TimeClient: simple class which uses the header date and time to set the clock
  • NTPClient: a NTP based time class written by Fabrice Weinberg
  • WundergroundClient: fetches current weather and forecast from wunderground.com
  • ThingspeakClient: fetches data from Thingspeak which you might have collected with another sensor node and posted there. I use this to measure outdoor temperature and humidity and show it on the WeatherStation with a ClimateNode: https://shop.squix.ch/index.php/esp8266/climatenode.html

Why Weather Station as a library?

I realized that more and more the Weather Station was becoming a general framework for displaying data over WiFi to one of these pretty displays. But everyone would have different ways or sources for data and having the important part of the library would rather be the classes which fetch the data then the main class. So if you write data fetchers which might be of interest to others please contact me to integrate them here or offer your code as extension library yourself and call it something like esp8266-weather-station-. I will gladly list it here as third party library...

esp8266-weather-station's People

Contributors

a1rb4ck avatar ak-unitb avatar count023 avatar fowlerk avatar ivankravets avatar neptune2 avatar squix78 avatar stony2k avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.