Selenium automation to screenshot your calendar and view it on the Kindle browser
- log in to your Pi (or whatever device you want to use)
- Clone this repo:
git clone https://github.com/morrolinux/KindleCalendar.git
- Install systemd user services:
cp KindleCalendar/config/systemd/user/* .config/systemd/user/
- Enable systemd services:
systemctl --user daemon-reload && systemctl --user enable kindleserver && systemctl --user enable screenshot
- Install Firefox and login with your google account
- Visit Google Calendar just to make sure it loads correctly
- Install the selenium webdriver for firefox: instructions here
- Edit
KindleCalendar/screenshot.py
and set your Firefox profile path underprofile = webdriver.FirefoxProfile(...
- Install nodejs and npm
sudo apt install nodejs npm
- Install project dependencies with npm:
cd KindleCalendar && npm install ws-plus-hixie filewatcher
If everything went fine, you should be able to visit your Pi's IP address on port 8080 with any browser including Kindle, but make sure Javascript is enabled in browser settings.
Enjoy!
Special thanks to noxquest for his awesome project and hixie
bridge node library :)