increase positions logged

This commit is contained in:
KF7EEL 2021-02-26 21:51:42 -08:00
parent 77309d5ca6
commit 61fd13514b
4 changed files with 8 additions and 2 deletions

View File

@ -167,7 +167,7 @@ def dashboard_loc_write(call, lat, lon, time):
# dash_entries = []
dash_entries.insert(0, {'call': call, 'lat': lat, 'lon': lon, 'time':time})
with open("/tmp/gps_data_user_loc.txt", 'w') as user_loc_file:
user_loc_file.write(str(dash_entries[:15]))
user_loc_file.write(str(dash_entries[:50]))
user_loc_file.close()
logger.info('User location saved for dashboard')
#logger.info(dash_entries)

View File

@ -160,7 +160,7 @@ def dashboard_loc_write(call, lat, lon, time):
# dash_entries = []
dash_entries.insert(0, {'call': call, 'lat': lat, 'lon': lon, 'time':time})
with open("/tmp/gps_data_user_loc.txt", 'w') as user_loc_file:
user_loc_file.write(str(dash_entries[:15]))
user_loc_file.write(str(dash_entries[:50]))
user_loc_file.close()
logger.info('User location saved for dashboard')
#logger.info(dash_entries)

View File

@ -58,7 +58,12 @@ def get_loc_data():
</td>
</tr>
'''
display_number = 15
for e in dash_loc:
if display_number == 0:
break
else:
display_number = display_number - 1
tmp_loc = tmp_loc + '''<tr>
<td style="text-align: center;"><a href="https://aprs.fi/''' + e['call'] + '''"><strong>''' + e['call'] + '''</strong></a></td>
<td style="text-align: center;"><strong>&nbsp;''' + str(e['lat']) + '''&nbsp;</strong></td>

View File

@ -51,3 +51,4 @@ contact_website = 'https://hbl.ink'
# Center dashboard map over these coordinates
map_center = (47.00, -120.00)
zoom_level = 7