Skip to main content

HAM Systems API for Python

With this python package, you can easily access datalog data for your HAM Systems devices.

You are free to use this code as you like and we are looking forward to seeing on what you achieve with our platform!

#!/usr/bin/env python3

import time, datetime
import math 

import hamapi

if __name__ == "__main__":
	# set your API key here
	ham = hamapi.hamapi(api_key='')
	# unix timestamp of the start of data
	start = math.floor(time.time()-7*86400)
	# unix timestamp of the end of data
	end = math.floor(time.time()-86400)
	# step to smooth/average the data in seconds
	step = 2*60
	# get datalog data for device with serialno 12:204, from start to end with step
	data = ham.get_datalog_data("12:204", start, end)
	print(data)

	# fig, ax = plt.subplots()
	# ax.plot([datetime.datetime.utcfromtimestamp(d) for d in data['timestamp']], data['T'])
	# ax.grid()
	# plt.show()

Metadata

Release files for hamapi 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hamapi 0.1.15
File Size Uploaded Provenance Actions
hamapi-0.1.15.tar.gz 32.0 kB Without provenance Details for hamapi-0.1.15.tar.gz

Release files / hamapi-0.1.15.tar.gz

Download URL hamapi-0.1.15.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
01262a373b3a7ac0e1873c7bf1ff67b1329f5b7af650234af4127982f0c58214
BLAKE2b-256 checksum
How to use checksums
0589ff5be62c8d24e9616beb8d2824aaa29973196692af3020f045ca613f9867
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for hamapi 0.1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page