cptpan commented on a Page, Weather script for mIRC  -  Sep 28, 2013

I have updated the script to the above and still get 'Location not found' for !weather and !current

cptpan  -  Sep 28, 2013

Fuck. Just read I need to register or whatever.

cptpan  -  Sep 28, 2013

Now I'm getting: Location found. No data provided. (Replacing 'location' with whatever location was used in search)

eqrunner  -  Oct 03, 2013

Go down to line 593 and comment out the unset. Run the command. Then look at your variables. Your results should look like this:

%wu_command !weather
%wu_2 20001
%wu_location 20001
%wu_3
%wu_3_long
%wu_nick eqrunner
%wu_network iPocalypse
%wu_chan #danceradio
%wu_host api.wunderground.com
%wu_api 99i99ii9iii99i
%wu_address 20001
%wu_link /api/99i99ii9iii99i/conditions/q/20001.xml
%wu_temp </response>
%wu_full Washington, DC
%wu_city Washington
%wu_state DC
%wu_state_name District of Columbia
%wu_country US
%wu_country_iso3166 US
%wu_zip 20001
%wu_latitude 38.90856934
%wu_longitude -77.01797485
%wu_elevation 23.00000000
%wu_local_time_rfc822 Thu, 03 Oct 2013 06:44:38 -0400
%wu_weather Scattered Clouds
%wu_temperature_string 68.6 F (20.3 C)
%wu_temp_f 68.6
%wu_temp_c 20.3
%wu_relative_humidity 79%
%wu_wind_string From the North at 1.0 MPH Gusting to 2.0 MPH
%wu_wind_dir North
%wu_wind_degrees 360
%wu_wind_mph 1.0
%wu_wind_gust_mph 2.0
%wu_pressure_mb 1019
%wu_pressure_in 30.09
%wu_dewpoint_string 62 F (17 C)
%wu_dewpoint_f 62
%wu_dewpoint_c 17
%wu_heat_index_string NA
%wu_heat_index_f NA
%wu_heat_index_c NA
%wu_windchill_string NA
%wu_windchill_f NA
%wu_windchill_c NA
%wu_visibility_mi 10.0
%wu_visibility_km 16.1
%wu_space -|-
%wu_space2  |
%wu_spaceend -|

Try a more common location and see if it still does the same. Your location may not be available.

cptpan  -  Oct 04, 2013

Some locations work, others don't. But there are places that are so large they should have data (ie, some major cities have 'No data' and some VERY small towns do).

eqrunner  -  Oct 05, 2013

Can you specify what towns you are mentioning? I might be able to look at them and see if there is something else that may be a fault.

cptpan  -  Oct 07, 2013

[18:00] <@Me> !weather yorkshire
[18:00] Yorkshire Found. No data provided.

eqrunner  -  Oct 07, 2013

@cptpan This is because you are not specifying the State. If you look at the xml page: http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=yorkshire You will see that there are two locations listed. Same if you searched it directly on wunderground ( http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=yorkshire ) It is asking for which location. NY or OH. But let me see what I can do about adding this option as a feature.

Update: New v5.4 code posted. It will now notify you if your request has multiple results.

cptpan  -  Oct 08, 2013

[11:19] !weather wollongong new south wales australia
[11:19] Wollongong Found. No data provided.

The weird thing is it returns weather for nearby locations that are MUCH smaller than Wollongong.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.