Example #1
0
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")
Example #2
0
def show_current_weather():
    chromium.open_url("localhost:8080/i_currentWeather")
    return dict(status="OK")
Example #3
0
def show_soccer_table(liga):
    chromium.open_url("localhost:8080/i_soccerTable/" + liga)
    return dict(status="OK")
Example #4
0
def i_show_url(url_id):
    url_to_open = cfg['show_url'][url_id]
    chromium.open_url(url_to_open)
Example #5
0
def showURL(url_id):
    chromium.open_url("localhost:8080/i_show_url/" + url_id)
    return dict(status="OK")
Example #6
0
def show_pic_of_the_day():
    chromium.open_url("localhost:8080/i_picOfTheDay")
    return dict(status="OK")
Example #7
0
def display_maps_meckesheim_heilbronn():
    chromium.open_url("localhost:8080/i_show_url/meckesheim-heilbronn")
Example #8
0
def display_soccer_table2():
    chromium.open_url("localhost:8080/i_soccerTable/2")
Example #9
0
def display_pic_of_the_day():
    chromium.open_url("localhost:8080/i_picOfTheDay")
Example #10
0
def display_camera_hof():
    chromium.open_url("localhost:8080/i_display_rtsp_camera/1")
Example #11
0
def display_current_time():
    chromium.open_url("localhost:8080/i_currentTime")
Example #12
0
def display_current_solar():
    chromium.open_url("localhost:8080/i_currentSolar")
Example #13
0
def display_soccer_matches2():
    chromium.open_url("localhost:8080/i_soccerMatches/2")
Example #14
0
def show_current_solar():
    chromium.open_url("localhost:8080/i_currentSolar")
    return dict(status="OK")
Example #15
0
def show_soccer_matches(liga):
    chromium.open_url("localhost:8080/i_soccerMatches/" + liga)
    return dict(status="OK")
Example #16
0
def show_current_time():
    chromium.open_url("localhost:8080/i_currentTime")
    return dict(status="OK")
Example #17
0
def display_mjpeg_stream(number):
    camera_url = cfg['cam' + str(number)]['url']
    chromium.open_url(camera_url)