def display_camera(cam): if cam == '2': # mjpeg stream camera chromium.open_url("localhost:8080/i_display_mjpeg_camera/" + cam) else: # rtsp stream camera chromium.open_url("localhost:8080/i_display_rtsp_camera/" + cam) return dict(status="OK")
def show_current_weather(): chromium.open_url("localhost:8080/i_currentWeather") return dict(status="OK")
def show_soccer_table(liga): chromium.open_url("localhost:8080/i_soccerTable/" + liga) return dict(status="OK")
def i_show_url(url_id): url_to_open = cfg['show_url'][url_id] chromium.open_url(url_to_open)
def showURL(url_id): chromium.open_url("localhost:8080/i_show_url/" + url_id) return dict(status="OK")
def show_pic_of_the_day(): chromium.open_url("localhost:8080/i_picOfTheDay") return dict(status="OK")
def display_maps_meckesheim_heilbronn(): chromium.open_url("localhost:8080/i_show_url/meckesheim-heilbronn")
def display_soccer_table2(): chromium.open_url("localhost:8080/i_soccerTable/2")
def display_pic_of_the_day(): chromium.open_url("localhost:8080/i_picOfTheDay")
def display_camera_hof(): chromium.open_url("localhost:8080/i_display_rtsp_camera/1")
def display_current_time(): chromium.open_url("localhost:8080/i_currentTime")
def display_current_solar(): chromium.open_url("localhost:8080/i_currentSolar")
def display_soccer_matches2(): chromium.open_url("localhost:8080/i_soccerMatches/2")
def show_current_solar(): chromium.open_url("localhost:8080/i_currentSolar") return dict(status="OK")
def show_soccer_matches(liga): chromium.open_url("localhost:8080/i_soccerMatches/" + liga) return dict(status="OK")
def show_current_time(): chromium.open_url("localhost:8080/i_currentTime") return dict(status="OK")
def display_mjpeg_stream(number): camera_url = cfg['cam' + str(number)]['url'] chromium.open_url(camera_url)