Example #1
0
    3: u"мар",
    4: u"апр",
    5: u"мая",
    6: u"июн",
    7: u"июл",
    8: u"авг",
    9: u"сен",
    10: u"окт",
    11: u"ноя",
    12: u"дек",
}

#other localizing strings:
str_tomorrow = u"Завтра"
str_pressure = u"Давление"
str_humidity = u"Влажность"
str_wind = u"Ветер"
str_pressure_units_line_1 = u"мм"
str_pressure_units_line_2 = u"рт"
str_pressure_units_line_3 = u"ст"
str_wind_speed = u"м/с"

#do not change anything below

if __name__ == "__main__":
    import rpiWSi, os
    if os.uname()[0] == "Linux":
        rpiWSi.ws_start(90)
    else:
        rpiWSi.ws_start(0)
Example #2
0
        
        ls_data["local_temp_out"]=attach_sign(round(float(sd[0])))
        ls_data["local_temp_in"] =attach_sign(round(float(sd[2])))
        ls_data["local_hum_out"]=int(float(sd[1]))
        ls_data["local_hum_in"]=int(float(sd[3]))
        ls_data["local_pressure"]=int(float(sd[5]))
        
        #xxx=xxx/0
        #debug data
        if debug:
            lto=random.randint(-30,30)
            if lto>0: s="+"
            else: s=""
            ls_data["local_temp_out"]=s+str(lto)
    
            ls_data["local_pressure"]=random.randint(720,760)  
            ls_data["local_hum_out"]=random.randint(99,100)

    except:
        if debug: print "Error getting sensor data:", sys.exc_info()[0]
        ls_data={}
    
    return ls_data

if __name__=="__main__":
    import rpiWSi
    if os.uname()[0]=="Linux":
        rpiWSi.ws_start(90)
    else:
        rpiWSi.ws_start(0)