JarvisWeather Console Application (Windows)
A lightweight Windows console application that fetches the weather from Forecast.io and outputs the current conditions and forecast to the console.
Author: Phil Hawthorne
About this Application
This application takes command line arguments, and then returns a weather forecast summary which can be read out over a text-to-speech system. For more information, please see my blog
Using this Application
Download and extract the JarvisWeather.zip file from the compiled folder to your computer. Extract the zip file somewhere easy to remember on your Computer.
From Command Prompt navigate the extracted folder, and execute JarvisWeather.exe with the following command line paramaters:
- A forecast.io API Key (they're free!)
- The name of your location (ie the name of your city)
- Your locations Latitude (use Google for this)
- Your locations Longitude (use Google for this)
Note: In version 1.1 the temperature unit (Celcius or Fahrenheit) will be chosen based on the location.
To get the weather for Melbourne, Australia use the following command
JarvisWeather.exe <API_KEY> -37.8131 144.9633
The weather for New York would be
JarvisWeather.exe <API_KEY> 40.7128 -74.0059
Using with CastleOS
CastleOS is a Windows based Home Automation controller. You can use JarvisWeather.exe in combination with the C# scripts located in the castleos folder of this repository. With these scripts, you can have the weather read back to you automatically each morning via Text to Speech (TTS).
For more info on how to use these scripts with CastleOS, be sure to check out my blog post
Eric Hillen on the CastleOS Forums for the initial idea.