Giter VIP home page Giter VIP logo

rpidashboard's Introduction

rpiDashboard

Scripts I created for a dashboard-like screen rendered on an e-paper display.

Requirements

Hardware

Software (for Zero W)

Python Libraries (also found in requirements.txt)

These can be installed by running the following command after cloning the repository:

pip install -r rpiDashboard/ZeroW/requirements.txt

  • cachetools
  • certifi
  • charset-normalizer
  • contourpy
  • cycler
  • fonttools
  • google-api-core
  • google-api-python-client
  • google-auth
  • google-auth-httplib2
  • google-auth-oauthlib
  • googleapis-common-protos
  • httplib2
  • idna
  • kiwisolver
  • matplotlib
  • numpy
  • oauthlib
  • packaging
  • Pillow
  • protobuf
  • pyasn1
  • pyasn1-modules
  • pyparsing
  • python-dateutil
  • requests
  • requests-oauthlib
  • rsa
  • six
  • uritemplate
  • urllib3

Programs

Zero W

Step 1

The Pi Zero W fetches data from the following APIs:

In addintion it also formats the current date and time.

Step 2

Most of the data is stored in a plain text file called formattedData.txt. The gas prices are stored in a database, which is then used to draw a graph with time on the x and price on the y-axis.

Step 3

The graph is exported as an image and converted to a bytearray. The script used for that is img_to_bytearray.py. It requires image-magick to be installed on the system for it to work.

Step 4

Lastly the data is wirelessly sent to the Pi Pico W.

Nano W

Step 1 (only on boot)

The Pi Nano W connects to the local Wi-Fi.

Step 2 (every minute)

Upon recieving the data from the Pi Zero W, the Pico generates an output for the e-Paper display and displays the dashboard-screen.

rpidashboard's People

Contributors

manos00 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.