In what environments can I run weather API queries?

All types of development environments need access to weather data. From command-line tasks such as database ETL, to scripts that drive websites and priority alerts, to mobile apps and complex business applications, weather data drives insight, decisions, and revenue. A good weather API is flexible enough to span all of these use cases, bringing a …

How to use timeline weather API to retrieve historical weather data and weather forecast data in Java

Our recently released 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: …

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 …

How to create a Raspberry PI frost alert using a weather api

In this tutorial we will create a simple frost alert using a Raspberry PI and the Visual Crossing Timeline Weather API. The aim of the simple circuit is to use colored LED lights to inform the user if frost or low temperatures are expected. A red light indicates below freezing temperatures are expected, yellow light …

Add location and date time filters to ODATA weather data requests

The Visual Crossing Weather API supports requesting data using OData requests. This makes it easy to integrate weather data into tools that support the ODATA specification. In this article we discuss how to extend the basic ODATA requests to create dynamic queries using ODATA filters. The basic ODATA request As the introductory article discusses, the …

How to load weather data in JavaScript using 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 include sunrise, sunset and moon phase data into your API requests

In addition to providing historical weather observations and weather forecast data, the Weather API also provides astronomical information. This astronomical information includes sunset, sunrise and moon phase data. Why is astronomical information useful? Sunset, sunrise and moon information goes hand-in-hand with weather data in many use cases. The information can help answer some basic questions: …