'''test telegram api''' from backend.fcmapp import ApplicationService, ComponentName APP = ApplicationService(ComponentName.fullcycle) HUMID, TEMPER = APP.readtemperature() MESSAGE = '{0}: Temp={1:0.1f}* Humidity={2:0.1f}%'.format(APP.now(), TEMPER.value or 0, HUMID.value or 0) APP.logdebug(MESSAGE) APP.shutdown()
'''test logging''' from backend.fcmapp import ApplicationService, ComponentName APP = ApplicationService(ComponentName.fullcycle) APP.loginfo('Unit Test Info') APP.logdebug('Unit Test Debug') APP.logerror('Unit Test Error')