Code Monkey home page Code Monkey logo

inky-impression-dashboard's Introduction

lib directory contents

weather-impression

Weather station for PIMORONI Inky Impression(5.7") https://shop.pimoroni.com/products/inky-impression-5-7

How to install

This app can be installed on a fresh installation of Raspberry Pi OS (Buster). While it may work with other versions of Raspberry Pi OS, I have not tested it on those versions.

Option 1 : Easy install for Raspberry Pi OS(Buster)

This command will install all required libraries also set up a cron job for the superuser.

curl https://raw.githubusercontent.com/kotamorishi/weather-impression/main/install.sh | bash

Option 2:Manual install

2-1 Install libraries.

To use Pimoroni Inky Impression, install the required Python libraries. Additionally, if you want to draw graphs, you will need to install numpy and matplotlib. For LED notifications, gpiod is also required.

sudo -H pip3 install Pillow
sudo apt -y install libopenjp2-7 libtiff5 libatlas-base-dev
sudo -H pip3 install numpy
sudo -H pip3 install matplotlib
sudo -H pip3 install gpiod
sudo -H pip3 install schedule

2-2 Get your weather information API key

This project uses the OpenWeatherMap API to obtain weather information. To use this API, you will need to obtain an API key with a One Call API 3.0 Subscription. The subscription allows for 1,000 API calls per day for free. You can obtain the API key at openweathermap.org

2-3 Clone this repo

git clone https://github.com/kotamorishi/weather-impression.git

2-4 Configure your weather station

copy config.txt.default to config.txt

Update LAT, LON, API_KEY and mode.

[openweathermap]
# set latitude and longitude for your weather info.
LAT=43.6532
LON=-79.3832

# Your openweathermap API key
API_KEY=COPY_AND_PASTE_YOUR_API_KEY_HERE

# 0:default
# 1:Show warning message, when the warning is in effect
# 2:Graph(temp and air pressure)
# 3:Sunrise/Sunset Icon
# 4:Sunrise/Sunset Graph
mode=0

# Forecast interval(Hours) MIN:1
FORECAST_INTERVAL=1

# tempture unit metric or imperial
TEMP_UNIT=imperial

# Font color for hot/cold tempture
# blue
cold_temp=41
# red
hot_temp=88

2-5 Set up cron

Open up the cron setting file.

sudo crontab -e

Add this line at the end of cron setting file.

@reboot /usr/bin/python3 /home/pi/weather-impression/watcher.py >/dev/null 2>&1

Just for your information, watcher.py is responsible for handling button presses and updating the config.txt file (which includes the mode and one-time message).

Fonts

Weather icon https://erikflowers.github.io/weather-icons/

Roboto https://fonts.google.com/specimen/Roboto#standard-styles

inky-impression-dashboard's People

Contributors

everyplace avatar kotamorishi avatar lrecknagel 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.