A digital calendar that gives everyone the same deterministic random pokemon for each day. The Pokedex entry that you get is random but specific to each person (determined using browser fingerprint).
Go to next or previous days using the right and left arrow keys (respectively), or tapping/clicking the right or left sides of the screen (also respectively).
More settings like auto-advance the day are WIP
This was designed with a Raspberry Pi and the official Pi Screen in mind (i.e., an 800x480 screen).
- Navigate to pokemon-a.day in a Chromium-based browser and install the site as a Web App (should be somewhere to the right of the address bar)
- Make sure to create a desktop shortcut for it, it makes it easier to locate
- Open up the desktop app with a text editor and find the command used for
Exec
(everything after the=
), and copy that somewhere or just take note of it. - Create a
.service
file in /home/pi/.config/systemd/user/ (I called minepoke-cal.service
). - Place the following code into that file
[Unit]
Description=Pokemon-a-day PWA
After=multi-user.target
PartOf=graphical-session.target
[Service]
Type=simple
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/chromium-browser --profile-directory=Default --app-id=<your-app-id> --start-fullscreen
[Install]
WantedBy=graphical.target
- You can see on the
ExecStart
line I have pasted the code we copied earlier, but took out the specific app-id. Basically you want the same line but with the app-id your browser created- Also take note of the
--start-fullscreen
that wasn't in the originalExec
line
- Also take note of the
- Enable the service to run on start up with the following commands
- Restart and see if it worked 😁
systemctl --user enable <what-you-named>.service
systemctl --user daemon-reload
I wanted this thing to run all the time but having the screen maxed out always can be annoying for several reasons. There's no build in way to achieve auto-dimming on a timer (that I could find), so I spruced up an old script I found on github to do the job.
At the time of writing, the original script has not accepted the changes I made to fix it for modern hardware, so you can use my fork in the meantime.