from enums import PlaybackMode, PowerState import control import weather as weather import infrared as infrared import rfid as rfid import bluetooth as bluetooth import radio as radio import power as power import speakers as speakers import web_server.backend # import tracemalloc # tracemalloc.start(10) logger = utils.create_logger('main') STATE = utils.state() # Load stations and music library file stations, music_lib = utils.openFiles() def get_station_object_by_player(player, stations): return stations[player.playlist_pos] def print_tags(): while True: sleep(1) if STATE['playback_mode'] is PlaybackMode.Radio: try:
def state(self, call): return utils.create_keyboard(utils.state(call))