This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
private:writeups:photobox [2020/12/26 18:14] admin |
private:writeups:photobox [2021/01/01 15:32] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | The directions here are what I followed to turn my raspberry pi and 7" pi screen into a photobox. | ||
| - | from [[https:// | + | **Step 1 - Setup ** |
| + | |||
| + | Install Raspiberry pi OS (full) onto an SD card and install in your Pi. Bootup, run raspi-config, | ||
| + | |||
| + | **Step 2 - Screen ** | ||
| + | |||
| + | Follow directions [[https:// | ||
| + | |||
| + | **Step 3 - Mount network drive on Pi** | ||
| + | |||
| + | As discussed | ||
| / | / | ||
| add the line: | add the line: | ||
| Line 7: | Line 18: | ||
| note that _netdev is needed for network shares. | note that _netdev is needed for network shares. | ||
| - | also, i followed the instructions here [[https:// | + | also, i followed the instructions here [[https:// |
| + | / | ||
| + | with the lines | ||
| + | #!/bin/sh | ||
| + | sleep 30 | ||
| + | sudo mount -a | ||
| + | Note that the sleep command is a hack that allowed the Pi to settle its network connectivity before it attempted to mount the network folder | ||
| + | |||
| + | **Step 4 - Slide viewer ** | ||
| + | |||
| + | following the directions [[https:// | ||
| + | #!/bin/sh | ||
| + | cd / | ||
| + | feh -Z -z -F -D 300 --hide-pointer --auto-rotate --recursive | ||
| + | Note that the recursive allows the directories to be searched recursively. | ||
| + | |||
| + | To make sure it autostarted correctly, I followed the directions [[https:// | ||
| + | [Desktop Entry] | ||
| + | Type=Application | ||
| + | Name=runslideshow | ||
| + | Exec=/ | ||
| + | |||
| + | |||
| + | **Step 5 - Schedule screen dimming ** | ||
| + | |||
| + | To schedule screen dimming, open the scheduler with | ||
| + | | ||
| + | |||
| + | and add the following lines | ||
| + | 0 7 * * * sudo sh -c "echo 255 > / | ||
| + | 0 21 * * * sudo sh -c "echo 12 > / | ||
| + | which brightens the screen at 7:00 and dims the screen at 21: | ||
| + | |||
| + | |||
| + | **Step 6 - Enable right click as a long click ** | ||
| + | |||
| + | Modifying the directions from [[https:// | ||
| + | |||
| + | sudo apt install build-essential libevdev2 libevdev-dev | ||
| + | git clone ' | ||
| + | cd ' | ||
| + | make all | ||
| + | sudo cp ' | ||
| + | sudo chmod +x '/ | ||
| + | |||
| + | Then navigate to ~/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||