<h1 align="center">
<a href="https://prompts.chat">
This repository contains a self‑contained web application for the
Sign in to like and favorite skills
This repository contains a self‑contained web application for the
HEMS Simulation portal. It is inspired by the existing site at
but redesigned to be
fully editable by administrators and to expose working plugin
endpoints for both Microsoft Flight Simulator (MSFS) and X‑Plane.helicoptersim.org
admin123 (you should change this immediately)./api/plugins/msfs or /api/plugins/xplane. Incoming
altitude, speed, fuel and engine status values are stored in a
SQLite database and displayed both on the landing page and in the
admin panel.plugins/msfs_plugin.py
and plugins/xplane_plugin.py) simulate sending random telemetry
data to the server. These serve as a starting point for real
simulator integrations.This project has no external dependencies beyond the Python packages already available in this environment. It uses FastAPI and Jinja2 for the web layer and the built‑in
sqlite3 module for persistence.
Open a terminal and change into the project directory:
cd hems_app
Start the development server using uvicorn:
uvicorn main:app --reload --port 8000
The
--reload flag enables automatic reloading when you edit
templates or Python code.
Visit
http://localhost:8000/ in your browser to see the
landing page. Click the Admin link in the top right and log
in with the default password admin123 to access the admin
dashboard. From there you can edit the content and change the
password.
/admin/login using the current
password.Two sample plugins are included under the
plugins/ directory. They
generate random flight data and send it to the server every five
seconds. You can run them as follows (replace localhost:8000 with
your server’s address if different):
python plugins/msfs_plugin.py http://localhost:8000 python plugins/xplane_plugin.py http://localhost:8000
Each script will output a message whenever data is sent. On the landing page you will see the most recent telemetry in the Recent Simulator Data section, and the full history is available from the admin panel under View Plugin Data.
static/style.css. Modify this file to change colours, layout
spacing, or any other visual aspect.templates/base.html. You can adjust the menu items
there or link them to real pages when you implement additional
functionality.This application is intended as a starting point. For production deployments you should run behind a proper ASGI server such as
uvicorn or hypercorn and configure HTTPS termination. The
database (db.sqlite3) will be created automatically; if you wish
to start over with a clean database you may delete this file before
launching the server.
This project is provided as‑is without any warranty. You are free to modify and distribute it for your own use.