Skip to content

Beginnings of a library for interacting with Thingsboard via the REST interface

License

Notifications You must be signed in to change notification settings

krushikesh/thingsboard_api_tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not ready for prime time! (Incomplete and undocumented, but what's here is useful and works.)

This code is utterly untested, but will get you pointed in the right direction.

mothership_url = "http://www.wherever.org:8080"
thingsboard_username = "who_are_you"
thingsboard_password = "xyzzy"

tbapi = TbApi(mothership_url, thingsboard_username, thingsboard_password)

device = tbapi.get_device_by_name("device_name")

latest_temp = tbapi.get_latest_telemetry(device, "temperature")
all_humidity = tbapi.get_telemetry(device, "humidity")     # Lots more options on this method

About

Beginnings of a library for interacting with Thingsboard via the REST interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%