Jump to content

Plain text weather widget

Go to solution Solved by paul2009,

Recommended Posts

Posted

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

  • Solution
Posted
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.

 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

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

  • 1 year later...
Posted

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

 

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.