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)
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)
def DnD_Tool(): return chats.index(db)
def chat(): return chats.index(db)
def index(): return chats.index(db)
def chatting(): return chats.index(db)