# -*- coding: utf-8 -*-
"""

@author: David S. De Lorenzo

Code from Stuart, copied below.

This script sends a request to the RF switch at
IP address 10.1.150.68, the signal paths are:

     'SETA' state       signal source
    --------------   -------------------
           0          Spirent Simulator
           1              Live Sky

Comment/uncomment whichever signal path you want,
and then run this file in a Python interpreter.

"""

import requests

# Spirent simulator
r = requests.get('http://10.1.141.66/SETA=0', timeout=10, verify=False)
r.raise_for_status()
print("Spirent Simulator:", r.text)

# Live sky
# r = requests.get('http://10.1.141.66/SETA=1', timeout=10, verify=False)
# r.raise_for_status()
# print("Live Sky:", r.text)
