Git Product home page Git Product logo

chronometer2's Introduction

Chronometer2

Chronometer2 is an extension of the original chronometer.sh that is included with Pi-Hole that provides more in depth information about your Pi-hole.

Chronometer2

Setup

To setup Chronometer2 with an PiTFT+ screen:

Setup Your Pi

  • Download and flash the Ready-to-Go Adafruit build of Raspian to an SD card.
  • Prevent the display from going to sleep by adding consoleblank=0 to the end of /boot/cmdline.txt.
  • Set your Pi to automatically log into the console using raspi-config.
  • Configure the console to use the Terminus font at 8x14 by running sudo dpkg-reconfigure console-setup.

Setup Pi-Hole

  • Install Pi-hole by running curl -sSL https://install.pi-hole.net | bash.

Setup Chronometer2

  • Get a copy of Chronometer2 by running wget -N https://raw.githubusercontent.com/jpmck/chronometer2/master/chronometer2.sh from pi's home directory
  • Make Chronometer2 executable by running sudo chmod +x chronometer2.sh.
  • Set Chronometer2 to auto run by adding ./chronometer2.sh to the last line of ~/.bashrc.
  • Reboot your Pi-Hole by running sudo reboot. Chronometer2 should now run when your Pi-Hole has completed booting.

(Optional) Put the Display to Sleep at Night

If you don't want your PiTFT on all night when you are asleep, you can put it to sleep as well! (Note that other screens may not work with this.)

To do so, edit cron as root (sudo crontab -e) and add the following:

# PiTFT+ SLEEPY TIME
# Turn off the PiTFT+ at midnight
00 00 * * * sh -c 'echo "0" > /sys/class/backlight/soc\:backlight/brightness'
# Turn on the PiTFT+ at 8:00 am
00 08 * * * sh -c 'echo "1" > /sys/class/backlight/soc\:backlight/brightness'

Updating Chronometer2

  • Just run wget -N https://raw.githubusercontent.com/jpmck/chronometer2/master/chronometer2.sh again from pi's home directory.

chronometer2's People

Contributors

jpmck avatar tgjohnst avatar

Watchers

Online Notebook avatar James Cloos 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.