Private TV-channel for the Elderly

3,111

26

13

Introduction: Private TV-channel for the Elderly

About: Hi! I make stuff. Sometimes I write instructions about them.

Memories are a tricky issue for my grandmother who is turning 94 years old this year. So I added a tv-channel to her television set to help her remember family members and key moments in her life. For this I've used a free Dropbox account, a Raspberry Pi and a VCR, but the VCR is optional depending on your usecase.
With this system my family members can add their pictures to a shared Dropbox folder and they'll automatically show up on the channel.

So the flow is as follows:

  • The Raspberry Pi has a fullscreen Chrome browser and is connected to the TV.
  • The Raspberry pi is connected to the local Wi-Fi network.
  • The Chrome browser loads the webapplication.
  • The webapplication talks to Dropbox and requests a random picture from a specific folder.
  • The webapplication shows the picture in a nice interface together with the clock and a news ticker.

You can either connect the Raspberry Pi directly to the TV using HDMI and use that as an input source, or you can use a VCR to make it create your own channel. Details on that will be explained in the last step.

The project is completely open-source and the source code can be found here on my GitHub page.

Supplies

  • Raspberry Pi, doesn't matter which version
  • HDMI cable
  • (Free) Dropbox account
  • Optional: VCR

Step 1: Setup DietPi on the Raspberry Pi

Why am I using DietPi instead of regular Raspbian? Dietpi is a more optimized operating system for multiple single board devices and includes a handy software configurator, including a fullscreen webbrowser.

To install DietPi on your Raspberry Pi you can follow the instructions here.

If you prefer a video tutorial, here's a YouTube video highlighting the basics of installing DietPi and software.

But the gist of it is as follow:

  • Download the latest release from their website.
    Unpack the downloaded archive
  • Download and install Etcher
  • Insert the microSD card in your computer
  • Use Etcher to write the extracted image to the microSD card
  • Go To "my computer", select the SD card and open it.
  • Locate the file called dietpi.txt and open it with wordpad.
  • Set AUTO_SETUP_NET_WIFI_ENABLED=1
  • Open dietpi-wifi.txt and open it with wordpad.
  • Change aWIFI_SSID[0]='MySSID' and aWIFI_KEY[0]='MyWifiKey'
  • Save changes to edited files
  • Plug the microSD card in your raspberry pi, but leave it off for now, we'll set it up later.

Now you've installed the operating system Dietpi!

Step 2: Setup Dropbox

Go to Dropbox.com and create a free Dropbox account with 2GB of storage. Then add a new folder where you want your pictures to be stored and add a few as a test.

Now for the hard part, setting up the access token. We need this to securily get the pictures from your account and display it in the webapplication.

  1. Log in to your Dropbox account and follow this link: https://www.dropbox.com/developers/apps
  2. Click on the blue button with the text "Create app"
  3. Select the option Dropbox API.
  4. Select the option "Full Dropbox"
  5. Fill the most creative name you can find in the "App name" input.
  6. Click on "Create app" to submit.
  7. In the middle of the page there is a section Generated access token, click on "Generate".
  8. Copy the generated access token and save it in a text file somewhere, we'll need it later
  9. Get a rush of adrenaline because you're building something cool!

If you want to new ticker on the bottom like I have, add a file called "ticker.txt" to your pictures folder. Each line in that txt file will then be displayed next to eachother.

Step 3: Install the Full-screen Webbrowser

Now that you have a working Raspberry Pi, it's time to make it display the stuff we want!

If you have an external monitor and keyboard, you can directly work on the Raspberry pi, otherwise you'll need to set it up over the network with SSH. Follow the instructions of step 4 on this page to set up your SSH client. When that's done, find the IP address using the instructions on this page. Follow the same steps as if you directly have a keyboard connected.

NOTE: The hostname is not raspberrypi.local but dietpi.local for DietPi.

