[REL] WeatherPlugin

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

  1. Jimmy

    Jimmy Registered

    Joined:
    Jan 13, 2012
    Messages:
    174
    Likes Received:
    89
    If i have Generated or Real Road File, still i have 44 or 40 degrees :(
     
  2. holos2

    holos2 Registered

    Joined:
    Jul 11, 2023
    Messages:
    5
    Likes Received:
    1
    If I run multiple dedicated servers I guess I have to run multiple client sessions for the weather to auto-update at given interval o_O
     
  3. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    yes...one client (with a different key) per server
     
  4. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    Climacell continues to operate :)
     

    Attached Files:

    Last edited: Sep 24, 2024
  5. holos2

    holos2 Registered

    Joined:
    Jul 11, 2023
    Messages:
    5
    Likes Received:
    1
    I use the same Climacell/Tomorrow key for all clients but have unique UID.
     
  6. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    I have never tried to use one key on several servers at the same time.:oops:
    But I think you should assign a different UI for each server. Also I think this api (Tomorro.io) is a one time use. The Openweather api allows you to create multiple keys, the calls are calculated with the sum of all the keys you generate. The problem is that OpenWeather doesn't currently work with the plugin. :(
     
  7. elgagon

    elgagon Registered

    Joined:
    Dec 21, 2022
    Messages:
    232
    Likes Received:
    146
    IIRC It's possible to use the same key for different servers but then you exceed the limit of daily calls of the key
     
  8. holos2

    holos2 Registered

    Joined:
    Jul 11, 2023
    Messages:
    5
    Likes Received:
    1
    I have set poll interval to 10 minutes. Not sure what the daily limit is.
     
  9. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    thx mate ;) That is what I was trying to explain. Before the 3 providers worked: Darsky (now it's from Apple and the api doesn't work), Openweather (changed the api and gives authorization error) and Tomorrow.io is currently the only one that works. I think the best thing to do is to have several keys
     
    elgagon likes this.
  10. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    I have just created a new account
    Limits
    Requests per second 3 - Requests per hour 25 - Requests per day 500

    Olds accounts
    Limits
    Requests per second 3 - Requests per hour 50 - Requests per day 1000
     
    buzz hornet likes this.
  11. holos2

    holos2 Registered

    Joined:
    Jul 11, 2023
    Messages:
    5
    Likes Received:
    1
    I have 6 servers running so had to adjust poll interval not to exceed the 500 daily limit. Was struggling with the math but landed on 18 min poll interval per client. If you want please confirm my math :p
     
    Corti likes this.
  12. elgagon

    elgagon Registered

    Joined:
    Dec 21, 2022
    Messages:
    232
    Likes Received:
    146
    To do a call every 18 min with 6 servers means:
    • 480 calls per day (less than 500 is OK)
    • 20 calls per hour (less than 25 is OK)
    You will have to manage that you don't do more than 3 calls at the same second.This can happen because you have 6 servers.

    As @Corti has said it's better to have several keys.
    You can create a key by email.
     
    Corti likes this.
  13. Pasquale Genchi

    Pasquale Genchi Registered

    Joined:
    Nov 5, 2017
    Messages:
    32
    Likes Received:
    6
    Sorry for the really late reply. Nothing in particular, really. Idk if things have changed, but the only two things I had to do were editing the custompluginvariables.json file to enable the plugin and manually add the coordinates in the GUI

    "rf2WeatherPlugin.dll":{
    " Enabled":1,
    "LOG":0,
    "UID":0
    }

    This is what I added to the json file in LMU. Nothing more than that, it works offline as well (as it does on rF2)
     
  14. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,056
    Likes Received:
    1,110
    I get "webquery failed (401)" with OpenWeatherMap

    With Climacell it mentions "Unknown" in the fetched weather. Does this mean it's not translating to the game?

    [​IMG]
     
  15. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    Everything seems to be correct, the data obtained is applied to the circuit. Temperature= 12ยบ Wind 6 and rain 0%.
     
  16. Eduardo Henriques

    Eduardo Henriques Registered

    Joined:
    Jul 13, 2019
    Messages:
    10
    Likes Received:
    8
    Can anyone confirm if the OpenweatherMap API has stopped working with the weatherplugin? Even subscribing to One Call 3.0 doesn't seem to work, always returning the 401 error. The only one that seems to still work is the Tomorrow.io API through the ClimaCell V4 option. Can anyone confirm if this is so?
     
  17. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,432
    Likes Received:
    2,691
    Exactly, I get the same error here too. Maybe reprogramming the plugin as the api should give the data needed.
    By the way I found another data provider, it would be great to be able to add it in case one day one of them stops working.
    https://www.meteomatics.com/en/api/getting-started/
     
  18. RoWo

    RoWo Member

    Joined:
    Jul 16, 2014
    Messages:
    571
    Likes Received:
    626
    Yes, sadly @Stefan_L_01 seems not developing anymore on this plugin.
     
  19. mesfigas

    mesfigas Registered

    Joined:
    Oct 15, 2015
    Messages:
    1,741
    Likes Received:
    830
    i tried all and only ClimaCell V4 works
     

Share This Page