import { me } from 'companion' ; const MILLISECONDS_PER_MINUTE = 1000 * 60 ; me . wakeInterval = 30 * MILLISECONDS_PER_MINUTE ; if ( me . launchReasons . wokenUp ) { console . log ( 'Started due to wake interval!' ) ; } else { me . yield ( ) ; }