Skip to content

jmsantorum/ducksboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ducksboard Java API

About:

This is a Java API to send data to custom Ducksboard widgets. It supports most of the custom widgets at Ducksboard, and is easily extendable.

It uses Google GSON and Apache HTTP client 4 for sending data.

Just new two classes with your API-key from Ducksboard, and you are ready to go.

Example usage:

// Create a DAO with your API-key
DucksboardDao dao = new DucksboardDao(new DefaultHttpClient(), "api-key");
// Create a service (optionally with a endpoint suffix)
DucksboardService service = new DucksboardService(dao);

// For each widget, insert the ID from you custom widget.
// If the endpoint is https://push.ducksboard.com/v/1234 you ID is 1234
DucksboardId id = service.createId("ducksboard_endpoint");
// Send a value to your widget
service.pushValue(id, 1);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published