-
Notifications
You must be signed in to change notification settings - Fork 1
Installing vbit py
Nathan Dane edited this page Nov 7, 2018
·
9 revisions
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
The Raspberry Pi should be running Raspbian, preferably with all the software updated. Go into Preferences->Raspberry Pi Configuration and enable SPI and I2C.
Follow the instructions for installing vbit2. The section about getting vbit2 to auto start can be ignored.
https://github.com/peterkvt80/vbit2/wiki
Install by copying the files.
cd ~
git clone https://github.com/peterkvt80/vbit-py.git
sudo apt-get install python3-dev i2c-tools python3-rpi.gpio python3-smbus python3-spidev python3-numpy
cd ~/vbit-py
./vbit
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.