Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 80

Thread: OpenWeather [Testing]: A proposal to fix weather issues

  1. #11
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    803
    Platform
    PC
    Quote Originally Posted by mr_belowski View Post
    when i get a few hours i'll knock up a quick SpringBoot application as a prototype and see how it feels
    Preparing my donation...
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator/// Open Weather App

  2. #12
    GT5 Pilot inthebagbud's Avatar
    Join Date
    May 2015
    Location
    all over the place like my driving!
    Posts
    1,765
    Platform
    PC
    ingenuity is great and you guys who come up with this stuff speak a different language to me …….. but should SMS not just fix the issue
    ]CPU:i7 8700K | RAM:Corsair 16GB 3000MHz | GPU:Asus ROG GTX1080 Ti 11GB | Board:Asus Rog Strix Z370-E | Win 10 x64 |
    SEn:Aut | FF:100 | Sho:100 | Abs:50 | dri:0.03 | For:100 | SPr:100 | dPr:Off | brF:100|
    FFB: JS Low Comp 100|50/60|50/40|25 plus anti jolt | RAW 100/77/30/50 |
    Playseat® Alcantara| Fanatec ClubSport Wheel Base V2, Wheel Rim GT, Pedals V3 ,Shifter SQ
    The following 2 users likes this Post: Gix916, Sean_S36


  3. #13
    GT5 Pilot mr_belowski's Avatar
    Join Date
    May 2015
    Posts
    1,487
    Platform
    PC
    Just had a play with wireshark and I couldn't see any obvious traffic going out to api.openweather.org when starting a single player session with realistic weather. You sure this is what the game is connecting to?
    Crew Chief details here http://forum.projectcarsgame.com/sho...r-for-PC-users
    Website, download link and forum: http://thecrewchief.org
    Or make a donation, if you think the chief needs to drink more beer:
    https://www.paypal.com/cgi-bin/websc...=LW33XFXP4DPZE

  4. #14
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    803
    Platform
    PC
    In the EXE what I found was api.openweathermap.org (you missed "map")

    When you make a NETSTAT -B, you can see that pCARS2AVX.EXE is connected to 192.241.169.168 or 162.243.53.59 (in my case) when RW is enabled.

    TCP 192.168.0.10:52925 192.241.169.168:http [pCARS2AVX.exe]

    If you connect with a browser to this IP you get openweathermap.org/api. The IP is not always the same, probably by DNS resolution or any internal relay in openweathermap.

    If you disable Real weather in-game, this connection is not stablished.
    Last edited by Asturbo; 08-10-2018 at 18:10.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator/// Open Weather App

  5. #15
    GT5 Pilot mr_belowski's Avatar
    Join Date
    May 2015
    Posts
    1,487
    Platform
    PC
    Spotted it in Wireshark:

    GET /data/2.5/weather?lat=49.20&lon=16.45&mode=xml&APPID=[...]
    Host: api.openweathermap.org
    Accept: */*

    and

    GET /data/2.5/forecast?lat=49.20&lon=16.45&mode=xml&cnt=8&APPID=[...]
    Host: api.openweathermap.org
    Accept: */*


    response is

    HTTP/1.1 429
    Server: openresty
    Date: Sun, 07 Oct 2018 17:54:55 GMT
    Content-Type: application/json; charset=utf-8
    Content-Length: 196
    Connection: keep-alive
    X-Cache-Key: /data/2.5/weather?APPID=[...]&lat=49.2&lon=16.45&mode=xml
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Credentials: true
    Access-Control-Allow-Methods: GET, POST

    {"cod":429, "message": "Your account is temporary blocked due to exceeding of requests limitation of your subscription type. Please choose the proper subscription http://openweathermap.org/price"}




    I've created a free API key which, when it's been activated will hopefully allow me to reproduce these requests and understand how to craft the appropriate responses for the various weather scenarios we might want to generate. So it's looking promising I think.
    Last edited by mr_belowski; 07-10-2018 at 18:15.
    Crew Chief details here http://forum.projectcarsgame.com/sho...r-for-PC-users
    Website, download link and forum: http://thecrewchief.org
    Or make a donation, if you think the chief needs to drink more beer:
    https://www.paypal.com/cgi-bin/websc...=LW33XFXP4DPZE
    The following user likes this Post: Sean_S36


  6. #16
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    803
    Platform
    PC
    Last edited by Asturbo; 07-10-2018 at 18:31.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator/// Open Weather App

  7. #17
    GT5 Pilot mr_belowski's Avatar
    Join Date
    May 2015
    Posts
    1,487
    Platform
    PC
    I wonder if it's possible to respond with more fine-grained forecast data (< 3 hours between data points) to allow the weather to change more quickly in shorter sessions. Lots and lots of possibilities here, lots of scope for experimentation.

    I've got a basic service wired up to produce an appropriate XML (or JSON) response. I'll get stuck in properly this week with a view to building something that can be easily customised
    Crew Chief details here http://forum.projectcarsgame.com/sho...r-for-PC-users
    Website, download link and forum: http://thecrewchief.org
    Or make a donation, if you think the chief needs to drink more beer:
    https://www.paypal.com/cgi-bin/websc...=LW33XFXP4DPZE
    The following 4 users likes this Post: Asturbo, JasonSandwich, M. -VIPER- Morgan, Sean_S36


  8. #18
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    803
    Platform
    PC
    Great news, mate. It's a new world of posibilities here.

    Probably PCARS2 uses the 3 hour pattern and translates it to the 1 hour to make the slots, so if you change the intervals, probably has no effect in game, but who knows, because I've seen that the EXE keeps connected to the webAPI after the initial connection.

    I would begun generating all the slots with fixed "electrical storm" or even better, using one of the real patterns from openweathermap (but a not clear one). If you get something different to "clear weather" with the random weather option ingame, you're in the right way.

    If the project is viable, we can assing the weights with a CFG o JSON text file to the diferent climates. Not UI needed.
    Last edited by Asturbo; 07-10-2018 at 19:15.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator/// Open Weather App

  9. #19
    GT5 Pilot mr_belowski's Avatar
    Join Date
    May 2015
    Posts
    1,487
    Platform
    PC
    I think it's viable and will make some headway this week. Maybe start with a way to generate basic weather patterns from a config file or something, and take it from there. Eventually it should be pretty easy to have an option to proxy the calls though to the real openweatherapi service with a different API key so a dedicated server owner could use realistic weather with their own known-good key which they could keep secret and manage themselves
    Crew Chief details here http://forum.projectcarsgame.com/sho...r-for-PC-users
    Website, download link and forum: http://thecrewchief.org
    Or make a donation, if you think the chief needs to drink more beer:
    https://www.paypal.com/cgi-bin/websc...=LW33XFXP4DPZE
    The following 2 users likes this Post: Asturbo, Sean_S36


  10. #20
    Kart Driver Donnced's Avatar
    Join Date
    Feb 2016
    Location
    Valencia
    Posts
    79
    Platform
    PS4
    I completely support this proposal! And it would be great if it could be used in the console versions also..
    Current Rig: Playseat Challenge + Trusthmaster T150RS + T3PA pedals + brake Mod.
    UDP APP's:RSDash, Dashmeter pro for AC/PC, PCarsTT.
    FFB PCars2:RAW,65,40,35,35,0'40.
    My lema: "SimRacing For Fun!"

Similar Threads

  1. Change request on weather system when you use random slots
    By Scott1904 in forum General Discussion
    Replies: 1
    Last Post: 28-12-2017, 17:21
  2. Request: Random seasonal weather
    By ZulfoDK in forum General Discussion
    Replies: 4
    Last Post: 27-09-2017, 12:35
  3. Request: Weather API
    By palm3r in forum Third-Party Apps & API Discussion
    Replies: 1
    Last Post: 23-09-2017, 23:30
  4. Replies: 32
    Last Post: 19-07-2017, 14:38
  5. Weather Settings change request
    By Scott1904 in forum Multiplayer
    Replies: 0
    Last Post: 16-12-2015, 11:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •