COB data and dash
This commit is contained in:
35
run_cob_dashboard.py
Normal file
35
run_cob_dashboard.py
Normal file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Simple runner for COB Dashboard
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import sys
|
||||
|
||||
# Add the project root to the path
|
||||
sys.path.insert(0, '.')
|
||||
|
||||
from web.cob_realtime_dashboard import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Set up logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||
handlers=[
|
||||
logging.StreamHandler(sys.stdout),
|
||||
logging.FileHandler('cob_dashboard.log')
|
||||
]
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info("Starting COB Dashboard...")
|
||||
|
||||
try:
|
||||
asyncio.run(main())
|
||||
except KeyboardInterrupt:
|
||||
logger.info("COB Dashboard stopped by user")
|
||||
except Exception as e:
|
||||
logger.error(f"COB Dashboard failed: {e}", exc_info=True)
|
||||
sys.exit(1)
|
Reference in New Issue
Block a user