function update_mot(new_mot) {
    // trigger will depend on which page we are currently viewing
    switch (current_page) {
        case 'analysis':
            // do mot update for analysis page
            break;
        case 'home':
            // do mot update for home page
            break;
        case 'sleeping':
            // do mot update for sleeping page
            break;
        case 'recommendations':
            // do mot update for recommendations page
            break;
        default:
            throw Error('current_page variables not set and caught properly!')
    }
}
// the function triggers an update of the mot visualization on the frontend
the function triggers an update of the mot visualization on the frontend
the function triggers an update of the mot visualization on the frontend
function update_mot(new_mot) {
    switch (current_page) {
        case 'analysis':
            break;
        case 'home':
            break;
        case 'sleeping':
            break;
        case 'recommendations':
            break;
        default:
            throw Error('current_page variables not set and caught properly!')
    }
}
function update_mot ( new_mot ) { switch ( current_page ) { case 'analysis' : break ; case 'home' : break ; case 'sleeping' : break ; case 'recommendations' : break ; default : throw Error ( 'current_page variables not set and caught properly!' ) } }
the function triggers an update of the mot visualization on the frontend
the function triggers an update of the mot visualization on the frontend
// trigger will depend on which page we are currently viewing // do mot update for analysis page // do mot update for home page // do mot update for sleeping page // do mot update for recommendations page