smart_module.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:hapi 作者: mayaculpa 项目源码 文件源码
def main():
    try:
        smart_module = SmartModule()
        smart_module.asset.load_asset_info()
        smart_module.load_site_data()
        smart_module.discover()
        smart_module.load_influx_settings()
    except Exception as excpt:
        Log.exception("Error initializing Smart Module. %s.", excpt)

    while 1:
        try:
            time.sleep(0.5)
            schedule.run_pending()
        except Exception as excpt:
            Log.exception("Error in Smart Module main loop. %s.", excpt)
            break
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号