Sinkrate 2.0: a ingame-toolbar-panel for the microsoft flightsimulator MSFS 2020
As ingame-panel "Sinkrate 2.0" shows aircraft-related informations according to the active aircraft.
Tabs contain further aircraft-related informations for departure, cruising and arrival like air-v-speeds.
E.g. clicking the "Departure"-tab will show the take-off-velocities.
For complex models like the Douglas DC-3 additional informations might be shown e.g. for starting the engines.
Like before you may calculate sink-rates and ascend-rates easily with aircraft-based default-values.
Additionally measurement units can be converted, displayed aircrafts can be changed and all aircraft-properties can be listed.
"Sinkrate 2.0" is written in php, javascript, html and css.
Therefore all data and structures (aircraft data, elements and entries, defaults, functions) can be edited.
Online-demo
Here is an online-demo showing data for the Cessna 172 Skyhawk or the more complex model of the Douglas DC-3.
The web-frontend uses javascript-functionalities.
The font-sizes may be changed to fit your monitor (see Testing.
Requirement
You might create an directory c:\tools
for the software elements like PHP, Sinkrate 2.0, etc.
Required is an "installation" of the php programming language.
Get a download of php and extract it in any directory (e.g. c:\tools\php
).
This is not a regular installation, because your windows-system will not be touched.
There are only some files in a directory which might be deleted in case of dislike.
None of the mentioned software-elements need a change of settings in Windows or the flightsimulator.
Download
There are 2 downloads: Sinkrate-2.0 as webpage and the ingame-panel for MSFS 2020.
Installation
As mentioned before: there is no regular installation.
You only have to create directories, where some files are to be copied.
A deinstallation might be done with deleting these directories.
sinkrate-2-0.zip:
- Create a directory for the webpage-files, e.g.
c:\tools\sinkrate
. - Copy the files in sinkrate-2-0.zip into this directory.
panel-sinkrate.zip:
- Open the community-directory of your Microsoft Flightsimulator 2020 (How to locate the "community folder").
- Copy the panel-sinkrate.zip-folder
panel-sinkrate
into your community-directory.
By the way: The names of the community-subdirectories can be choosen freely.
The folder-name "panel-sinkrate" has been choosen for a better viewability when listing them in a file manager.
Webserver
PHP gives you a local webserver, which can be used by the ingame-toolbar-panel.
The local webserver allows to show the ingame-panel without iframe-security-restrictions.
Furthermore "Sinkrate 2.0" needs access to local files of your flightsimulator, which isn't possible from an external webserver.
Starting the local PHP-webserver can be done like this:
c:\tools\php\php -S 127.0.0.1:80 -t PFAD-ZU-SINKRATE-2.0
.
-S
starts php as webserver (reachable under the given IP-adress and port).
-t
tells the path to the webservers root directory.
Common example: c:\tools\php\php -S 127.0.0.1:80 -t c:\tools\sinkrate
Inside a batch-file: start /MIN cmd /c c:\tools\php\php -S 127.0.0.1:80 -t c:\tools\sinkrate
Stopping the local PHP-webserver is done in my case with taskkill /F /IM php.exe
.
Testing
After starting a PHP-server-instance
(like the common example: c:\tools\php\php -S 127.0.0.1:80 -t c:\tools\sinkrate
)
you may open a webbrowser with the adress 127.0.0.1
.
You should see the info-panel.
Starting the flightsimulator and loading any flight the toolbar should contain an "i"-Pictogram.
Click the "i"-pictogram and adapt the window size.
The font-sizes may be changed to fit your monitor.
Inside the file c:\tools\sinkrate\formate.css
you may edit body { font-size:1.2em; }
.
1.2 em might fit for 1920*1080px-monitors, higher resolutions might be fine with e.g. 1.6 em.
Changes will be visible inside the flightsimulator after minimizing/restoring or reloading the panel.
Usage
You may prefer a computer mouse for the sinkrate-info-panel, because keyboard-signals can execute commands in the simulator.
Tabs
Commons:
- common infos for each aircraft
- specific annotations
- infos about deviant circumstances
Departure:
- runway length for starting
- v-speeds for starting
- infos about "short-field"-starting
Cruise:
- v-speeds for cruising
- cruise altitudes
- range
Approach:
- runway length for landing
- special infos
- v-speeds for landing
Calculations:
-
Changing field-values in the "Calculation"-tab can easily be done with the mouse
- with clicking the scroll-symbols in the right field-area
- or via clicking into the field and scrolling the mouse-wheel. -
Each of 4 fields of the "Calculation"-tab might be choosen as calculation-target.
Changing values of any other field will recalculate the target value.
Also ascend- and sinkrates as well as the needed time will be calculated. - The calculatable fields are "distance in nm", "height difference in ft", "ground speed in kts" und "ascend- and sinkrate in ft/min".
- The calculation of e.g. "height difference in nm" is a approach to a more complex reality.
?:
- model-name inside the flightsimulator
- converting units
- show infos of another aircraft
- list some aircraft properties to compare
aircraft.ini
Sinkrate 2.0 tries:
- to read the simulators current aircraft
- and to show its information in the ingame-panel.
Therefor the corresponding entries in aircraft.ini are processed.
This file contains all needed information about some aircraft.
Changing values and infos or deleting or adding aircrafts can easily be done with a simple editor.
The file aircraft.ini contains additional informations about the structure of sections, variables and variable-prefixes.
Changes can be viewed in
- a browser with reloading the local URL 127.0.0.1 (with a running PHP-webserver)
- in the flightsimulator e.g. with minimizing and restoring the panel-windows.
Running in a batch-file
The ingame-toolbar-panel "Sinkrate 2.0" is calling a local webserver,
which i comfortably start (or close) together with the flightsimulator.
You may have a look into my batch-file as template for free editing.
Credits
The Sinkrate-Info-Panel is inspired by the cleaned code of RoscoHead based on the work of maximus.
The CSS-Layout of the javascript-free tab-bars is from Joseph Fusco.