Skip to content

Installation

KF7EEL edited this page Jan 9, 2020 · 3 revisions

Requirements

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.

My Openspot setup and other things I have found

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...


Installation - updated 1/8/20

Download this repository into the same folder as shark-py, found at https://github.com/kf7eel/shark-py.

  1. Download shark-py-sms.

git clone https://github.com/kf7eel/shark-py-sms.git

  1. 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

  1. Open config.py and edit neseccary lines.

  2. Install required Python libraries using pip3.

In Debian,

sudo apt install python3.7 pip3

pip3 install aprslib

  1. 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.

Clone this wiki locally