summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-16 11:14:01 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-16 11:14:01 +0100
commit7a45854a203447df2ad288b9796f5dd903c8d448 (patch)
tree19550f554d8262c681caae03206dcb8f8ce0d60f
parent18ca4ead52f3ec558541b01c025f2b366a6c3f5c (diff)
fallback for demo
-rw-r--r--app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java b/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java
index bc6d4a3..e991383 100644
--- a/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java
+++ b/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java
@@ -35,7 +35,9 @@ public class WeatherActivity extends AppCompatActivity {
findViewById(R.id.loader).setVisibility(View.VISIBLE);
ListView list = findViewById(R.id.forecast_list);
RequestQueue queue = Volley.newRequestQueue(this);
- String url = "https://wttr.in/?format=j1";
+ // temporary workaround for expired SSL certificates
+ String url = "https://media.pipeframe.xyz/wttr.json";
+ // String url = "https://wttr.in/?format=j1";
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest
(Request.Method.GET, url, null, response -> {
@@ -63,4 +65,4 @@ public class WeatherActivity extends AppCompatActivity {
});
queue.add(jsonObjectRequest);
}
-} \ No newline at end of file
+}