MIT License

项目介绍

BenRoe/rpi-magicmirror-eink 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 239 个 Star、28 次 Fork。

仓库全名
BenRoe/rpi-magicmirror-eink
开源许可证
MIT License
Star 数
239
Fork 数
28
未关闭 Issue
7

README 摘要

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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

rpi-magicmirror-eink 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 239 个 Star。

rpi-magicmirror-eink 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 rpi-magicmirror-eink 的源码?

可以直接克隆仓库:git clone https://github.com/BenRoe/rpi-magicmirror-eink.git;安装与运行步骤见仓库 README。

rpi-magicmirror-eink 最近还在维护吗?

仓库最近一次更新为 2022年1月15日,当前有 7 个未关闭 Issue;Star 数为 239,可作为社区活跃度的参考。

关于

MagicMirror on 7.5 ePaper Waveshare Display with a Raspberry Pi

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
534
价值分
175
活跃状态
归档

README

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

评论

暂无评论