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