Skip to content

Commit

Permalink
Updated to fix bug in referer header.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Feb 18, 2019
2 parents a04b0a3 + 91adf36 commit a9f0e95
Show file tree
Hide file tree
Showing 373 changed files with 401 additions and 392 deletions.
22 changes: 11 additions & 11 deletions AerisWeatherPythonDemo/aeris_demo_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -307,7 +307,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand All @@ -317,7 +317,7 @@
"\n",
"Observations Example 1:\n",
"The current weather for minneapolis, mn:\n",
"Conditions are currently Mostly Cloudy with a temp of 66°F\n"
"Conditions are currently Sunny with a temp of 11°F\n"
]
}
],
Expand Down Expand Up @@ -361,7 +361,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -370,8 +370,8 @@
"text": [
"\n",
"Forecast Example:\n",
"Today expect Partly Cloudy with a high temp of 66°\n",
"Tonight will be Partly Cloudy with Light Showers Likely with a low temp of 48°\n"
"Today expect Partly Cloudy with a high temp of 17°\n",
"Tonight will be Partly Cloudy with a low temp of 10°\n"
]
}
],
Expand Down Expand Up @@ -469,8 +469,8 @@
"text": [
"\n",
"Observations Example 2:\n",
"The current weather for saint louis park, mn:\n",
"Conditions are currently Mostly Cloudy with a temp of 65°F\n"
"The current weather for minneapolis, mn:\n",
"Conditions are currently Sunny with a temp of 12°F\n"
]
}
],
Expand Down Expand Up @@ -529,14 +529,14 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The storm report type is: hail\n"
"The storm report type is: snow\n"
]
}
],
Expand Down Expand Up @@ -766,7 +766,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.7.0"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion aerisweather/utils/AerisNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def get_json(url: str, app_id: str):
req = request.Request(url)
try:
req.add_header('Referer', app_id)
req.add_header('User-Agent', "AerisPythonSDK/" + __version__ + "/Python/" + sys.version.replace('\n', ''))
req.add_header('User-Agent',
"AerisPythonSDK/" + __version__ + "/Python/" + sys.version.replace('\n', ''))

except URLError:
# we don't need the extra headers, so let it pass if it fails here
Expand Down
2 changes: 1 addition & 1 deletion aerisweather/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__ = '0.3.1'
__version__ = '0.3.2'
4 changes: 2 additions & 2 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "AerisWeather Python SDK"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.3.1
PROJECT_NUMBER = 0.3.2

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand All @@ -51,7 +51,7 @@ PROJECT_BRIEF =
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.

PROJECT_LOGO = "C:/Users/scott/OneDrive/Pictures/Icons/Aeris Icons/AerisCloud-primary-sm.png"
PROJECT_LOGO = "C:/Users/scott/Pictures/Icons/Aeris Icons/AerisCloud-primary-sm.png"

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
Expand Down
2 changes: 1 addition & 1 deletion docs/html/____init_____8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_date_time_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_error_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_location_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_network_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_place_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_profile_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_relative_to_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alert_details_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alert_includes_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alert_timestamps_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alerts_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_custom_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_endpoint_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_forecast_period_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_forecasts_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_data_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_dew_pt_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_period_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_precip_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_pressure_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_q_c_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_range_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_relative_humidity_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_sky_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_solrad_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_station_pressure_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_temp_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_visibility_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
Loading

0 comments on commit a9f0e95

Please sign in to comment.