Skip to main content

A platform for makers, hobbyists, students, and professionals to easily store and visualize data recorded from internet-connected devices

Project description

Instructions

Step 1:

Add import statement to top of python file

Step 3:

Use Trackr functions within your own code.

Example working cs file

import Trackr

def testUpdateEndpoint(myUrl):
      print("Current endpoint is " + Trackr.ShowEndpoint())
      Trackr.UpdateEndpoint(myUrl)
      print("New endpoint is " + Trackr.ShowEndpoint())

def testManyValues(myApiKey, myFieldId: int, values):
      print("adding many values")
      response = Trackr.AddManyValues(myApiKey, myFieldId, values)
      print("Returned status code: " + str(response.status_code))
      print("Returned content: " + str(response.text))
      print("done adding many values")

def testSingleValue(myApiKey, myFieldId: int, value):
      print("adding single value")
      response = Trackr.AddSingleValue(myApiKey, myFieldId, value)
      print("Returned status code: " + str(response.status_code))
      print("Returned content: " + str(response.text))
      print("done adding single value")

def testGetValues(myApiKey, myFieldId: int, myOffset: int, myLimit: int, myOrder):
      print("getting values")
      returnedValues = Trackr.GetValues(myApiKey, myFieldId, myOffset, myLimit, myOrder)
      print(returnedValues)
      print("done getting values")

myApiKey = "pVUYgxZySwbp6iSvmQQLQHl0ywA2X3m5Gg93cKSFoMPU5k6IVTWgoUUV9YpsAQh0"
myFieldId = 1
myOffset = 0
myLimit = 10
myOrder = "asc"
myUrl = "someAddress/api/values"

myValues = [
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7"
]

testManyValues(myApiKey, myFieldId, myValues)
print("")
testSingleValue(myApiKey, myFieldId, myValues[0])
print("")
testGetValues(myApiKey, myFieldId, myOffset, myLimit, myOrder)
print("")
testUpdateEndpoint(myUrl)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

umtrackr-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

umtrackr-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file umtrackr-1.0.0.tar.gz.

File metadata

  • Download URL: umtrackr-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for umtrackr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e495c174b30dce850d5561dcc24964e99f4db1f3571b9a16c864de9937e54481
MD5 c0e58f2f387d2b488613203557a5ae77
BLAKE2b-256 89a9bd61e17f02667c5eea5c7fe616fda8205b8ce0cee169fb4bf8796e68e1d7

See more details on using hashes here.

File details

Details for the file umtrackr-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: umtrackr-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for umtrackr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04a4a5bf03278ce000d225cd7687eec1b60ebb565853bfb4e8f5d1be4daa70f5
MD5 bb2ff8df13952431ac3af961592c07b0
BLAKE2b-256 b10879d91e4a776e24d277f3d06c24a6d6daac2240e99198eb25c1e9fd7f58e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page