示例#1
0
def update():
    """
    called by the nmea listener process when seabus coordinates have been updated
    """
    telemetry = seabus_telemetry()
    socketio.emit('seabus_moved', telemetry, namespace='/seabus_data')
    return ('', 202)
示例#2
0
def update():
    """
    called by the nmea listener process when seabus coordinates have been updated
    """
    telemetry = seabus_telemetry()
    socketio.emit('seabus_moved', telemetry, namespace='/seabus_data')
    return ('', 202)
示例#3
0
def on_connect():
    """
    send initial telemetry on client connect
    """
    telemetry = seabus_telemetry()
    emit('seabus_moved', telemetry)
示例#4
0
def position_data():
    """
    Serve up position data to API clients
    """
    telemetry = seabus_telemetry()
    return jsonify(telemetry)
示例#5
0
def on_connect():
    """
    send initial telemetry on client connect
    """
    telemetry = seabus_telemetry()
    emit('seabus_moved', telemetry)