9a2515bcd7
Passing on errors in get_geoip_info function instead of [returning it](https://github.com/blacktwin/JBOPS/blob/master/maps/ips_to_maps.py#L151). Changing the [get_geo_dict function's exception](https://github.com/blacktwin/JBOPS/blob/master/maps/ips_to_maps.py#L195-L198) to catch and return culprit. ```python except AttributeError: print('User: {} IP: {} caused error in geo_dict.'.format(a.friendly_name, a.ip_address)) pass except Exception as e: print(e) pass return geo_dict ``` |
||
---|---|---|
.. | ||
EU_map_example.PNG | ||
geojson_example.geojson | ||
ips_to_maps.py | ||
NA_map_example.PNG | ||
readme.md | ||
World_map_example.PNG |
Maps
Maps are created with either Matplotlib/Basemap or as a geojson file on an anonymous gist.
Choose which map type you'd like by using the -l
argument:
-l , --location Map location. choices: (NA, EU, World, Geo)
(default: NA)
Requirements
* not required if creating geojson maps
Matplotlib map examples:
TODO LIST:
- Add check for user count in user_table to allow for greater than 25 users
- If platform is missing from PLATFORM_COLORS use DEFAULT_COLOR
- Add arg to allow for runs in headless (mpl.use("Agg"))
- Add
try
to pass on N/A values for Lon/Lat
Feature updates:
- Add arg for legend (best, none, axes)
- Add arg for tracert visualization from server to client
- Animate tracert visualization? gif?