GithubHelp home page GithubHelp logo

jogi-k / infoscreen Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.45 MB

Some snippets / tools for my home info-screen on a Raspberry Pi

Python 13.95% HTML 9.08% JavaScript 75.00% CSS 0.34% Shell 1.63%

infoscreen's Introduction

InfoScreen

Some snippets / tools for my home info-screen on a Raspberry Pi

Information coming from following blog-post:
https://tangielskyblog.wordpress.com/2018/05/19/ein-ausschalter-fuer-das-raspberry-pi-display/

Switch OFF Display

echo 1 | sudo tee /sys/class/backlight/rpi_backlight/bl_power > /dev/null

Switch ON Display

echo 0 | sudo tee /sys/class/backlight/rpi_backlight/bl_power > /dev/null

Switch TABS in Chromium

see : https://blog.gordonturner.com/2019/07/23/raspberry-pi-switch-chromium-browser-tabs/

General Info

The Hardware, as of now

The PIR-Module (from Bastelgarage)

Installation

  1. Install Raspberry-Pi OS
  2. Install clutter : sudp apt install unclutter
  3. Install chromium : sudo apt install chromium
  4. Install xdotool : sudo apt install xdotool
  5. clone this repo
  6. copy the file preparation/backlight-permission-rules to /etc/udev/rules.d/backlight-permission-rules , this allows non-root-users to control the backlight of the display (see also https://linustechtips.com/topic/1246132-allow-non-root-user-to-access-sysclassbacklight/?do=findComment&comment=14015740 and https://linustechtips.com/topic/1246132-allow-non-root-user-to-access-sysclassbacklight/?do=findComment&comment=14015728 )
  7. copy the file preparation/MyDashboard to /etc/init.d/.
  8. execute sudo update-rc.d MyDashboard defaults this will activate the three simple python http-servers, responsible for weather and clock in bin/start_dashboard see therefore also : https://tutorials-raspberrypi.de/raspberry-pi-autostart-programm-skript/
  9. copy the preparation/MyDashboard.desktop to ~/.config/autostart/. this is the second part of startup which then starts the dashboard - script in bin, doing the main-work

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.