Extra space in Aeris weather descriptions **Solved**

The text weather descriptions in Aeris forecasts and current conditions all contain an extra space before a comma, e.g., “Cloudy , Light Rain”. I presume the best place to correct this is in the scripts where the json files are parsed and the json description, e.g., “Cloudy with Light Rain” is changed to “Cloudy , Light Rain”.

These are fct_aeris_shared.php, fct_aeris_shared_hrs.php and ccn_aeris_block.php

(Of course, I did not look at the json files first and did it the hard way, replacing " ," with “,” in every block and popup script. . . :slightly_frowning_face:)

I had never noticed that. Thanks for pointing it out.

Regards,

Jim

As Aeris only uses “(US) English”-wording, we have to break the (long) texts before translating.

For English we could skip those translations, but maybe some non-US English-languages use different wording for rare weather-descriptions.

The code inserting an extra space ' , ' was already introduced at 2020-12-09
Attached 3 updated Aeris scripts to test.

Succes, Wim

aeris.zip (9.6 KB)

That looks better: the code ' , ' becomes ', '

Thanks, Wim.

Looks good here too,
Thanks Wim

Jim