From 7a45854a203447df2ad288b9796f5dd903c8d448 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 16 Feb 2024 11:14:01 +0100 Subject: fallback for demo --- app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java | 6 ++++-- 1 file 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 +} -- cgit v1.2.3