Skip to content

Installing vbit py

Nathan Dane edited this page Nov 7, 2018 · 9 revisions

vbit-py teletext inserter

To run vbit.py you need:

  • Raspberry Pi
  • vbit teletext inserter
  • PAL video source
  • Teletext capable TV

vbit-py is a driver for the vbit teletext inserter hardware.

These instructions use vbit2 to provide a teletext stream.

Suitable vbit hardware has been manufactured by Peter Kwan and Nat Dane

Installing vbit.py

The Raspberry Pi should be running Raspbian, preferably with all the software updated. Go into Preferences->Raspberry Pi Configuration and enable SPI and I2C.

Install vbit2

Follow the instructions for installing vbit2. The section about getting vbit2 to auto start can be ignored.

https://github.com/peterkvt80/vbit2/wiki

Install vbit.py

Install by copying the files.

cd ~
git clone https://github.com/peterkvt80/vbit-py.git

Install Python Libraries

sudo apt-get install python3-dev i2c-tools python3-rpi.gpio python3-smbus python3-spidev python3-numpy

Run vbit.py manually

cd ~/vbit-py
./vbit

Set vbit.py to autostart.

Create a file ./run and add:

#!/bin/sh
until /home/pi/vbit-py/vbit > /dev/null; do
    echo "VBIT-Pi crashed. Restarting..." >&2
    sleep 1
done

Then create the file /etc/systemd/system/vbit-py.service and type in:

[Unit]
Description=VBIT-Py Teletext Service
[Service]
ExecStart=/home/pi/run &
[Install]
WantedBy=multi-user.target

Then enable the VBIT-Py to start as a service.

sudo systemctl enable vbit-py

The system will automatically start on reboot.

Clone this wiki locally