module documentation

Picoware Notifications Application

Gets FlipSocial, weather, email, and other notifications.

Function run Run the app.
Function start Start the app.
Function stop Stop the app.
Constant STATE_DONE Undocumented
Constant STATE_FETCHING_EMAIL Undocumented
Constant STATE_FETCHING_FLIP_SOCIAL Undocumented
Constant STATE_FETCHING_START Undocumented
Constant STATE_FETCHING_WEATHER_2 Undocumented
Function __advance_state Move to the next fetch state.
Function __card_height Calculate a card height from its content.
Function __close_http Close the HTTP client.
Function __close_imap Close the IMAP client.
Function __content_cards Build dashboard cards from notification data.
Function __draw Draw the notification dashboard.
Function __draw_card Draw one dashboard card.
Function __draw_icon Draw a compact notification icon.
Function __empty_cache Return the default notification cache.
Function __fit_text Fit text within a character limit.
Function __request_process Process the result of an asynchronous request.
Function __request_start Start an asynchronous request based on the current state.
Function __request_status Return the current fetch status.
Function __save_cache Persist completed notification data.
Function __set_error Store the first request warning.
Function __wrap_text Wrap text to the display width.
Variable _cache Undocumented
Variable _cache_saved Undocumented
Variable _http Undocumented
Variable _imap Undocumented
Variable _request_error Undocumented
Variable _scroll_offset Undocumented
def run(view_manager):

Run the app.

def start(view_manager):

Start the app.

def stop(view_manager):

Stop the app.

STATE_DONE =

Undocumented

Value
const(4)
STATE_FETCHING_EMAIL =

Undocumented

Value
const(3)
STATE_FETCHING_FLIP_SOCIAL =

Undocumented

Value
const(1)
STATE_FETCHING_START =

Undocumented

Value
const(0)
STATE_FETCHING_WEATHER_2 =

Undocumented

Value
const(2)
def __advance_state():

Move to the next fetch state.

def __card_height(draw, card: dict, detail_line_height: int) -> int:

Calculate a card height from its content.

def __close_http():

Close the HTTP client.

def __close_imap():

Close the IMAP client.

def __content_cards(view_manager) -> list:

Build dashboard cards from notification data.

def __draw(view_manager):

Draw the notification dashboard.

def __draw_card(draw, card: dict, x: int, y: int, width: int, height: int, body_top: int, body_bottom: int, detail_line_height: int):

Draw one dashboard card.

def __draw_icon(draw, icon: str, x: int, y: int, color: int):

Draw a compact notification icon.

def __empty_cache() -> dict:

Return the default notification cache.

def __fit_text(text: str, max_chars: int) -> str:

Fit text within a character limit.

def __request_process(view_manager):

Process the result of an asynchronous request.

def __request_start(view_manager) -> bool:

Start an asynchronous request based on the current state.

def __request_status() -> str:

Return the current fetch status.

def __save_cache(view_manager):

Persist completed notification data.

def __set_error(message: str):

Store the first request warning.

def __wrap_text(text: str, width: int) -> list:

Wrap text to the display width.

_cache =

Undocumented

_cache_saved: bool =

Undocumented

_http =

Undocumented

_imap =

Undocumented

_request_error: str =

Undocumented

_scroll_offset: int =

Undocumented