Liam_CBR Posted November 29, 2021 Share Posted November 29, 2021 Hi all, I am very new to coding and I am trying to get by with my current skillset. However I have hit a snag. My client has asked for a very simple, text only weather feature to appear on their footer of their site much in the same style as seen on this site: https://thecalilehotel.com/ Using the search function I came across the one that weather widget io offers, and unfortunately is still is too busy for what I am after and it does not suit the landing page design on the site. https://www.theisla.com.au/ This is the code I used below: <a class="weatherwidget-io" href="https://forecast7.com/en/n35d71150d18/batemans-bay/" data-font="GT-Pressura-Regular" data-icons="Climacons Animated" data-days="3" >Batemans Bay NSW, Australia</a> <script> !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js'); </script> Has anyone come across something very simple and stripped back that looks like something similar to the calile hotel where it is just using text with no icons etc? Thank you. Liam Beyondspace 1 Link to comment
Solution paul2009 Posted November 29, 2021 Solution Share Posted November 29, 2021 5 hours ago, Liam_CBR said: My client has asked for a very simple, text only weather feature to appear on their footer of their site much in the same style as seen on this site Take a look at https://openweathermap.org/. They provide an API that you can query to get the local weather for a city or long/lat reference. Liam_CBR 1 Improve your online store with our extensions.About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links.Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)Buy me a coffee Link to comment
Liam_CBR Posted November 29, 2021 Author Share Posted November 29, 2021 Nice one, thank you Paul. I am mainly a print designer who is starting to dip my toes into the digital/online space – so I don't have the know how as to where to look for these sorts of things yet. I really appreciate your time. - Liam paul2009 1 Link to comment
lu_rhubarb Posted March 10 Share Posted March 10 Hi all, I am also trying to achieve this result! I have been trying to understand how to use the Open Weather API call to get a streamlined weather widget similar to the one on this site: https://www.x-traonline.org/online Getting it in the nav bar would be amazing, but I know that it may not be possible in Squarespace, and would also consider getting into the footer to be a win. I've been reading the documentation for Open Weather API, but I can't quite figure out where to put the resulting code: <script> src="https://api.openweathermap.org/data/3.0/onecall?lat=42.2832&lon=71.1265&exclude=hourly,daily&appid=39eb4a9b3c9e62ab037bb440906113b1"</script> Any help would be much appreciated! Thank you so much, - Lu Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment