Coder Social home page Coder Social logo

tsbarnes / pitftmanager Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 459 KB

Display manager for framebuffer devices (like the PiTFT) on Raspberry Pi

Python 100.00%
raspberry-pi raspberrypi python python3 pitft adafruit framebuffer system-information fortune-cookies archlinuxarm

pitftmanager's Introduction

PiTFT Manager

Display manager for framebuffer devices (like the PiTFT) on Raspberry Pi.

What's a display manager?

Simply put, a display manager is an application that provides other applications with access to the display. In practice, this means you can create your own apps for it, switch between apps on the fly, and more!

Why PiTFT?

The Adafruit PiTFT 3.5" is what I'm developing it on/for, so I chose to reference it in the name.

What apps come with it?

  • dashboard - displays weather, next calendar event, and next task due
  • system - displays system information
  • fortune - displays fortune cookies
    • Note: requires fortune-mod to be installed!
  • affirmations - displays positive affirmations
  • calendar and tasks - display events/tasks from webcal and caldav calendars
  • weather - displays the current weather

Creating apps

Creating apps is simple, each app is a Python module that provides an App class, which should inherit from the apps.AbstractApp class. Then you just need to implement the run_iteration method and have it do whatever you want the app to do!

More documentation for development coming soon.

Installation

  • First, clone the repository onto the Raspberry Pi, I recommend cloning it to ~/pitftmanager and then change directory into it.
  • Second, install the required Python libraries.
  • Third, copy the pitftmanager.service file into /etc/systemd/system.
  • Fourth, edit the path in /etc/systemd/system/pitftmanager.service to the path where you checked out the code
  • Fifth, enable the systemd service.
  • Lastly, start the systemd service, or reboot.

Quick command list to install:

git clone https://github.com/tsbarnes/pitftmanager.git ~/pitftmanager
cd ~/pitftmanager
sudo pip3 install -r requirements.txt
sudo cp ~/pitftmanager/pitftmanager.service /etc/systemd/system/
sudo nano /etc/systemd/system/pitftmanager.service  # don't forget to change the path!
sudo systemctl daemon-reload
sudo systemctl enable pitftmanager
sudo systemctl start pitftmanager

pitftmanager's People

Contributors

tsbarnes avatar

Stargazers

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