Update README.md

This commit is contained in:
Olivier SCHMITT 2020-11-15 17:26:24 +00:00 committed by GitHub
parent 66b54471dc
commit e01de91d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,8 @@ You need:
- a cat interface.
- a circuit making it possible to adapt the audio levels between the microphone input, the speaker output and the sound card.
<b>More info on the wiki page:</b>https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5/wiki
Assuming your raspberry pi hostname is set to UHRR, you can access it at https://UHRR.local:8888/
Note the HTTP <b> S </b>.
You can configure all of this by logging into https://UHRR.local:8888/CONFIG
@ -30,98 +32,6 @@ If the original configuration is invalid or missing, this will automatically swi
![alt text](README/sound_diagram.png)
## Requirements:
```
sudo apt-get install -y git python3 python3-pip python3-libhamlib2 python3-numpy python3-tornado python3-serial python3-pyaudio
sudo pip3 install pyalsaaudio
```
## Installation:
```
cd ~/
git clone https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5.git
cd Universal_HamRadio_Remote_HTML5
sudo cp selfsign.crt /boot/UHRH.crt
sudo cp selfsign.key /boot/UHRH.key
./UHRR
```
## Optional:
```
sudo apt-get install screen
add in /etc/rc.local the command to run at startup:
sudo nano /etc/rc.local
copy and past: runuser -l pi -c '(cd /home/pi/Universal_HamRadio_Remote_HTML5/ && ./UHRR >> /tmp/uhrr.log) &'
```
![alt text](README/UHRR_conf_Pict.png)
```
[SERVER]
SERVER TCP/IP port:Defautl:8888.The server port
SERVER Authentification type: Defautl:leave blank. Else you can use "FILE" or/and "PAM".
SERVER database users file: Defautl:UHRR_users.db Only if you use Authentification type "FILE".
You can change database users file in UHRR.conf.
To add a user in FILE type, add it in UHRR_users.db (default file name).
Add one account per line as login password.
If you plan to use PAM you can add account in command line: adduser --no-create-home --system thecallsign.
If you whant to change certfile and keyfile, replace "UHRH.crt" and "UHRH.key" in the boot folder, and when the pi boot, it will use those files to start http ssl.
[AUDIO]
AUDIO outputdevice: Output from audio soundcard to the mic input of TRX.
AUDIO inputdevice: Input from audio soundcard from the speaker output of TRX.
[HAMLIB]
HAMLIB radio model: Hamlib trx model.
HAMLIB serial port: Serial port of the CAT interface.
HAMLIB radio rate: Serial port baud rate.
HAMLIB auto tx poweroff: Set to auto power off the trx when it's not in use
[PANADAPTER]
PANADAPTER FI frequency (hz):
HAMLIB radio rate (samples/s):
PANADAPTER frequency correction (ppm):
PANADAPTER initial gain:
Possible problem:No
```
## Possible problem
No //is for get some problemes from the code
## Other optional
To get more functionality you can use the latest version of HamLib
```
git clone https://github.com/Hamlib/Hamlib
cd Hamlib
./bootstrap
./configure --with-python-binding PYTHON=$(which python3)
make
sudo make install
cd bindings
make
sudo make install
```
And finally now run with:
```
PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR
```
Special thanks to :
-Mike W9MDB! and all the hamlib team for all their hard work