Real time weather (METAR) on your server missions HOW TO - Page 5 - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 06-14-2018, 09:10 PM   #41
Johnny_Rico
Senior Member
 
Johnny_Rico's Avatar
 
Join Date: Jul 2017
Posts: 1,155
Default

updated


set
b_update_weather = False


and use rand for time parameter
Johnny_Rico is offline   Reply With Quote
Old 06-14-2018, 11:27 PM   #42
tn_prvteye
Member
 
Join Date: Apr 2008
Posts: 197
Default

Wow! That was fast! Thank you SO much for this.
tn_prvteye is online now   Reply With Quote
Old 06-15-2018, 10:11 PM   #43
tn_prvteye
Member
 
Join Date: Apr 2008
Posts: 197
Default

Well, I can't seem to get it to work. I can get the weather to update (I tested to make sure had installed everything right), but the time doesn't change, This is a snippet that might be where I'm having a problem.

Code:
C:\Users\Steve\Saved Games\DCS.openbeta\Missions>"C:\dcs_weather\dcs_weather.py" "C:\Users\Steve\Saved Games\DCS.openbeta\Missions\\"AV8Train.miz KBNA  KMQY rand
Traceback (most recent call last):
  File "C:\dcs_weather\dcs_weather.py", line 916, in <module>
    get_mission_date_time()
  File "C:\dcs_weather\dcs_weather.py", line 575, in get_mission_date_time
    convert_to_hr_and_min_to_seconds()
  File "C:\dcs_weather\dcs_weather.py", line 184, in convert_to_hr_and_min_to_seconds
    G.s_start_time = str(int(G.s_hour) * 3600 + (int(G.s_mins) * 60) + int(G.s_seconds))
ValueError: invalid literal for int() with base 10: ''
I can post the entire debug if you want. Although I have a feeling I'm just missing something simple. Thanks again for this, I'm really grateful.
tn_prvteye is online now   Reply With Quote
Old 06-16-2018, 12:04 PM   #44
Johnny_Rico
Senior Member
 
Johnny_Rico's Avatar
 
Join Date: Jul 2017
Posts: 1,155
Default

fixed now
Johnny_Rico is offline   Reply With Quote
Old 06-16-2018, 03:07 PM   #45
tn_prvteye
Member
 
Join Date: Apr 2008
Posts: 197
Default

You are the MAN! Works perfectly now. It's a small thing, but this has been like the Holy Grail for me.

You rock!
tn_prvteye is online now   Reply With Quote
Reply

Tags
daws, dcs server, metar, real time, weather

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:55 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.