increase positions logged
This commit is contained in:
		
							parent
							
								
									77309d5ca6
								
							
						
					
					
						commit
						61fd13514b
					
				@ -167,7 +167,7 @@ def dashboard_loc_write(call, lat, lon, time):
 | 
				
			|||||||
    #    dash_entries = []
 | 
					    #    dash_entries = []
 | 
				
			||||||
    dash_entries.insert(0, {'call': call, 'lat': lat, 'lon': lon, 'time':time})
 | 
					    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:
 | 
					    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()
 | 
					            user_loc_file.close()
 | 
				
			||||||
    logger.info('User location saved for dashboard')
 | 
					    logger.info('User location saved for dashboard')
 | 
				
			||||||
    #logger.info(dash_entries)
 | 
					    #logger.info(dash_entries)
 | 
				
			||||||
 | 
				
			|||||||
@ -160,7 +160,7 @@ def dashboard_loc_write(call, lat, lon, time):
 | 
				
			|||||||
    #    dash_entries = []
 | 
					    #    dash_entries = []
 | 
				
			||||||
    dash_entries.insert(0, {'call': call, 'lat': lat, 'lon': lon, 'time':time})
 | 
					    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:
 | 
					    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()
 | 
					            user_loc_file.close()
 | 
				
			||||||
    logger.info('User location saved for dashboard')
 | 
					    logger.info('User location saved for dashboard')
 | 
				
			||||||
    #logger.info(dash_entries)
 | 
					    #logger.info(dash_entries)
 | 
				
			||||||
 | 
				
			|||||||
@ -58,7 +58,12 @@ def get_loc_data():
 | 
				
			|||||||
    </td>
 | 
					    </td>
 | 
				
			||||||
    </tr>
 | 
					    </tr>
 | 
				
			||||||
    '''
 | 
					    '''
 | 
				
			||||||
 | 
					        display_number = 15
 | 
				
			||||||
        for e in dash_loc:
 | 
					        for e in dash_loc:
 | 
				
			||||||
 | 
					            if display_number == 0:
 | 
				
			||||||
 | 
					                break
 | 
				
			||||||
 | 
					            else:
 | 
				
			||||||
 | 
					                display_number = display_number - 1
 | 
				
			||||||
            tmp_loc = tmp_loc + '''<tr>
 | 
					            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;"><a href="https://aprs.fi/''' + e['call'] + '''"><strong>''' + e['call'] + '''</strong></a></td>
 | 
				
			||||||
    <td style="text-align: center;"><strong> ''' + str(e['lat']) + ''' </strong></td>
 | 
					    <td style="text-align: center;"><strong> ''' + str(e['lat']) + ''' </strong></td>
 | 
				
			||||||
 | 
				
			|||||||
@ -51,3 +51,4 @@ contact_website = 'https://hbl.ink'
 | 
				
			|||||||
# Center dashboard map over these coordinates
 | 
					# Center dashboard map over these coordinates
 | 
				
			||||||
map_center = (47.00, -120.00)
 | 
					map_center = (47.00, -120.00)
 | 
				
			||||||
zoom_level = 7
 | 
					zoom_level = 7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user