diff --git a/bridge_gps_data.py b/bridge_gps_data.py index 0a41540..4604cc9 100755 --- a/bridge_gps_data.py +++ b/bridge_gps_data.py @@ -177,7 +177,7 @@ def dashboard_bb_write(call, dmr_id, time, bulletin): dash_bb = ast.literal_eval(os.popen('cat /tmp/gps_data_user_bb.txt').read()) # except: # dash_entries = [] - dash_bb.insert(0, {'call': call, 'dmr_id': dmr_id, 'time': time, 'bulliten':bulletin}) + dash_bb.insert(0, {'call': call, 'dmr_id': dmr_id, 'time': time, 'bulletin':bulletin}) with open("/tmp/gps_data_user_bb.txt", 'w') as user_bb_file: user_bb_file.write(str(dash_bb[:10])) user_bb_file.close() diff --git a/gps_data.py b/gps_data.py index 2c6e928..ed0eef8 100644 --- a/gps_data.py +++ b/gps_data.py @@ -170,7 +170,7 @@ def dashboard_bb_write(call, dmr_id, time, bulletin): dash_bb = ast.literal_eval(os.popen('cat /tmp/gps_data_user_bb.txt').read()) # except: # dash_entries = [] - dash_bb.insert(0, {'call': call, 'dmr_id': dmr_id, 'time': time, 'bulliten':bulletin}) + dash_bb.insert(0, {'call': call, 'dmr_id': dmr_id, 'time': time, 'bulletin':bulletin}) with open("/tmp/gps_data_user_bb.txt", 'w') as user_bb_file: user_bb_file.write(str(dash_bb[:10])) user_bb_file.close() diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index c45f18f..517140b 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -21,7 +21,7 @@ This is a web dashboard for the GPS/Data application. ''' -from flask import Flask, render_template, request +from flask import Flask, render_template, request, Response import ast, os from dashboard_settings import * import folium @@ -107,7 +107,7 @@ def get_bb_data(): tmp_bb = tmp_bb + '''
Page automatically reloads every 2 minutes.
+