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:

panel-sinkrate.zip:

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:

Departure:

Cruise:

Approach:

Calculations:

?:


aircraft.ini

Sinkrate 2.0 tries:

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.