WXsim forecast right to left

Hi there
strange thing happening with my WXSIM forecast all of a sudden its reading right to left :upside_down_face:
Hythe - Kent WXSIM Forecast

Nothing has changed but its working fine on the new PWS beta site.

Hythe Kent Personal Weather Station (ecoAPI version)

It uses the same forecast just uploaded to diff directories on site.
Any ideas?

There is RTL (right-to-left) CSS inserted in the saratoga plaintext php script when using this url without a language.

Line 198 :

$doRTL = (strpos($RTLlangs,$lang) !== false)?true:false;

This is the url used
https://www.hytheweather.co.uk/wxsimPP/plaintext-parser.php?lang=
This is the css inserted if $doRTL == true

<style type="text/css">
.WXSIMforecast {
	direction: rtl;
	unicode-bidi: embed;
}
</style>

When using a language all is OK.
https://www.hytheweather.co.uk/wxsimPP/plaintext-parser.php?lang=en

Wim

1 Like

Hi WIM
not to sure what file I have to amend as I have changed the plaintext-parser file and it made no difference.

Your pwsWD version lost correct languages settings. They are now β€œlang=&units=uk”

If you can not undo the language changes you could adept Ken Trues script
Line 198 is still unchanged

$doRTL = (strpos($RTLlangs,$lang) !== false)?true:false;

Could change that to

$doRTL = false;

Thanks wim all sorted.
Its a shame about the Beta testing.