Winddirection in twitter Feed

Post Reply
Michael
Observer
Observer
Posts: 37
Joined: Sun Aug 19, 2018 3:06 pm
Location: Schwabach, Germany
Station model: TE923
Software: WEEWX
Contact:

Winddirection in twitter Feed

Post by Michael » Wed Oct 24, 2018 7:15 pm

Hi,

maybe anyone can help me.
I want to get the wind direction in style (N, O, S, W) in my twitter feed. Not in style °.
I added the follwing line in file postCurrent.php in twitter Block directory:

$twitterString .= ", ".number_format($apiData['B'])."°";
$twitterString .= " ".lang("Windrichtung",'c');


The twitterString looks like this:

Aktuelles #Wetter in #Schwabach - 20:58: 11.1°C Aussentemperatur, 90% Luftfeuchte, 1020.8 hPa Luftdruck, 4.6 mm Regen, 2.9 km/h Wind, 315° Windrichtung, 11.3°C Bodennahe Temperatur (Bodenfrostmessung).

The Winddirection is shown at 315°.
What must i do to see the Winddirection in style of NNW, so that it looks like in API-Plugin?

Michael
Michael

Image

Post Reply