qconrad / intellistar-emulator

A web application that displays weather information in the same visual presentation as the cable headend unit Intellistar.
https://qconrad.github.io/intellistar-emulator/
MIT License
90 stars 71 forks source link

Improvements to metric rendering #34

Closed EvilJackCarver closed 1 year ago

EvilJackCarver commented 1 year ago

Overview

Cliffnotes version

Full version

Currently, metric rendering in the Current Conditions screens is a bit messy. Assuming a day with visibility greater than 10 miles (16 km) and standard atmospheric pressure (29,92 inHg / 1013 hPa), the second screen of the Current Conditions will show:

(This assumes that the Pressure display finishes counting that high, as its current starting point of zero does not quite give it enough time to finish tallying, with a suitable gap to be read, before disappearing.)

In addition, there is an issue with the wind in the first screen of the Current Conditions where the wind speed will show "mph" as the unit, regardless of the configuration's setting.

Notes

Complete list of changes made

Screenshots

Metric mode (units = 'm')

image First screen of Current Conditions, set to use metric. The wind speed is stated to be five kilometres per hour.


image Second screen of Current Conditions, set to use metric. The visibility is stated to be 16 kilometres, and the air pressure is 1027 millibars.


US mode (units = 'e')

image First screen of Current Conditions, set to use US measures. The wind speed is stated to be three miles per hour.


image Second screen of the Current Conditions, set to use US measures. The visibility is stated to be 10 miles, and the air pressure is 30.32 inches mercury.

qconrad commented 1 year ago

Looks good! I appreciate the detailed pull request.