Log in with username "root" and password "dietpi", without the parentheses. You then get the infamous bash shell, but don't be scared! It's just as scared of you as you are of it. Once you get to know the ins and outs of the daunting white-on-black screen, you'll realise how powerful it really is. But for now, we'll stick to just a couple of commands to install our good ol' chromium browser.

  • enter the command "dietpi-software" and press the enter key.
  • On the blue and gray screen you move your cursor using the tab and arrow keys. You select using the enter key.
  • Select "Search" and press the enter key.
  • In the prompt enter "chrome" and press the enter key
  • In the search results select the "chromium fullscreen browser" and press the spacebar key.
  • go to "Ok" and press the enter key.
  • Select "Install" and press the enter key.Database
  • Now the browser is installing! After that's done all we need to do is set the link to our photoframe webapp and tell DietPi to automatically start on boot. We'll do that by following these steps:
  • By now you're presented with the bash shell again, you know? The one with the black background and white letters.
  • Enter the command "dietpi-config" and press the enter key.
  • Go to "Autostart Options" and press the enter key.
  • You're now presented with a list containing "chromium fullscreen browser". Select it and press the enter key.
  • You're now prompted the enter the url of the photo app. Remember that access token from the previous step? We'll need it here.
  • The url is as follows: https://sebastiaanjansen.be/dropbox-photo-frame/?accessToken=YOUR_ACCESSTOKEN_YOU_COPIED_BEFORE
  • Press the enter key to exit out of the autostart options and then again to exit the options program.
  • Enter the command "reboot" and behold your very own digital-photo-frame-with-own-pictures-that-are-connected-to-dropbox, or Digital Photo Frame for short.

Congratulations! You made it to the end! So what you've configured is a raspberry pi which contains the linux kernel, which contains a lot of linux programs to start the chromium browser, which starts are webapp. Couldn't be simpler, right?

Just between you and me? You did great! I'm sure it's the bestest photo-framiest photo frame in the world and you should be very proud of yourself, I sure am!

Step 4: Optional: Set Up the VCR

Oh, so using HDMI isn't good enough for you? Fair enough, it wasn't good enough for me either, because I wanted to use the built-in tv tuner to really make it a part of the TV experience. My goal was that it really came up as a legit tv-channel.

So since I work at the Flemish national broadcaster VRT I asked a colleague how he would do it, expecting a very high-tech and maybe expensive piece of equipment. He dryly answered that it could be done with most VCRs! At least that's the case here in Belgium.


Most VCRs have a composite input, that's the yellow barrel connector and the raspberry pi also has that connector, it's hidden inside the audio jack. You can use adapter cables to connect it then directly to your VCR. So if you hookup your VCR, instead of directly plugging the coax input cable of your provider inside your TV or decoder, you connect it to your VCR first and then using a second coax cable, connect it to your TV or decoder. The VCR will create a new channel based on the videotape, or in our case, the raspberry pi composite input.

All that rests is using the scan function on your TV to look for a new analog channel and it should pop right up!

I'm very curious to see how this can be handled around the world, so please don't hesitate to comment on how you would do it!

Raspberry Pi Contest 2020

Participated in the
Raspberry Pi Contest 2020

Be the First to Share

    Recommendations

    • Robots Contest

      Robots Contest
    • Lamps and Lighting Contest

      Lamps and Lighting Contest
    • Plastic Challenge

      Plastic Challenge

    13 Comments

    0
    _Vyper
    _Vyper

    Reply 1 year ago

    Ahh, but zero requires soldering and HDMI is higher res - helpful for those that don't solder, or those that want clearer picture (even scaled down its usually better than composite outs) and also for the solder phobic even the pi zero wh doesn't come with the tv out(nor the reset header next to it) header soldered hdmi also does audio that on a zero would need a usb or i2c "soundcard"

    0
    Treasure Tabby
    Treasure Tabby

    1 year ago

    I wish I could make one of these but electronics are not my expertise and coding, for get about it. My old man would love this for sure. He's always pining for old movies and TV shows.

    0
    SebastiaanJansen
    SebastiaanJansen

    Reply 1 year ago

    Is there maybe a hackerspace or makerspace nearby where people can help you?

    0
    carolinebuttet1
    carolinebuttet1

    1 year ago

    That VCR thing is very clever! Definitely a helpful idea for the elderly.

    0
    RoboDIY
    RoboDIY

    1 year ago

    Thanks for sharing the VCR tip! Going to see if I can use that for my security camera feed (rpi chrome on hdmi now). Beats switching input for sure.

    0
    SebastiaanJansen
    SebastiaanJansen

    Reply 1 year ago

    Please report back if it works!

    0
    valenciarobotics
    valenciarobotics

    1 year ago

    this is actually really cool too, kudos for doing something for your comunity :)