Raised This Month: $90 Target: $400
 22% 

Elements of Openweathermap feed...03/10/2019.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related       
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 07-28-2014 , 15:44   Elements of Openweathermap feed...03/10/2019.
Reply With Quote #1


Element:
Actual rain, snow, sky-changing, dusk and dawn are all brought into your server from a JSON feed. (different)
32-bit token you will get after registration. (openweathermap.org)
Enhancements:
1. Weather is in real time. HUD flickers centered random colors. Console has more information.(different)
2. V5 Produces weather in Half-Life1 engine. That's particularly 'different'.
3. Local weather and news.(different)
4. Many (de)bug fixes. IE| Day is day and night is night. No eclipse! General upkeep of code and port from BBC, to Y(different), to Open(different) with epoch clock work (different).


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
 *  region <regioncode>         | 616411 ....[URL="https://openweathermap.org/api"]
CL_COMMANDS
say temp, weather, or climate.................|displays HUD and console weather feed

Admins can type feed IN CONSOLE to refresh the weather feed, dry to cancel all weather. Fog. Snow to guess what? 'Wet' to make it rain. Flash to 'Flash Gordon' your entire map without map reloading!

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


Summary:
Weather is added to server on region of your choice. The default compile is Chicago. Time of day lighting and weather conditions are brought into the Half-Life server of any mod.

There are 3 modes: DRY, WET, and ICE. This means it is either raining, snowing, or not.

SPiNX
Add your server here if you want tracked.

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 AU using default region, Chicago, dusk and dawn with be converse.
  • Skychanging plugins compete for sky changes. Disable them.




CS1.6



Moving fog and more in Half-Life1 and crosses over into cs/dod also. Cstrike fog is static and doesn't glow!! This does. Good for Zombie. You can even call it when you want by command which I am putting controls on now before full file attachment release. Actually that won't work because there is an issue with the amxmisc.inc for the past 15 years. (different)

We are so into ourselves looking down into our tablets we forget to loop up at the stars and or don't care. When the weather feed was being optimized we see a need to look up again at the random aurora borealis and more. When the feed shows a 0 for the 1 of hundreds of advanced weather readings on client connect the little show happens. I updated it so if there are errors with the sockets it will use lib6 messaging and a whole bunch of new stuff to optimize everything.

I have blizzard, polar vortex, tornado, on and on growing wild a whirl wind or wild fire no pun intended. We need to finish all this listing later or happy to answer any questions on how to get API token of your own for free.



I have the figures for windage now. The Speed of wind and degrees in which it is blowing as well as the occasional puffs from real life weather feed of city of your choice. The compass will be a 3D HUD job set to the ID instead of 0 so we each have our own compass to figure windage when this is finale version.



Element5 Build of the moment. You MUST use the attached amxmisc.inc while the adminhelp.sma is recommended.


Spoiler
Spoiler
Attached Images
File Type: jpg tornado.jpg (97.0 KB, 138 views)
File Type: jpg weather balloon.jpg (94.4 KB, 136 views)
File Type: jpg fog.jpg (48.3 KB, 4 views)
Attached Files
File Type: zip _Skys.zip (7.81 MB, 115 views)
File Type: sma Get Plugin or Get Source (yahoo-element-obsolete.sma - 160 views - 20.1 KB)
File Type: sma Get Plugin or Get Source (element3b.sma - 160 views - 16.0 KB)
File Type: sma Get Plugin or Get Source (element4.sma - 159 views - 14.8 KB)
File Type: inc amxmisc.inc (25.6 KB, 2 views)
File Type: sma Get Plugin or Get Source (ClientTemp.sma - 2 views - 5.0 KB)
File Type: zip snow.zip (5.42 MB, 2 views)

Last edited by DJEarthQuake; 03-19-2019 at 12:56. Reason: Added animated snow. Added smaller sister plugin.
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
Senior Member
Join Date: Jan 2014
Location: Midwest
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
Senior Member
Join Date: Jan 2014
Location: Midwest
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
Senior Member
Join Date: Jan 2014
Location: Midwest
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
Senior Member
Join Date: Jan 2014
Location: Midwest
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 08:53.


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