sergio/README.md

57 lines
1,015 B
Markdown
Raw Permalink Normal View History

2023-12-25 00:40:00 +01:00
# RDS Encoder library
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.
2023-12-25 00:51:30 +01:00
## Status
2023-12-26 15:08:06 +01:00
Both Serial and TCP seem to work, but there has been no production use yet.
2023-12-25 00:51:30 +01:00
2023-12-25 00:40:00 +01:00
## CLI examples
### Read variable value
```
2023-12-25 00:49:46 +01:00
./sergio.py get PS
2023-12-25 00:40:00 +01:00
ONDAROSS
```
To make it machine readable, just use `--output json`
```
2023-12-25 00:49:46 +01:00
./sergio.py --output json get PS
2023-12-25 00:40:00 +01:00
{"variable": "PS", "value": "ONDAROSS"}
```
### Set the radiotext
```
2023-12-25 00:49:46 +01:00
./sergio.py set RT1 'www.ondarossa.info'
2023-12-25 00:40:00 +01:00
```
### Synchronize time and date
This assumes your computer has a correct time and date of course.
```
2023-12-25 00:49:46 +01:00
./sergio.py synctime Europe/Rome
2023-12-25 00:40:00 +01:00
```
You can also specify `--save` so that this is saved immediately.
### Dump everything
```
2023-12-25 00:49:46 +01:00
./sergio.py dump > dump.json
2023-12-25 00:40:00 +01:00
```
## Name
Dr. Pira teached us all to [call Sergio](https://www.fumettidellagleba.org/prodotti/scheda/47/11-) whenever
you have computer problems.
2023-12-25 00:40:10 +01:00
![dedication](dedication.webp)