MCPcopy Create free account

hub / github.com/alwaysai/posture-corrector / functions

Functions14 in github.com/alwaysai/posture-corrector

↓ 2 callersMethodcheck_head_drop
Checks whether a use has tilted their head downwards, chin towards chest (eyes are at ear level) :return: Boolean True if
posture.py:112
↓ 2 callersMethodcheck_lean_forward
Checks whether an individual is leaning forward (head towards computer screen) :return: Boolean True if not leaning forwa
posture.py:84
↓ 2 callersMethodcheck_slump
Checks whether a uses is slumped down in their chair (shoulders at eye level) :return: Boolean True if not slumped; False
posture.py:100
↓ 1 callersMethodbuild_message
Builds a string with advice to the user on how to correct their posture :return: string The string containing specific ad
posture.py:43
↓ 1 callersMethodcorrect_posture
Checks all current posture functions :return: Boolean True if all posture functions return True; False otherwise
posture.py:127
↓ 1 callersFunctionload_json
(filepath)
app.py:25
↓ 1 callersFunctionmain
()
app.py:33
↓ 1 callersMethodset_key_points
Updates the key_points dictionary used in posture calculations :param key_points: {} the dictionary to use for key_points
posture.py:19
Method__init__
(self, scale=1, key_points={})
posture.py:14
Methodget_key_points
Returns the instance's current version of the key_points dictionary :return: {} the current key_points dictionary
posture.py:27
Methodget_message
Getter method to return the current message :return: string The current posture message
posture.py:59
Methodget_scale
Returns the current scale for the instance :return: int The scale being used by the instance for posture calculations
posture.py:76
Methodset_message
Setter to update the message manually if needed :param message: string The message to override the current message
posture.py:35
Methodset_scale
Sets the scale factor to use for the posture calculations :param scale: int The value to scale the measurements used in t
posture.py:67