Coder Social home page Coder Social logo

log2screen's Introduction

log2screen

A simple block which disables the plymouth service on boot, and prints device and application info and the journal logs to any attached HDMI display.

Add the bh.cr/balenalabs/fbcp block if you are using a RaspberryPi and have a PiDisplay or TFT attached.

Add it to your application by adding the following service to your docker-compose.yml file:

logging:
  image: bh.cr/balenalabs/log2screen
  privileged: true
  restart: always
  network_mode: host
  environment:
    - 'DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket'
  labels:
    io.balena.features.dbus: 1
    io.balena.features.supervisor-api: 1

log2screen's People

Contributors

balena-ci avatar nucleardreamer avatar phil-d-wilson avatar tmigone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

log2screen's Issues

run.sh fails to change the hostname

Line 5-6 of run.sh shows the following command is attempted:

# try and set the hostname to 'balena'
curl -X -s PATCH --header "Content-Type:application/json" --data '{"network": {"hostname": "balena"}}' "$BALENA_SUPERVISOR_ADDRESS/v1/device/host-config?apikey=$BALENA_SUPERVISOR_API_KEY" > /dev/null

This doesn't work and instead gives the following error:

curl: (6) Could not resolve host: PATCH

The issue is caused by the "-s" option following the "-X". If the order of these arguments is swapped then the command would run successfully.

But why do you want to change the hostname to begin with?

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.