[REL] WeatherPlugin

Discussion in 'Other' started by Stefan_L_01, Dec 14, 2017.

  1. Jeferson Richart

    Jeferson Richart Registered

    Joined:
    Oct 23, 2013
    Messages:
    124
    Likes Received:
    23
    For this to work, do I have to check Clouds roll in/out ?

    Another doubt. How the climate on the server should be defined. Script or sunny?
     
    Last edited: Jun 9, 2020
  2. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    438
    Likes Received:
    267
    Yes check roll in/out
    As the plugin takes over control, and does not let loose, it shouldnt matter what type in rf2. As scripted clears other functions you probably will go with scripted anyway
     
    Jeferson Richart likes this.
  3. yashiman

    yashiman Registered

    Joined:
    Jan 16, 2012
    Messages:
    44
    Likes Received:
    38
    Dear Stefan_L_01

    The rF2WeatherPlugin is very useful and very good.
    I always use this plugin in my server.
    Thank you!
    clima.jpg
    BTW, I ask you a small Question.
    In this case, rain is 15% when R=1.4343mm/Hour.
    Maybe, Rain % is about 10 times R.

    But I felt "15% rain" is strong.
    Because, I arbitrarliy understood to "rain% = mm/hour".

    Please let me know your Interpretation to rain%.
     
  4. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    438
    Likes Received:
    267
    You found it allready
    Yes rain rate is up to me but you can scale it by rain mod to your taste.
    1mm/h is a good amount of rain allready in reality
    Note that wetness buildup gets slower and slower with more wetness, and lots of cars dry the road also lot
     
    yashiman and buzz hornet like this.
  5. Alejandro López Arjona

    Alejandro López Arjona Registered

    Joined:
    Jul 18, 2018
    Messages:
    32
    Likes Received:
    10
    Hello Stefan, is it possible to set the % amount of water in track? I mean, if you can directly set it to be for example 40% of wet track (I mean the amount of water in the track, not the rain intensity).

    My league wants to implement a red flag procedure, it works as follows: when we reach 95% of water in the track, we launch a SC, we stop the engine in the pit lane and we relaunch the race after X minutes. In those minutes, we would like to set the water in the track in about 60%, so we can relaunch the race in just 10 minutes instead of waiting and waiting minutes for a miracle.

    Regards.
     
  6. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    438
    Likes Received:
    267
    Hi Alejandro
    No its not possible for a plugin.
    You could try out whether higher temps dry faster (dont know myself), then you could switch to manual mode with 99C, and later back to api
    However imo nothing dries as fast as driving cars
     
  7. Alejandro López Arjona

    Alejandro López Arjona Registered

    Joined:
    Jul 18, 2018
    Messages:
    32
    Likes Received:
    10
    ok thanks
     
  8. dcrag007

    dcrag007 Registered

    Joined:
    Jun 3, 2018
    Messages:
    2
    Likes Received:
    1
    upload_2020-7-4_20-47-18.png
    I keep on getting webquery failed: The remote server returned an error: (403) Forbidden.

    This is how I set up the client:
    The plugin is in <rFactor 2>\Bin64\Plugins
    The program is in a tool folder of the same PC
    The CustomPluginVariables.JSON have this configuration :
    "WeatherControlPlugin.dll":{
    " Enabled":1,
    "UID":0
    },
    The rF2GeoData.xml is in User AppData\Roaming\rF2WeatherPlugin\
     
  9. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    629
    Likes Received:
    887
    no problem here. Api key correct? no blanc spaces y Lat & Long too?
    Sin título.png

    Sin título.png
     
    Last edited: Jul 4, 2020
  10. dcrag007

    dcrag007 Registered

    Joined:
    Jun 3, 2018
    Messages:
    2
    Likes Received:
    1
    What I did was I delete everything that is associated to the rf2WeatherClient. Then I re downloaded the zip file. After I re downloaded the zip file I went back through the steps to get it working and I got it working now. However, I have no clue what I did wrong but the main thing is that I got it right and it is now working.
    upload_2020-7-5_14-0-39.png
     
    Corti likes this.
  11. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    3,024
    Likes Received:
    327
    Is it possible to have the app only allow one instance? I just had the unfortunate occurrence of a batch file executing the program over and over and over by accident which is not ideal :)
     
  12. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,650
    Likes Received:
    1,045
    No, please.
    We have several rF2 servers working at the same time in the same machine and everyone works with one instance ot this program.
     
    Davvid and RoWo like this.
  13. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    3,024
    Likes Received:
    327
    I'll rephrase.... a CONFIGURABLE one instance option. Just a thought ;)
     
    Davvid likes this.
  14. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,650
    Likes Received:
    1,045
    That would be perfect for all, but not as easy than make the program "one Instance only" by default.
    Only for clarifying, the "non optional" option, at least in de programming languages that i use, can be done clicking a checkbox.
    To make it optional, has to be done by the developer and is far more difficult.
     
  15. Stockers

    Stockers Registered

    Joined:
    Nov 15, 2016
    Messages:
    32
    Likes Received:
    20
    Hi all. It appears to be working but I'm just after the ideal values for live weather. Great plugin.

    Thanks
     
    Last edited: Jul 21, 2020
  16. Disco1909

    Disco1909 Registered

    Joined:
    Apr 21, 2020
    Messages:
    4
    Likes Received:
    0
    Hi Stefan,

    can you tell me why on some tracks the value is "null"?

    Oulton Park -> OK
    Zandvoort 2020 -> not OK
    Donington Park -> OK
    Nürburgring -> not OK

    Thanks

    Otherwise a really nice Plugin

    Screenshot_20200917-165624__01.jpg
     
  17. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    438
    Likes Received:
    267
    Hi Disco
    I can reproduce it. The API response is "null" for precipitation instead of "0". "Null" term is undefined value (more likely null-pointer actually). I ll dig into in next weak. Maybe a temporarilly fault in the climacell API response. I can not fix it quickly or do a workaround, and due to good weather the mountains are calling on the weekend
    BR
    Stefan
     
  18. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    438
    Likes Received:
    267
    I made a quick workaround. V1.13a is up. Pls give it a try
     
    lagg, yashiman and Corti like this.
  19. jonno

    jonno Registered

    Joined:
    May 12, 2019
    Messages:
    56
    Likes Received:
    17
    anyone able to tell me why my plugin just stopped working says at bottom web query failed
     
  20. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    438
    Likes Received:
    267
    show me a screenshot, like disco did above. I´m no clairvoyant
     

Share This Page