-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
First and formost, my modified shark-py "library" is required. I took the shark-py code, originally published by battlehax (https://github.com/battlehax/shark-py), and updated the authentication mechanism to support JSON Web Tokens, as Openspot firmware 0101 and later requires this to use the Shark API. I have also updated some of the code to make it compatable with Python 3.7. #### *Find it at https://github.com/kf7eel/shark-py .
This script also requires the follwing Python modules: re, binascii, shark, time, os, datetime, smtplib, email, poplib
which should be included on any modern Linux distrobution.
The source id under the DMR SMS page must match the "hotspot_id" in config.py. SMS messages must be sent to that DMR ID, private SMS.
"tdma_channel" in shark.py must match the DMO channel in the connectors page, and the TDMA channel to which the openspot sends traffic to the network. TDMA channel = slot.
SMS page appears to only send on slot 1.
When using send-sms.py in example, and every thing configured for Slot 2, it appears that Openspot sends group SMS to network in MMDVM mode... Hmm, interesting...
Download this repository into the same folder as shark-py, found at https://github.com/kf7eel/shark-py.
- Download shark-py-sms.
git clone https://github.com/kf7eel/shark-py-sms.git
- Download the modified shark-py into shark-py-sms folder, found at https://github.com/kf7eel/shark-py.
cd shark-py-sms
python3.7 install.py
-
Open config.py and edit neseccary lines.
-
Install required Python libraries using pip3.
In Debian,
sudo apt install python3.7 pip3
pip3 install aprslib
- Run:
python3.7 sms_loop.py
Open another window or ssh session and run:
python3.7 aprs_receive.py
for APRS receiving functionality.
Install all necessary python modules if it complains about import errors.
That should be it.