Raised This Month: $18 Target: $400
 4% 

Elements of Openweathermap feed...06/07/2020.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related       
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-28-2014 , 15:44   Elements of Openweathermap feed...06/07/2020.
Reply With Quote #1



Rain, snow, skies, dusk, dawn, and wind are all brought into your server.
CL_COMMANDS
say temp, weather, or climate.................|displays HUD and console weather feed

CS1.6 and equivalent engines:
say /mytemp....................................... |for your very own local temp (different)
say /news......................................... ..|for local and International news (different)

Registered commands:
Spoiler

Managed cvars:
Spoiler


----- AMX Mod X Help: Commands -----
Spoiler

CVARS:
Code:
 
 *  dark   <0-25> D: 24         | The higher the number, the darker after sunset.
 *  lums   <0-25> D: 0          | The lower the number, the brighter it gets at noon.
 *  time   <0-24> D: 0          | Manually sets daytime 0 = off
 *  sv_openweather-key <32-bit> | Privately keep in your own source and or as cvar in server.cfg.
 *  sv_region <regioncode>      | 616411
 *  sv_units <metric|imperial>  | Simply pick what unit you prefer for weather readings.

Known limits:
  • Subscription limits. -USA only- 'Openweathermap City and state isn't available' just type in your city into Google to get your long and lat if you do not know it by heart to select your city from openweathermap and use the regional code just like in Yahoo Version.
  • Day and night is based off the server's actual real time. If server is Australia using default region, Chicago, dusk and dawn with be converse.
  • Skychanging plugins compete for sky changes. Disable them.
  • Started to utilize the wind direction and make use of windage. On Half-Life and Gearbox all weapons are affected. On CS, CZ, Dod only pistols are immune. Staying crouched will fix windage.



Adminhelp aliasing is recommended for AMXX 1.9.0+
Servers testing.

FAQ:
Q: How to make it night time?
A: CVARS::dark 25;lums 24;time 3
Attached Files
File Type: zip _Skys.zip (7.81 MB, 152 views)
File Type: sma Get Plugin or Get Source (element3b.sma - 507 views - 16.0 KB)
File Type: sma Get Plugin or Get Source (element4.sma - 519 views - 14.8 KB)
File Type: inc amxmisc.inc (25.6 KB, 76 views)
File Type: sma Get Plugin or Get Source (ClientTemp.sma - 347 views - 5.0 KB)
File Type: zip snow.zip (5.42 MB, 37 views)
File Type: sma Get Plugin or Get Source (elementA.sma - 7 views - 52.1 KB)

Last edited by DJEarthQuake; 06-07-2020 at 09:56. Reason: Typo on precache making lightening not work. Forgot if that was intentional or not.
DJEarthQuake is offline
internel
Member
Join Date: Nov 2012
Old 07-28-2014 , 18:05   Re: Element
Reply With Quote #2

Thank you so much for updating that plugin. I couldn't answer your PM, but you know, If you want to add ML support, I'll be glad to help with Spanish ^^

I'm going to test it!
internel is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-28-2014 , 22:01   Re: Element
Reply With Quote #3

You are most welcome o no hay day que internal.

Thank you for encouraging me to make this public.
I am glad there is demand for language support already.


I'm also promoting advancements such as lunar data and historical events predicting anywhere from fishing condition to likelihood of crime .

Last edited by DJEarthQuake; 07-29-2014 at 02:49.
DJEarthQuake is offline
internel
Member
Join Date: Nov 2012
Old 07-29-2014 , 17:42   Re: Element
Reply With Quote #4

This is AWESOME!! I just tested it, and it works perfectly!! , you sir did a great job here !

thank ye!

Last edited by internel; 07-29-2014 at 17:42.
internel is offline
Vivo
Senior Member
Join Date: May 2014
Old 07-29-2014 , 22:34   Re: Element
Reply With Quote #5

Sounds great
__________________
ViRuSeS # The best Servers and Host: viruses.ga
CSGO: 185.107.96.150:27015 or viruses.ga:27015
TeamSpeak3: 185.107.96.150:9987 or viruses.ga
Welcome! Good luck and have fun enjoy your time.
Vivo is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-31-2014 , 04:49   Re: Element
Reply With Quote #6

Ironically I almost forgot the earthquake condition. I have seen maps with such an effect that will be perfect here. Those are rare. Therefore this is placed at an extremely low priority.

A proposed windy condition will make us have to check the wind direction and compensate at range.

Already existing plugin Shot Administration (by Nomexous) or similar will be used to handle the trigger of high wind.
Accuracy fix could be used then disabled when it gets windy. I also noticed ever since CS 1.6 got to Steam it wasn't accurate.

The sky is off at noon and shows a night sky still. This will be corrected too. Let me know what else. I appreciate the salutations.

Last edited by DJEarthQuake; 09-23-2018 at 15:46. Reason: Selecting plugin to handle windy condition
DJEarthQuake is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-01-2014 , 21:43   Re: Element
Reply With Quote #7

Quote:
Originally Posted by DJEarthQuake View Post
Ironically I almost forgot the earthquake condition.

A proposed windy condition will make us have to check the wind direction and compensate at range.
So, epic.

I will wait for this update. Just let we all know, when it is ready.
__________________
Problem with ZP?
ZP Helper!

Last edited by zmd94; 08-01-2014 at 21:45.
zmd94 is offline
Old 08-19-2014, 16:05
DJEarthQuake
This message has been deleted by DJEarthQuake.
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-22-2014 , 15:40   Re: Element
Reply With Quote #8

I made an update to the source. Debugging was enabled. Now it is disabled. Majority of the log is currently too cryptic. I had an update earlier this week. I promptly took it down. Sky tuning is still underway. IE | Night sky showing at noon.
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-26-2014 , 01:15   Re: Element
Reply With Quote #9

I like how OpenWeatherMap.org has current wind condition.

$~telnet api.openweathermap.org 80
Trying 162.243.53.59...
Connected to api.openweathermap.org.
Escape character is '^]'.
[
Code:
GET /data/2.5/weather?id=4887398&units=imperial&APPID=register-for-a-openweathermap&u=c HTTP/1.0
...PRESS ENTER TWICE...

HTTP/1.1 200 OK
Server: openresty
Date: Sun, 02 Apr 2017 00:57:51 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 438
Connection: close
X-Cache-Key: /data/2.5/weather?APPID=register-for-a-openweathermap=4887398&u=c&units=imperial
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST

{"coord":{"lon":-87.65,"lat":41.85},"weather":[{"id":800,"main":"Clear","description":"cl ear sky","icon":"01n"}],"base":"stations","main":{"temp":50,"pressur e":1022,"humidity":46,"temp_min":46.4,"temp_m ax":53.6},"visibility":16093,"wind":{"speed":6.93,"deg" :110},"clouds":{"all":1},"dt":1491093300,"sys":{" type":1,"id":1007,"message":0.1218,"country": "US","sunrise":1491132670,"sunset":1491178654 },"id":4887398,"name":"Chicago","cod":200}
Connection closed by foreign host.

This is a good start. If anybody else wanted to collaborate or spin-off with the sniping section! Hint hint wink wink nudge n u d g e.

Last edited by DJEarthQuake; 09-22-2018 at 02:10. Reason: register-for-a-openweathermap
DJEarthQuake is offline
Dare.Devil
Member
Join Date: May 2014
Old 08-27-2014 , 15:54   Re: Element
Reply With Quote #10

where exactly in yahoo can I find the region code??..

you said in first post e.g chicago 2379574 ..

how do I get this serial code??

thanks in advance
Dare.Devil is offline
Reply


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 -4. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode