Coder Social home page Coder Social logo

sayotv's Introduction

sayotv

Information board made for my school with Löve for single board Raspberry Pi computers. Made to be displayed on vertical displays.

As of time of writing, it displays nothing more than the best girl holding an energy drink from UsagiSii, because our backend is not finished yet and this is currently used as a stress-testing tool to see how far can we push RPi and it's OpenGL capabilities.

Also the main reason it's here on GitHub is for auto-update capabilities later on.

Installation

Both instructions assume you're using a fresh install of Raspbian 10 Buster.

Using script

There is a script prepared called install.sh however it is untested and may or may not mess your setup up. It's not reccommended so use at your own discretion.

To use this script, simply run the script with root.

chmod +x ./install.sh
sudo ./install.sh

Manual installation

Install these dependencies

sudo apt update
sudo apt install git love xserver-xorg xinit

Enable OpenGL driver (fake KMS is fine)

sudo raspi-config

Clone this repository and launch it (with Xserver running)

git clone https://github.com/vignedev/sayotv
love sayotv

Configuration

The configuration isn't easily customizable, so manual labor is required.

For developement (and saving our necks) we can turn off the vertical mode in conf.lua's header.

server = 'http://localhost:89'    --server to fetch data from (see dummy.js for an example server)
vertigoMode = false               --vertical rotation (automatically enabled for Linux devices)
vertigoOrientation = -1           --orientation (1 rotates clockwise; -1 rotates counterclockwise)
scale = 0.5                       --scale down (for developement, mostly; on Linux set to 1)
scrWidth = 1920                   --screen width
scrHeight = 1080                  --screen height
primaryColor = { 1.0, 0.1, 0.0 }  --header/footer color (float values)

Logo can be changed by replacing the file at assets/logo.png or changing the filename at components/staticparts.lua.

local logo = lg.newImage('assets/logo.png')

License

MIT

sayotv's People

Contributors

vignedev avatar

Watchers

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