{"id":456,"date":"2021-04-11T03:32:50","date_gmt":"2021-04-11T03:32:50","guid":{"rendered":"http:\/\/meatpie\/?p=456"},"modified":"2021-04-11T03:32:50","modified_gmt":"2021-04-11T03:32:50","slug":"weather-app-changing-api","status":"publish","type":"post","link":"https:\/\/snersbots.co.uk\/index.php\/weather-app-changing-api\/","title":{"rendered":"Weather App &#8211; Changing API"},"content":{"rendered":"\n<p>My weather app is different from others, because it tells you how long until the next snow. It only looks in the foreseeable of course, but if there is snow on the horizon, I get a snow icon, and that is the most important thing for me.<\/p>\n\n\n\n<p>But the other thing I like about it is the probability graphs for precipitation. I like seeing the probability and the precipitation together &#8211; gives a more helpful guideline for making short term plans.<\/p>\n\n\n\n<!--more-->\n\n\n\n<ol class=\"wp-block-list\"><li>It tells me how long till the next snow<\/li><li>It gives probabilities for precipitation<\/li><\/ol>\n\n\n\n<p>After much research and lots of time spent on writing code for nothing, I think I have chosen which API to use. Well, two of them. See my findings and general (rather scruffy) notes <a href=\"http:\/\/meatpie\/index.php\/weather-app\/\">here<\/a><\/p>\n\n\n\n<p>One of the benefits of a blog is I can use it as a project manager. So here is the plan &#8211; kinda<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where we are now<\/h2>\n\n\n\n<p>An app which compiles &#8211; is slightly more organised than previously, and is pointing at the wrong API. Still not enough separation between data and controller, but Android does help to keep your view separate &#8211; so that is nice.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where we want to be<\/h2>\n\n\n\n<p>Need to have a current weather page which shows what it does now<\/p>\n\n\n\n<p>Need to have a dashboard &#8211; this might do better with gust information, and maybe get rid of info that is identical on the dashboard<\/p>\n\n\n\n<p>Minutely graph needs to be changed because we have no probability. Perhaps we can have a rain and a snow graph instead<\/p>\n\n\n\n<p>Perhaps we could have some indication of the tendency of precipitation on minutely, that comes in from the hourly &#8211; see what you can do.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Progress<\/h2>\n\n\n\n<p>Everything is now working up to the point where it was working before. There are differences in the forecast from forecast.io. But so far I am not unhappy with it. I believe the wind is more accurate in the VisualCrossing. So far the temperatures seem to be on track, but of course they are very easy to sway by putting a thermometer in sunlight. And forecast.io was never accurate on this front anyway. <\/p>\n\n\n\n<p>I&#8217;m waiting for some decent rain, so that I can try to validate the graphs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"666\" src=\"http:\/\/meatpie\/wp-content\/uploads\/2021\/04\/Weather-App-new-API-2.jpg\" alt=\"Screen shot of weather app showing current conditions\" class=\"wp-image-543\" srcset=\"https:\/\/snersbots.co.uk\/wp-content\/uploads\/2021\/04\/Weather-App-new-API-2.jpg 375w, https:\/\/snersbots.co.uk\/wp-content\/uploads\/2021\/04\/Weather-App-new-API-2-169x300.jpg 169w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>My weather app is different from others, because it tells you how long until the next snow. It only looks in the foreseeable of course, but if there is snow on the horizon, I get a snow icon, and that is the most important thing for me. But the other thing I like about it <a class=\"read-more\" href=\"https:\/\/snersbots.co.uk\/index.php\/weather-app-changing-api\/\">The full story here&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":544,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[22],"class_list":["post-456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other-projects","tag-weather-api"],"_links":{"self":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":15,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":545,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/456\/revisions\/545"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/media\/544"}],"wp:attachment":[{"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/snersbots.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}