Skip to content

Command line tool for fetching your Personal Weather Station data from Ambientweather.net and storing it in a local sqlite database. Written in C# / dotnet core - Can be compiled for use in Windows, Mac and Linux (Raspberry PI).

License

Notifications You must be signed in to change notification settings

josemoliver/WeatherFetch

Repository files navigation

WeatherFetch

Command line tool for fetching Ambientweather.net weather data from your Personal Weather Station (PWS) and storing it in a local sqlite database.

Adding your device and keys to Settings.json

  1. Obtain an API Key and Application Key for AmbientWeather.net. Refer to https://help.ambientweather.net/help/api/ for information on obtaining this information.
  2. Obtain your Weather Station's Device MAC Address, displayed in the "Devices" page (https://ambientweather.net/devices) in AmbientWeather.net
  3. Open the Settings.json file in a text editor such as Notepad and add your MAC Address Value, API Key and Application Key.

You can create a new SQLite Database and Build using the following steps:

Create a new SQLite Database

  1. Download and install an application such as SQLite Browser https://sqlitebrowser.org/
  2. Create a new database named WeatherStation.sqlite
  3. Execute the WeatherStation.sqlite.sql script to create the database schema

Build the Solution

  1. Open WeatherFetch.csproj in Microsot Visual Studio
  2. Build solution

Command Line Usage

WeatherFetch.exe -days=NUM

where NUM is the number of days past from the time the application was executed to retrieve weather station data from AmbientWeather.net

.Net 6 is required (https://dotnet.microsoft.com/download/dotnet-core)

About

Command line tool for fetching your Personal Weather Station data from Ambientweather.net and storing it in a local sqlite database. Written in C# / dotnet core - Can be compiled for use in Windows, Mac and Linux (Raspberry PI).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages