SortaWeather API!
tussiez

SortaWeather API

A JavaScript library that makes using the weather.gov API easier.

I developed this to use in my clock widget.

Features

  • Easy to use
  • Takes care of errors
  • Handles geolocation
  • Handles requests
  • Generates 24-hour and 7-day forecasts

Example Code

This logs the temperature in your area:

script.js:

Enjoy!

Run

Note

If you get "Error", the request may have failed, or you need to enable location services.

You are viewing a single comment. View All
Bunnytoes

cool but I won't let you know my location

tussiez

@Bunnytoes That's OK

tussiez

@Bunnytoes You can still try the Boston one - doesn't require navigator.geolocation