Skip to content

Public-Transport-Nuremberg/Arduino-PulsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VAG Puls API for Arduino

Exports a simple class with basic functions to interface the API.
Every function will return a json compatible string.

// Optional
#include <Arduino_JSON.h> // Import a JSON Parser, can be any JSON parser
// Required
#include <Vagapi.h> // Import the class
Vagapi vag;  // Use the class

JSONVar getStop_request = JSON.parse(vag.getStop("Opernhaus")); // Returns stops that match the seach
JSONVar getDepartures_request = JSON.parse(vag.getDepartures(704, 3)); // Returns departures of a given station

About

Easy to use class to interact with the vag pulse api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages