def __init__(self): self.SERIAL = kl_rpi_base.kl_rpi_api() self.CONFIG = kl_rpi_base.kl_rpi_config() self.DATABASE = kl_rpi_postgis.pg_datalink() self.WORKDIR = '' #active directory for data self.WEBRENDER = kl_rpi_render_webpage.render_html() ##### self.CONFIG.read_cfg() self.uart_enable = self.CONFIG.ATTR_UART_ENABLE
def update(self): foo = kl_rpi_base.kl_rpi_api() foo.write_gps_file('./gps_latlon.txt') #write to web directory