Skip to content

danieledep/slow-wiki

Repository files navigation

        Logo.png


🔲 slow-wiki

Turn a Raspberry Pi into a device to browse an offline version of Wikipedia with a E-ink screen.

IMG_2511.JPG

IMG_2529.JPG

Inkplate

  1. Follow the steps to install the drivers for Arduino:
    Get started
  2. Download the Inkplate library:
    e-radionicacom/Inkplate-Arduino-library
  3. Flash the Arduino code in the slowiki-inkplate folder into the Inkplate.

It consists of a modified version of:
e-radionicacom/Inkplate-Arduino-library/Inkplate_Peripheral_Mode.ino

Official documentation for peripheral mode commands from the Inkplate developers:
Inkplate Peripheral Mode

IMG_2527.JPG

Keyboard

Follow the instructions in the slowiki-30-keys-keyboard folder
slow-wiki/slowiki-30-keys-keyboard

PiSugar Pro setup

Follow the official guide:
PiSugar2-Pro Wiki

Remember that when the access point is enabled the address of the webUi will be 192.168.1.1:8421

Node app

  1. Copy the rpi-node folder
  2. cd into the folder
    cd rpi-node
  3. Install the dependencies
    npm i

Kiwik-server

Follow this guide:
Offline Wikipedia wireless access point on a Raspberry Pi using Kiwix

Here there's a more detailed guide on setting up a wireless access point:
Setting up a Raspberry Pi as a routed wireless access point

Extra

How to update the Kiwix and Zim File:
Updating Kiwix and Zim File on Raspberry Pi Offline Wikipedia Kiosk

Another interesting Wikipedia offline setup on Remarkable 2:
dps/remarkable-wikipedia

If you want to serve multiple Zim files with Kiwik:
Serving Multiple zim Files with kiwix-service

Stop the WAP

In case you need to use the wifi from the Rpi you need to disable the wireless access point

  1. Stop and disable the hostadp and dnsmasq services:
    sudo systemctl stop hostapd dnsmasq
    sudo systemctl disable hostapd dnsmasq
  2. Edit the dhcpcd.conf file:
    sudo nano /etc/dhcpcd.conf
  3. Comment out the lines related to the static IP address
    interface=wlan0
    static ip_address=192.168.1.1/24
    nohook wpa_supplicant
  4. Reboot
    sudo reboot

Restart the WAP

When you need to restart the wireless access point

  1. Stop and disable the hostadp and dnsmasq services:
    sudo systemctl start hostapd dnsmasq
    sudo systemctl enable hostapd dnsmasq
  2. Edit the dhcpcd.conf file:
    sudo nano /etc/dhcpcd.conf
  3. Uncomment out the lines related to the static IP address
    interface=wlan0
    static ip_address=192.168.1.1/24
    nohook wpa_supplicant
  4. Reboot
    sudo reboot

Boot on startup

  1. Edit the .bashrc file:
    sudo nano .bashrc
  2. Add the start command at the end of file:
    cd /home/pi/rpi-node
    node app.js
  3. Set in Raspberry Pi configuration panel:
    Boot: To CLI
    Auto login: Login as user 'pi'
  4. Reboot
    sudo reboot

Revert boot mode

  1. Stop the node app
    ⌘ Command + C
  2. Revert the Boot mode to display:
    sudo raspi-config
    System options -> Boot / Auto Login: Desktop Autologin
  3. Reboot
    sudo reboot

When reverting the Boot mode to display it will give error, stop all the node processes:
pkill node or pkill nodejs

Misc.

kindle.png
Due reference to that xkcd comic.

Other relevant projects

About

a raspberry powered wikipedia eink device

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published