Example #1
0
def index():
    """
    example action using the internationalization operator T and flash
    rendered by views/default/index.html or views/generic.html

    if you need a simple wiki simply replace the two lines below with:
    return auth.wiki()
    """

    return chats.index(db)
Example #2
0
def sensor_updates():
    #chats._create_message(db, 'temperature', "현재 온도는 "+str(sht_db_main(1))+" ℃ 입니다.")
    #chats._create_message(db, 'humidity', "현재 습도는 "+str(sht_db_main(2))+" % 입니다.")
    if sht_db_main(1)>28:
        chats._create_message(db, 'temperature', "현재 온도는 "+str(sht_db_main(1))+" ℃ 입니다.\n온도가 너무 높습니다.\n명령 : alert by LCD/1")
    elif sht_db_main(2)>70:
        chats._create_message(db, 'humidity', "현재 습도는 "+str(sht_db_main(2))+" % 입니다.\n습도가 너무 높습니다. \n명령 : alert by LCD/2")
    else :
        chats._create_message(db, 'none', "쾌적한 상태입니다.")
    return chats.index(db)
Example #3
0
def DnD_Tool():
    return chats.index(db)
Example #4
0
def chat():
    return chats.index(db)
Example #5
0
def index():
    return chats.index(db)
Example #6
0
def DnD_Tool():
    return chats.index(db)
Example #7
0
def chatting():
    return chats.index(db)