sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
Yun_ESP8266_SHT31_WiFi_REST Namespace Reference

Functions

def read_mon_values
 
def blink
 

Variables

dictionary CONF
 
tuple ax = plt.gca()
 
tuple parsed = json.loads(unicode(urllib2.urlopen("http://%s/" % CONF['sensor']).read(), errors='replace'))
 
tuple ts = (time.asctime(), time.time())
 
list output = CONF['fmt_print']
 

Function Documentation

def Yun_ESP8266_SHT31_WiFi_REST.blink ( )
def Yun_ESP8266_SHT31_WiFi_REST.read_mon_values ( )

Variable Documentation

tuple Yun_ESP8266_SHT31_WiFi_REST.ax = plt.gca()
dictionary Yun_ESP8266_SHT31_WiFi_REST.CONF
Initial value:
1 = {
2  'sensor': "192.168.11.7:8080", # ESP8266 (IP fixed/static assigned on DHCP server/router)
3 # 'sensor': "192.168.11.13:80", # Arduino Yun (IP not fixed...)
4 
5  'interval_update': 20.,
6  'interval_timeout': 3.,
7 
8  'log_file': "Yun_ESP8266_SHT31_WiFi_REST.log",
9  'fmt_print': "%s, %14.3f, %9.3f °C, %9.3f %%rf, %9.3f V",
10  'fmt_write': "%s, %14.3f, %9.3f, %9.3f, %9.3f",
11 }
list Yun_ESP8266_SHT31_WiFi_REST.output = CONF['fmt_print']
tuple Yun_ESP8266_SHT31_WiFi_REST.parsed = json.loads(unicode(urllib2.urlopen("http://%s/" % CONF['sensor']).read(), errors='replace'))
tuple Yun_ESP8266_SHT31_WiFi_REST.ts = (time.asctime(), time.time())