Articles for "Java"

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 …

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 …

Weather API Changelog

This article describes the major features added, and any change made, to the Timeline Weather API. None of the changes in this article break backwards compatibility. For full details of the Timeline Weather API, please see the API documentation. 2024 – Q1 Expanded historical data for the Advanced solar elements and wind elements back to …

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 …