OK, this is my set up for a calendar display using a Raspberry Pi.
Is quite a while that I wanted to have somewhere a calendar display and was considering different solutions, then one weekend I decided to do something about.
The goal is to have somewhere (kitchen maybe) a monitor showing the Google calendars of the family.
Here some notes.
I'm assuming who is reading this article knows how to set up a Linux system, I'll not describe in details many operations.
First of all there are TONS of projects like this one.
Literally nothing new. I just want to document what I did.
Shopping list
Let start with the shopping list :
- a Raspberry Pi (I used a Raspberry Pi 3 Model B)
- a SD card (at least 8 Gbyte - I did use a 16 Gbyte Sandisk card I had around)
- a monitor, in my case one of the many old VGA monitor I have around, a Dell (see below)
- a HDMI -> VGA converter
- wireless mouse/keyboard (with dongle)
Putting together
SD card preparation
So, since the cost is anyway ridiculous, stick with at least 1 16 Gbyte SD card
I strongly suggest to avoid PNY SD cards !!
I did buy a bunch time ago and NO ONE is still working !!!
They broke very very easily after few writings.
Remember to unmount the drive (not close it !! Just unmount it) before to start the dd command.
- open a session on terminal
- use df -h to identify the card and partitions
Found two partitions under /dev/sde - unmount the two partitions found :
- umount /dev/sde1
- umount /dev/sde2
- go in the directory where the downloaded image was :
- cd <whereever_the_image_is>
- copy the downloaded image on the SD card
- sudo dd bs=4M if=2020-02-13-raspbian-buster.img of=/dev/sde status=progress
Configuration
- connected wirelessly
- showing a constant update of the Google calendar in kiosk mode
- turning off the monitor at 10 pm until 7 am of the next day
With the attached keyboard and mouse I started to update the system.
Raspberry configuration
- expand the filesystem to use all the SD card space
- change the main user password (main user : pi)
- enable boot to desktop (should be already set)
- set language/regione and time zone
- set an hostname to recognize the board on your network
- reboot the system
Raspbian configuration
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt autoremove
Iceweasel
- open the file with an editor :
sudo nano /etc/lightdm/lightdm.conf - add/modify the section [Seat*] adding the line :
xserver-command=X -s 0 –dpms - save
Turning monitor on/off
Note that the command vcgencmd could not work on some monitor, it did work on my setting though.
Turning LED off
To do so, on Buster and for the board I used, is enough to edit the file /etc/rc.local and add these lines :
sudo sh -c 'echo none > /sys/class/leds/led0/trigger'
sudo sh -c 'echo none > /sys/class/leds/led1/trigger'
sudo sh -c 'echo 0 > /sys/class/leds/led0/brightness'
sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness'
Set autostart
This is the last part.
Set up the system in order to start the Iceweasel in kiosk mode on the google calendar page.
Update
The system did work nicely, however the boss objected to hang on the contraption somewhere in the kitchen or elsewhere.
The monitor, a Dell Old VGA LCD, is a little bit bulky and the cables used to connect the Raspberry Pi are visible and thus ugly.
So I'm exploring some other options.
In my stash of junk I did find a 7" HDMI monitor (Z-0051), not in a case, thus it could be suitable to embed it in some kind of frame or even a mirror.
Test assembly |
In another article I'll discuss eventually how to create the mechanical support for it.
Here just a note about how properly configure the Raspberry Pi for it.
"As is" connected to the Raspberry it works nicely, however the resolution is set a 640 x 480, so everything is ut of scale and quite unusable.
In order to set up the resolution is necessary to edit the file /boot/config.txt
Edit this file and somewhere add these lines :
hdmi_force_hotplug=1
hdmi_cvt=1024 600 60 3 0 0 0
hdmi_group=2
hdmi_mode=88
No comments:
Post a Comment