Skip to content

Commit

Permalink
Start Moving Away from the Name "Wunderground Station Forwarder"
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog authored Feb 19, 2023
1 parent 3ab5acb commit 89b2b23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Wunderground Station Forwarder
# Station Forwarder

This code is built to be hosted on the free [Google Apps Script](https://developers.google.com/apps-script) platform. It takes in weather station data from:

Expand Down Expand Up @@ -136,6 +136,6 @@ Feel free to take a look at the source and adapt as you please. This source is l

[![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/)

Wunderground Station Forwarder is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).
Station Forwarder is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).

<a href="https://www.buymeacoffee.com/leoherzog" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 38px !important;width: 160px !important;" ></a>
8 changes: 4 additions & 4 deletions code.gs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wunderground Station Forwarder
* Station Forwarder
* Fill in the API Keys (and which other services you'd like to update) below, and "▷ Run" the Schedule function. You're all set!
* You can see updates in the "☰▶ Executions" section on the left. If you make any changes to the API Keys or enabled services, run Schedule again.
*/
Expand Down Expand Up @@ -433,7 +433,7 @@ function updateWunderground_() {
if (conditions.solarRadiation != null) request += '&solarradiation=' + conditions.solarRadiation;
if (conditions.precipRate != null) request += '&rainin=' + conditions.precipRate.in;
if (conditions.precipTotal != null) request += '&dailyrainin=' + conditions.precipTotal.in;
request += '&softwaretype=appsscriptwundergroundforwarder&action=updateraw&realtime=1&rtfreq=60';
request += '&softwaretype=appsscriptforwarder&action=updateraw&realtime=1&rtfreq=60';

let response = UrlFetchApp.fetch(request).getContentText();

Expand Down Expand Up @@ -490,7 +490,7 @@ function updatePWSWeather_() {
if (conditions.solarRadiation != null) request += '&solarradiation=' + conditions.solarRadiation;
if (conditions.precipRate != null) request += '&rainin=' + conditions.precipRate.in;
if (conditions.precipTotal != null) request += '&dailyrainin=' + conditions.precipTotal.in;
request += '&softwaretype=appsscriptwundergroundforwarder&action=updateraw';
request += '&softwaretype=appsscriptforwarder&action=updateraw';

let response = UrlFetchApp.fetch(request).getContentText();

Expand Down Expand Up @@ -518,7 +518,7 @@ function updateWeatherCloud_() {
if (conditions.humidity != null) request += '&hum=' + conditions.humidity;
if (conditions.uv != null) request += '&uvi=' + (conditions.uv * 10);
if (conditions.precipRate != null) request += '&rainrate=' + (conditions.precipRate.mm * 10).toFixedNumber(0);
request += '&software=appsscriptwundergroundforwarder' + version;
request += '&software=appsscriptforwarder' + version;

let response = UrlFetchApp.fetch(request).getContentText();

Expand Down

0 comments on commit 89b2b23

Please sign in to comment.