Giter Site home page Giter Site logo

mashedkeyboard / headlights Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 163 KB

Information when it's needed, where it's needed.

License: GNU General Public License v3.0

Python 50.12% CSS 2.44% JavaScript 21.81% HTML 25.64%
papirus raspberry-pi escpos eink information python

headlights's Introduction

Headlights

Information when it's needed, where it's needed.

What is Headlights?

Headlights is a project that aims to deliver information across a variety of different and novel formats. The main goal of Headlights is to create a product that delivers information in a new and useful way. Headlights currently utilises ESCPOS receipt printing and e-ink PaPiRus displays to do this.

What is Headlights written in?

Headlights is a Python application, currently running in Python 2.7 due to the need for PaPiRus support. It uses a very slightly modified version of the wonderful Meteocons icon set for weather icons in the output, and the python-escpos library for printer communication.

What prerequisites are there?

How do I work this thing?

  1. git clone https://github.com/mashedkeyboard/Headlights.git
  2. cd Headlights
  3. Run sudo apt-get install libjpeg-dev to install JPEG libraries, if not already there
  4. pip install -r requirements.txt
  5. Run headlights.py and browse to localhost:9375.
  6. Complete the setup with your own values. To find your printer's vendor and product IDs, use the python-escpos documentation. Note that at this time Headlights only supports USB printers.

NOTE: This setup is not 100% complete at the moment. If something breaks, manually copy headlights.cfg.sample in the config directory, and edit from there.

What's all this about plugins?

All the individual sections of the report are put into plugins - you can enable or disable whatever you want within the app. Individual plugin configuration files live within the /config directory, and the plugins themselves live within the /plugins one. If you want to build a plugin, take a look at the weather plugin for an example to go on.

What if something goes wrong?

  1. Make sure you a) have headlights.cfg in your config directory, and b) it's syntactically valid (check the sample to make sure).
  2. Check headlights.log - see if there's anything helpful in there, it should all be human readable.
  3. Create an issue on GitHub if you still can't get things working. Include your headlights.log file.

headlights's People

Contributors

mashedkeyboard avatar

Watchers

 avatar  avatar

Forkers

crablab

headlights's Issues

Tests behind

The project tests are behind from the Dashday version. More tests need to be added.

A demo version needs to be added for the E-ink display, too (see #3)

Inconsistent configuration access

Some places use their own instance of ConfigParser to access the Headlights.cfg file, while others use the new ConfigMgr API. All areas need to be converted to ConfigMgr.

Turn off e-ink

E-ink should be an optional feature, and there needs to be the ability to turn it off.

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.