How to use Java to load weather forecast data
Learn to use a RESTful URL-based Weather API to load weather forecast data into a simple Java application.
How to use the Timeline Weather API to retrieve historical weather data and weather forecast data in Java
The Timeline Weather API allows you to easily retrieve hourly and daily historical weather data and weather forecast data in a single RESTful API call. In this article we demonstrate how to use the API in the Java programming language. For the full source of this example, download it from our GitHub repository: https://github.com/visualcrossing/WeatherApi/tree/master/Java/com/visualcrossing/weather/samples The …
How to load weather data in JavaScript using Fetch API, jQuery, d3 or node.js
Many applications need reliable weather forecast data or historical weather data that can be directly accessed from JavaScript code. They may be as simple as a weather forecast widget, a sophisticated historical weather data dashboard built using a JavaScript library such as jQuery, d3 or even a server side JavaScript application using node.js. All of …
Continue reading “How to load weather data in JavaScript using Fetch API, jQuery, d3 or node.js”
How to add weather data to a Node.js app using a Weather API and JavaScript
In this article we are going to create a simple web app that displays weather data using the Visual Crossing Timeline Weather API. The output will be a simple HTML page that displays daily and hourly weather history data or weather forecast data (or even beyond) in a table. To download the source code for …
Continue reading “How to add weather data to a Node.js app using a Weather API and JavaScript”
How do I run a weather API query using HTTP POST?
While it is very easy to run weather queries using HTTP GET requests, there are times when it is preferable or even necessary to use HTTP POST requests instead. While HTTP POST requests are a little more complicated to configure and execute, they are well within the reach of any modern script or language. Also, …
Continue reading “How do I run a weather API query using HTTP POST?”
What is a Weather API?
A weather API is an Application Programming Interface that allows weather data to be queried from scripts and code. Good weather APIs provide both historical weather data and forecast data via an easy-to-use, well-defined programming interface. The best APIs have dozens of weather measures, near-real-time current conditions reporting, and decades of worldwide historical weather reports. …
Date and Times in the Weather API
The Weather API uses a set of standards to include date time information. This article describes the standards used. Date formats in the Weather API Visual Crossing uses ISO 8601 based date formats for both date and times. Dates are formatted according to YYYY-MM-DD format (2022-06-15 for June 15th 2022). Times are formatted according to HH:mm:ss. The hours are specified in …
Replacing the Yahoo Weather API
Visual Crossing is the perfect replacement for the Yahoo Weather API offering up to 1000 free results a day and full access to forecast and historical data.
Replacing the Weather Underground API
This article provides a step-by-step guide to replacing the Weather Underground API with the Visual Crossing Timeline Weather API. The Timeline Weather API offers a generous free daily API limit and a simple JSON response that is easily used in any existing application or script. This makes the Timeline API, the perfect replacement for the …
Building and Running your first weather API query
Using a weather API is an extremely powerful and flexible way to get weather data for any project. Whether you need historical data, forecasts, or current conditions, using an API allows you to automate fully automate the query process. There is no need to deal with web pages cluttered with ads or constantly updating an …
Continue reading “Building and Running your first weather API query”