Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler body Pass Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Assign NameStore Str orelse If UnaryOpNot NameLoad body Assign NameStore Str orelse Assign NameStore BinOpMod Str Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Assign NameStore Str Assign NameStore BinOpAdd NameLoad SubscriptLoad NameLoad Slice Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq SubscriptLoad NameLoad Index Str Str body If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse If CompareIn SubscriptLoad NameLoad Index Str ListLoad Str Str body Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpBitOr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore BinOpSub NameLoad BinOpDiv SubscriptLoad NameLoad Index Str Num If CompareGt NameLoad Num body Return BinOpMod Str TupleLoad BinOpDiv NameLoad Num BinOpDiv BinOpMod NameLoad Num Num orelse Return BinOpMod Str TupleLoad BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If BoolOpAnd NameLoad NameLoad body Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad orelse Assign NameStore Str Assign NameStore TupleLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num UnaryOpUSub Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AugAssignAdd NameStore Num If CompareEq NameLoad NameLoad body Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad
N/A N/A time N/A datetime N/A curses N/A locale waze_thread WazeUpdaterThread gps_thread GpsThread WazeClient N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self gps_t N/A GpsThread N/A N/A N/A N/A self gps_t setDaemon True N/A N/A N/A N/A self gps_t start N/A N/A self waze_t N/A WazeUpdaterThread update_interval 60 max_age 3600 N/A N/A N/A N/A self waze_t setDaemon True N/A N/A N/A N/A self waze_t start N/A N/A N/A locale setlocale N/A locale LC_ALL N/A N/A self _code N/A N/A locale getpreferredencoding N/A N/A N/A N/A N/A curses wrapper N/A self run N/A N/A N/A KeyboardInterrupt N/A N/A N/A _encstr N/A N/A self string N/A N/A N/A N/A N/A string encode N/A self _code N/A initscr N/A N/A self stdscr N/A N/A N/A N/A N/A curses use_default_colors N/A N/A N/A N/A N/A curses curs_set 0 N/A N/A N/A N/A N/A size N/A N/A stdscr getmaxyx N/A status_height 1 N/A N/A self _status_win N/A N/A stdscr subwin N/A N/A size N/A 0 status_height 0 N/A N/A N/A self _set_status False False N/A N/A self _alerts_win N/A N/A stdscr subwin N/A N/A size N/A 0 status_height N/A size N/A 1 0 0 N/A _set_status N/A N/A self fix alerts N/A N/A N/A 
        Sets status line to show if fix and alerts are available
         N/A N/A fix N/A N/A text No GPS fix N/A N/A N/A alerts N/A N/A text No Waze alerts available N/A N/A text N/A GPS fix ok, Waze alerts: %d N/A len alerts N/A N/A lines cols N/A N/A N/A self _status_win getmaxyx N/A text N/A N/A text rjust N/A cols 1 N/A helptext WAZE ALERTS N/A text N/A helptext N/A text N/A N/A len helptext N/A N/A N/A N/A self _status_win addstr 0 0 text N/A curses A_REVERSE N/A N/A N/A N/A self _status_win refresh N/A _prepare_alert_description N/A N/A self alert N/A N/A N/A attrs N/A N/A curses color_pair 0 N/A N/A N/A alert N/A type WEATHERHAZARD N/A N/A N/A N/A len N/A alert N/A subtype 0 N/A N/A N/A N/A alert N/A subtype HAZARD_ON_ROAD_OBJECT N/A N/A typ Object on road N/A N/A N/A N/A alert N/A subtype HAZARD_ON_ROAD_CONSTRUCTION N/A N/A typ Construction on road N/A N/A N/A N/A alert N/A subtype HAZARD_ON_ROAD_POT_HOLE N/A N/A typ Pothole on road N/A N/A N/A N/A alert N/A subtype N/A HAZARD_ON_SHOULDER_CAR_STOPPED HAZARD_ON_ROAD_CAR_STOPPED N/A N/A typ Car stopped N/A N/A typ N/A alert N/A subtype N/A N/A typ N/A alert N/A type N/A N/A N/A N/A alert N/A type POLICEMAN N/A N/A N/A N/A alert N/A subtype POLICE_VISIBLE N/A N/A typ Police visible N/A N/A N/A N/A alert N/A subtype POLICE_HIDING N/A N/A typ Police hiding N/A N/A typ Police N/A attrs N/A N/A N/A curses color_pair 0 N/A curses A_BOLD N/A N/A typ N/A alert N/A type N/A typ N/A N/A typ title N/A N/A typ attrs N/A _prepare_timestamp N/A N/A self alert N/A N/A N/A nowdt N/A long N/A N/A N/A N/A N/A datetime datetime now strftime %s N/A seconds N/A nowdt N/A N/A alert N/A pubMillis 1000 N/A N/A seconds 3600 N/A N/A N/A %dh %dm N/A N/A seconds 3600 N/A N/A seconds 3600 60 N/A N/A N/A %dm N/A N/A seconds 60 N/A _prepare_alert_line N/A N/A self alert N/A N/A N/A N/A description attrs N/A N/A self _prepare_alert_description alert N/A city N/A N/A alert get city N/A street N/A N/A alert get street N/A N/A city street N/A N/A fmt %s in %s, %s N/A args N/A description city street N/A N/A N/A city N/A street N/A N/A fmt %s in %s N/A args N/A description city N/A N/A fmt %s N/A args N/A description N/A text N/A fmt args N/A N/A lines cols N/A N/A N/A self _alerts_win getmaxyx N/A distance_text N/A %.1f km N/A round N/A alert N/A distance 1 N/A timestamp_text N/A N/A self _prepare_timestamp alert N/A right_text N/A |%s|%s N/A N/A N/A timestamp_text rjust 6 N/A N/A distance_text rjust 7 N/A text N/A N/A text ljust N/A cols 1 N/A text N/A N/A text N/A 0 N/A N/A len right_text right_text N/A text N/A N/A self _encstr text N/A N/A text attrs N/A run N/A N/A self stdscr N/A N/A N/A N/A N/A self initscr stdscr N/A True N/A N/A fix N/A N/A N/A self gps_t last_fix N/A fix N/A N/A N/A self _fix fix N/A N/A N/A N/A self waze_t set_last_position fix N/A alerts N/A N/A N/A self waze_t get_last_alerts N/A N/A N/A self _set_status fix alerts N/A N/A lines cols N/A N/A N/A self _alerts_win getmaxyx N/A alerts N/A N/A y 0 N/A N/A N/A N/A self _alerts_win erase N/A alert alerts N/A N/A N/A N/A N/A self _alerts_win move y 0 N/A N/A text attrs N/A N/A self _prepare_alert_line alert N/A N/A N/A N/A self _alerts_win addstr text attrs N/A y 1 N/A N/A y lines N/A N/A N/A N/A N/A N/A self _alerts_win refresh N/A N/A N/A stdscr refresh N/A N/A N/A time sleep 1 N/A N/A N/A N/A __name__ __main__ N/A N/A c N/A WazeClient