Jump to content

Plain text weather widget

Go to solution Solved by paul2009,

Recommended Posts

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

Link to comment
  • Solution
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.

 

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • 1 year later...

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.