Initial commit: the FS25 Lua mod (live.json data export), the FS25-WebDashboard project (Node/web dashboard + PySide6 desktop variant), and FarmHUD (standalone PySide6 companion app with Discord Rich Presence, settings, and installer).
31 lines
647 B
Python
31 lines
647 B
Python
#!/usr/bin/env python3
|
|
"""FS25 Web Dashboard - native desktop app.
|
|
|
|
Reads the mod's live.json directly (no Node.js server / browser needed
|
|
anymore) and renders the same information the old web dashboard did as a
|
|
native PySide6 window.
|
|
|
|
Run:
|
|
pip install -r requirements.txt
|
|
python main.py
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from PySide6.QtWidgets import QApplication
|
|
|
|
from main_window import MainWindow
|
|
|
|
|
|
def main() -> int:
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName("FS25 Live Dashboard")
|
|
window = MainWindow()
|
|
window.show()
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|