コード例 #1
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
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
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
def show_current_weather():
    chromium.open_url("localhost:8080/i_currentWeather")
    return dict(status="OK")
コード例 #3
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
def show_soccer_table(liga):
    chromium.open_url("localhost:8080/i_soccerTable/" + liga)
    return dict(status="OK")
コード例 #4
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
def i_show_url(url_id):
    url_to_open = cfg['show_url'][url_id]
    chromium.open_url(url_to_open)
コード例 #5
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
def showURL(url_id):
    chromium.open_url("localhost:8080/i_show_url/" + url_id)
    return dict(status="OK")
コード例 #6
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
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
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
def show_current_solar():
    chromium.open_url("localhost:8080/i_currentSolar")
    return dict(status="OK")
コード例 #15
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
def show_soccer_matches(liga):
    chromium.open_url("localhost:8080/i_soccerMatches/" + liga)
    return dict(status="OK")
コード例 #16
0
ファイル: server.py プロジェクト: RaphaelVogel/dashboard
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)