GithubHelp home page GithubHelp logo

flowrpi's Introduction

flowrpi

An OpenEmbedded distribution for RaspberryPi optimised for visual communication/digital signage. The image includes WPEWebkit and an OMX based driver for gstreamer.

Setting up workspace

you need to have repo installed and use it as:

mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Please note that repo requires python2, some distributions which default to python3 might need below fix

sed -i "s%/usr/bin/env python$%/usr/bin/env python2%" ~/bin/repo

you might have to re-run this command everytime repo tool is updated in ~/bin/repo

Download source:

PATH=${PATH}:~/bin
mkdir flowrpi
cd flowrpi
repo init -u https://github.com/kraj/flowrpi
repo sync
repo start work --all

At the end of the commands you have every metadata you need to start work with.

To start a simple image build:

source ./setup.sh
bitbake wpe-eglfs-image

The source code is checked out at <TOPDIR>/sources folder

Create Bootable SD-Card

sudo dd if=tmp/deploy/images/raspberrypi3/wpe-eglfs-image-raspberrypi3.rpi-sdimg of=/dev/sdX

where X is the letter a,b,c which your box would have mounted the uSD card on you can check that with dmesg | tail -10 when you insert the card into your computer.

Once booted login as β€˜root’ with no password

Run

wpe https://youtube.com/tv

This should result in WPE launched on screen and you can try to play a video manually

Or you can launch a video like

wpe https://www.youtube.com/tv#/watch/video/control?v=-YGDyPAwQz0&resume

which will play one video automatically

Second test is to run big bunny video launch it like

gst-launch-1.0 souphttpsrc location="http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_h264.mov" ! typefind ! qtdemux name=demux demux. ! queue ! h264parse ! omxh264dec ! glimagesink demux. ! queue ! faad ! autoaudiosink

With systemd if dhcp does not work then you have to set /etc/resolv.conf symlink correctly.

ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Using Online Package Management

This needs RPI and build machine to be on same network.

Start a webserver in deploy/ipk directory of build system

cd tmp/deploy/ipk && python3 -m http.server 8000

Now target can be updated from build machine generated packages

opkg update
opkg upgrade

flowrpi's People

Contributors

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