Code Monkey home page Code Monkey logo

inky-impression-weather-station's Introduction

Inky Impression Weather Station

Inky Impression eInk display from Pimoroni driven by a Raspberry Pi Zero (or any other Raspberry Pi) to display a seven day weather forecast.

Based on the original work by Rainer Bunger

Example Screenshot

Getting Weather information

The weather information is fetched from OpenWeather:

OpenWeather

Here you need to create an account and an API key.

Put the code into a file called apikey.py

You can use the sample file as follows

mv apikey.py.sample apikey.py
nano apikey.py
  • api_key = 'your openweathermap API Key'
  • lat="your latitude"
  • lon="your longtitude"

Setting up the screen

The Pimoroni Inky Impression display requires a bunch of software to be installed. My recommendation is to follow the description in a Pimoroni tutorial:

Inky Impression

The installation is done by executing a bash script, and it takes a while. Everything is installed for Python 2 and 3 which isn't necessary from my point of view, so you might consider deselecting version 2 in the script before running it.

Running the script

There are two ways to run this code

python3 weather.py

Running this will run this application in a loop and never stop

python3 once.py

Running this will run the code, update the screen and stop. Use this version if you want to put the script in cron job.

Running as a cron job

Run this the root cron as follows

sudo crontab -e

This will open the crontab file to be edited

* */6 * * * /home/pi/Inky-Impression-Weather-Station/once.py >/dev/null 2>&1

This example will run the update every 6 hours

Credit

  • The icons are provided by Erik Flowers.
  • The font is from David Jonathan Ross.
  • Original code by Rainer Bunger

Thank you too:

Icons and code table are from Erik Flowers:

Weather Icons

For easy access to this tool, I have uploaded pre-convered images, but they are still the oringal authors work.

The font is from David Jonathan Ross:

Bunjee

Licensing

The weather icons and the font are licensed under SIL OFL 1.1.

inky-impression-weather-station's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.