Client CLI/library for Pira p164 rds encoder
boyska 392e42cfec clarify status | 4 mesiacov pred | |
---|---|---|
README.md | 4 mesiacov pred | |
dedication.webp | 4 mesiacov pred | |
requirements.txt | 4 mesiacov pred | |
sergio.py | 4 mesiacov pred |
This repository contains the code for controlling a Pira.cz P164 RDS Encoder. Both ethernet and USB are supported.
It can be used both as a library and as a CLI program.
Both Serial and TCP seem to work, but there has been no production use yet.
./sergio.py get PS
ONDAROSS
To make it machine readable, just use --output json
./sergio.py --output json get PS
{"variable": "PS", "value": "ONDAROSS"}
./sergio.py set RT1 'www.ondarossa.info'
This assumes your computer has a correct time and date of course.
./sergio.py synctime Europe/Rome
You can also specify --save
so that this is saved immediately.
./sergio.py dump > dump.json
Dr. Pira teached us all to call Sergio whenever you have computer problems.