JBOPS/maps
blacktwin 9a2515bcd7 resolve n/a returns from geolite2
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
```
2017-07-21 09:29:32 -04:00
..
EU_map_example.PNG Add files via upload 2017-07-14 13:53:03 -04:00
geojson_example.geojson Create geojson_example.geojson 2017-07-14 13:53:52 -04:00
ips_to_maps.py resolve n/a returns from geolite2 2017-07-21 09:29:32 -04:00
NA_map_example.PNG Add files via upload 2017-07-14 13:53:03 -04:00
readme.md Update readme.md 2017-07-19 09:35:45 -04:00
World_map_example.PNG Add files via upload 2017-07-14 13:53:03 -04:00

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:

  • NA_map_example

    NA_map_example

  • EU_map_example

    EU_map_example

  • World_map_example

    World_map_example

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?