Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (18 loc) · 1.37 KB

File metadata and controls

32 lines (18 loc) · 1.37 KB

Download image console example

MIT licensed

This is an example project based on VasttrafikNET showing how to download the latest camera image for a specified parking area into a specified path with a console application.

Usage

Build

To build the console application dotnet sdk needs to be installed on the device.

Navigate to the folder of the project is, i.e. ends with ...\Vasttrafik.NET\src\Examples\Stranne.VasttrafikNET.Examples.DownloadParkingImage and run the following commands in a terminal, or build it with Visual Studio.

dotnet restore
dotnet build

Run

To run the console application dotnet runtime or sdk needs to be installed on the device.

Open a terminal where the Stranne.VasttrafikNET.Examples.DownloadParkingImage.dll file is located and run with the line below where brackets has been replaced with valid parameters.

dotnet Stranne.VasttrafikNET.Examples.DownloadParkingImage.dll {Parking id, ex 6090} {Camera id, ex 1} {Västtrafik Key} {Västtrafik Secret} {Download directory, optional}

Get Västtrafik key and secret here.