Giter VIP home page Giter VIP logo

rpi-magicmirror-eink's Introduction

MIT prs welcome

How it works

The node.js script uses puppeteer (Headless Chrome Node API), to take a screenshot of the local running MagicMirror site (localhost:808) and saves it.
You can change the size of the screenshot and the MagicMirror port in the config.js file.

Then the script executes a the eInk Python script from the ePaperPython folder and updates the eInk screen.
This is the original Python script from Waveshare.

Requirements

Resources

Install dependencies

  • Update packages and install Git, Chrome Browser
sudo apt-get update && sudo apt-get install -y git chromium-browser
  • Install Node.js and npm
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
  • Install PM2 (process manager for Node.js)
sudo npm install -g pm2
// Starting PM2 on Boot
pm2 startup
// pm2 start node serveronly
// pm2 save

Setup

  • Clone/copy the project files to your system.
git clone https://github.com/BenRoe/rpi-magicmirror-eink.git
  • Move to the project folder
cd rpi-magicmirror-eink
  • Install Node.js dependencies (inside the rpi-magicmirror-eink folder)
npm install
  • Copy all files & folder from magicmirror-files/css to your MagicMirror css folder.
cp -a magicmirror-files/css/. ~/MagicMirror/css
  • Copy the prepared MagicMirror config.js to MagicMirror config folder.
cp magicmirror-files/config.js ~/MagicMirror/config/
  • Start the script with PM2 and run it in the background
pm2 start index.js --name "eink-update"
pm2 save

Todo

  • 3d print case
  • support more waveshare epaper display sizes
  • white background/black font mode (invert image with jimp (image.invert();))

Ressources

rpi-magicmirror-eink's People

Contributors

benroe avatar simongotnews avatar michaelwschultz avatar

Watchers

 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.