Add the current weather tag to the clientraw.txt file.

Brian, could you add the current weather tag to the clientraw.txt file. I’m using this in a small app I wrote to run in the task tray and I could use this to establish a current conditions icon.

if you tick sync icons, then the last number in the data is the icon number, and this is the code to produce it:
(i need to update the help on this)
if (imagesunny.visible)
then
temp:=0
else

    if (imageclearnight.visible)
    then
    temp:=1
    else
    if imagecloudy.visible
    then
    temp:=2
      else
    if imagecloudy2.visible
    then
    temp:=3
     else
    if imagecloudynight.visible
    then
    temp:=4
       else
    if imagedry.visible
    then
    temp:=5
      else
    if imagefog.visible
    then
    temp:=6
       else
    if imagehaze.visible
    then
    temp:=7
       else
    if imageheavyrain.visible
    then
    temp:=8
     else
    if imagemainlyfine.visible
    then
    temp:=9
     else
    if imagemist.visible
    then
    temp:=10
      else
    if imagenightfog.visible
    then
    temp:=11
      else
    if imagenightheavyrain.visible
    then
    temp:=12
        else
    if imagenightovercast.visible
    then
    temp:=13
         else
    if imagenightrain.visible
    then
    temp:=14
       else
    if imagenightshowers.visible
    then
    temp:=15
         else
    if imagenightsnow.visible
    then
    temp:=16
        else
    if imagenightthunder.visible
    then
    temp:=17
         else
    if imageovercast.visible
    then
    temp:=18
        else
    if imagepartlycloudy.visible
    then
    temp:=19
        else
    if imagerain.visible
    then
    temp:=20
         else
    if imagerain2.visible
    then
    temp:=21
         else
    if imageshowers2.visible
    then
    temp:=22
            else
    if imagesleet.visible
    then
    temp:=23
        else
    if imagesleetshowers.visible
    then
    temp:=24
         else
    if imagesnow.visible
    then
    temp:=25
       else
    if imagesnowmelt.visible
    then
    temp:=26
         else
    if imagesnowshowers2.visible
    then
    temp:=27
        else
    if imagesunny.visible
    then
    temp:=28
        else
    if imagethundershowers.visible
    then
    temp:=29
        else
    if imagethundershowers2.visible
    then
    temp:=30
         else
    if imagethunderstorms.visible
    then
    temp:=31
          else
    if imagetornado.visible
    then
    temp:=32
          else
    if imagewindy.visible
    then
    temp:=33;

Brian, where do I tick sync icons? Here is a cuurent list of my clientraw.txt file and the last number appears to be a temp or something?

12345 0.9 0.0 159 21.3 100 1009.2 14.7 30.7 764.5 0.0 3.8 25.4 34 0.0 0 0.0 0 3 0.0 21.0 25.4 21.1 -20.0 -20.0 -20.0 33.7 50.9 0.0 22 59 25 Bishop_Hills_Monrovia_Alabama 0 0 6 6 100 100 100 100 100 100 100 16.9 70.3

if you are using the latest verison, its in the client/server setup

OK Brian I ticked that option. Now where is it in the data line? I looked at the 16th field but its a zero and its night so either Its the wrong field or I did something wrong.

it is the last number

Cool. Thanks Brian.

Why do I have to choose “sync” rather than just include this in the clientraw.txt file by default?

because you may have the client downloading a metar to set the icon, or you may have the client with a solar sensor, and not the server
like me