Skip to content

Fedefirewall/thingsboard_python_rest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not ready for prime time! (Incomplete and undocumented, and most of things dont works, prbably because they changed the API) I fixed some of the functions and now they work, i will slowly try to fix them all.

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 for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%