Skip to content

Commit

Permalink
Fix some spelling errors.
Browse files Browse the repository at this point in the history
Reccomended was put instead of Recommended. Also, relatedgauges had a second s at the end in writeupmaker.
  • Loading branch information
ecc521 committed Feb 22, 2020
1 parent 64c4e5e commit 9f4faaa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion installServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sudo apt-get install -y certbot python-certbot-apache -t stretch-backports
sudo certbot --apache

echo "Add stuff about gmailpassword.txt"
echo "Swap file reccomended, at least to bring up available memory to 512MB for this process (1GB preferred). More than 200MB will probably not be used at any one time."
echo "Swap file recommended, at least to bring up available memory to 512MB for this process (1GB preferred). More than 200MB will probably not be used at any one time."
echo "Google Cloud Compute Engine: https://badlywired.com/2016/08/15/adding-swap-google-compute-engine/"

echo "Run crontab -e (may need sudo). Add the following lines:"
Expand Down
12 changes: 6 additions & 6 deletions resources/writeupmaker.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1 style="text-align: center">Rivers.run River Creator</h1>
<input id="maxgradient" type="text" placeholder="Maximum gradient (feet per mile)" style="width:100%">
<br>

<p>Gauge Information (Strongly Reccomended)</p>
<p>Gauge Information (Strongly Recommended)</p>
<p>The Gauge ID should be prefixed with the agency code followed by a colon. For example, type "USGS: 03192000" for <a href="https://waterdata.usgs.gov/nwis/uv?site_no=03192000" target="_blank">this</a> USGS gauge.</p>
<p>Available agency codes:</p>
<ul>
Expand All @@ -60,9 +60,9 @@ <h1 style="text-align: center">Rivers.run River Creator</h1>
</ul>
<input id="gauge" type="text" placeholder="Gauge ID" style="width:100%">
<br>
<input id="relatedgaugess" type="text" placeholder="Other Related Gauges (comma seperated list)" style="width:100%">
<input id="relatedgauges" type="text" placeholder="Other Related Gauges (comma seperated list)" style="width:100%">
<br>
<p>Relative Water Levels (Reccomended)</p>
<p>Relative Water Levels (Recommended)</p>
<p>Units are required (ft, feet, or cfs). Examples: 1.67ft, 1992cfs, 3.91 ft, 391 cfs, 2.42 feet</p>
<input id="minrun" type="text" placeholder="Minimum runnable water level" style="width:100%">
<br>
Expand All @@ -74,7 +74,7 @@ <h1 style="text-align: center">Rivers.run River Creator</h1>
<br>
<input id="highflow" type="text" placeholder="High Water" style="width:100%">
<br>
<p>GPS Coordinates (Reccomended):</p>
<p>GPS Coordinates (Recommended):</p>
<p>Note: Rivers.run should work with most coordinate formats. If you encounter an issue with one of them, please email <a href="[email protected]">[email protected]</a></p>
<input id="plat" type="text" placeholder="Put-in GPS Latitude" style="width:100%">
<br>
Expand Down Expand Up @@ -331,7 +331,7 @@ <h1 style="text-align: center">Rivers.run River Creator</h1>
}


var List = ["name","section","skill","rating","writeup","tags","state","gauge","aw","plat","plon","tlat","tlon","hidlat","hidlon","maxrun","minrun","lowflow","midflow","highflow","dam","relatedgaugess","class","averagegradient","maxgradient","length", "comments"]
var List = ["name","section","skill","rating","writeup","tags","state","gauge","aw","plat","plon","tlat","tlon","hidlat","hidlon","maxrun","minrun","lowflow","midflow","highflow","dam","relatedgauges","class","averagegradient","maxgradient","length", "comments"]


let urlParams = new URLSearchParams(window.location.hash.slice(1))
Expand Down Expand Up @@ -386,7 +386,7 @@ <h1 style="text-align: center">Rivers.run River Creator</h1>
if (value === "writeup") {
Text += "\n" + value + ": " + quill.root.innerHTML
}
else if (value === "relatedgaugess") {
else if (value === "relatedgauges") {
Text += "\n" + value + ": "
//Convert comma seperated list into javascript list
if (document.getElementById(value).value.trim().split(" ").join("").split(",").length > 0) {
Expand Down
12 changes: 6 additions & 6 deletions server/getRiverData.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async function getAssistantReply(query, options) {
str += " as of " + timeString + ", "

if (units === "relative flow") {
//TODO: Consider moving temperature to before flow, and changing removing which is from "which is well within reccomended levels..."
//TODO: Consider moving temperature to before flow, and changing removing which is from "which is well within recommended levels..."

let river = topRanked[0]

Expand All @@ -225,7 +225,7 @@ async function getAssistantReply(query, options) {
str += "which is below the minimum of " + round(river.minrun) + " for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Keep rain dancing!"
}
else if (river.running === 4) {
str += "which is above the reccomended maximum of " + round(river.maxrun) + " for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Stop rain dancing!"
str += "which is above the recommended maximum of " + round(river.maxrun) + " for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Stop rain dancing!"
}
else if (river.running > 3.5) {
str += "which is a very high level, bordering on too high. The maximum is " + round(river.maxrun) + ", but levels above " + round(river.highflow) + " are considered high for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Time to stop rain dancing!"
Expand All @@ -234,19 +234,19 @@ async function getAssistantReply(query, options) {
str += "which is a very low level, bordering on too low. The minimum level is " + round(river.minrun) + ", however levels above " + round(river.lowflow) + " are preferred for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Time to start rain dancing!"
}
else if (river.running < 1) {
str += "which is above the minimum of " + round(river.minrun) + ", although levels above " + round(river.lowflow) + " are reccomended for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
str += "which is above the minimum of " + round(river.minrun) + ", although levels above " + round(river.lowflow) + " are recommended for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
}
else if (river.running > 3) {
str += "which is a little high. The maximum levels is " + round(river.maximum) + ", however levels above " + round(river.highflow) + " are considered high for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
}
else if (river.running > 2.5) {
str += "which is on the higher end of reccomended levels. Levels above " + round(river.highflow) + " are considered high, while " + round(river.midflow) + " is considered the middle level for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
str += "which is on the higher end of recommended levels. Levels above " + round(river.highflow) + " are considered high, while " + round(river.midflow) + " is considered the middle level for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
}
else if (river.running < 1.5) {
str += "which is on the lower end of reccomended levels. Levels below " + round(river.lowflow) + " are considered low, while " + round(river.midflow) + " is considered the middle level for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
str += "which is on the lower end of recommended levels. Levels below " + round(river.lowflow) + " are considered low, while " + round(river.midflow) + " is considered the middle level for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
}
else {
str += "which is well within the reccomended levels of " + round(river.lowflow) + " through " + round(river.highflow) + ", and near the middle level of " + round(river.midflow) + " for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
str += "which is well within the recommended levels of " + round(river.lowflow) + " through " + round(river.highflow) + ", and near the middle level of " + round(river.midflow) + " for the gauge " + siteDataParser.fixSiteName(gauge.name, {convertStateCodeToName: true}) + ". <break time=\"0.3s\"/>Happy Paddling!"
}
}
else {
Expand Down

0 comments on commit 9f4faaa

Please sign in to comment.