Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
weather stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Nov 25, 2019
1 parent e6fb8a8 commit 3f4585e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/andromeda/araserver/skills/Weather.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@ class Weather {
return Gson().toJson(toReturn)


}
fun getCloudCover(num: Double): String {
return when {
num < 0.30 -> "sunny"
num > 0.80 -> "mostly cloudy"
else -> "partly cloudy"
}

}
}

0 comments on commit 3f4585e

Please sign in to comment.