Skip to content

Commit

Permalink
Merge pull request #103 from mrjones-plip/102-pirate-weather-api-length
Browse files Browse the repository at this point in the history
allow shorter pirate weather API length, bump version
  • Loading branch information
mrjones-plip authored Sep 4, 2023
2 parents 6d1b588 + 2f93595 commit b12856c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ Use your IDE of choice to edit and point your browser at ``localhost:8000``
PRs and Issues welcome!

## Version History
* 0.10.2 - Sep 3,2023
* Fix API string length per #102
* 0.10.1 - Sep 3,2023
* Fix pirate weather overage per #100
* 0.10.0 - Apr 3,2023
Expand Down
2 changes: 1 addition & 1 deletion html/get_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function configIsValid($validateApi = false)
$valid['valid'] = false;
$valid['reason'] .= 'Forecast API URL is wrong length or missing. (<pre>forecast_api_url</pre>)';
}
if (!isset($YANPIWS['forecast_api_token']) || strlen($YANPIWS['forecast_api_token']) < 32 || strlen($YANPIWS['forecast_api_token']) > 41){
if (!isset($YANPIWS['forecast_api_token']) || strlen($YANPIWS['forecast_api_token']) < 16 || strlen($YANPIWS['forecast_api_token']) > 41){
$valid['valid'] = false;
$valid['reason'] .= 'Forecast API Key is wrong length or missing. (<pre>forecast_api_token</pre>)';
}
Expand Down
2 changes: 1 addition & 1 deletion html/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<p>
<a href="/" class="homeLink"><- Weather</a>
</p>
<a href="https://github.com/mrjones-plip/YANPIWS">YANPIWS 0.10.1</a> - Released Sep 3, 2023<br />
<a href="https://github.com/mrjones-plip/YANPIWS">YANPIWS 0.10.2</a> - Released Sep 4, 2023<br />
<a href="http://pirateweather.net/en/latest/#introduction/">Powered by Pirate Weather</a><br />
<?php echo $currentTempHtml ?>
Forecast Cache Age: <?php echo $cachetime ?><br/>
Expand Down

0 comments on commit b12856c

Please sign in to comment.