fixed platform loading
This commit is contained in:
		@@ -33,6 +33,6 @@ API_URL = os.environ.get("API_URL", "http://localhost:8080")
 | 
			
		||||
REPORT_URL = os.environ.get("REPORT_URL", None)
 | 
			
		||||
REPORT_INTERVAL = float(os.environ.get("REPORT_INTERVAL", 15))
 | 
			
		||||
 | 
			
		||||
DISABLE_AI = os.environ.get("DISABLE_AI").lower() in ['yes', '1', 'true']
 | 
			
		||||
DISABLE_AI = os.environ.get("DISABLE_AI", 'no').lower() in ['yes', '1', 'true']
 | 
			
		||||
 | 
			
		||||
PLATFORM = os.environ.get("", "raspberry")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,6 @@
 | 
			
		||||
from config import PLATFORM
 | 
			
		||||
from .config import PLATFORM
 | 
			
		||||
 | 
			
		||||
print("Loading platform driver:", PLATFORM)
 | 
			
		||||
 | 
			
		||||
if PLATFORM == 'raspberry':
 | 
			
		||||
    from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user