Skip to main content

HAM Systems API

Project description

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 you API key here
	ham = hamapi.hamapi(api_key='', server='hamsystems.eu')
	# 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()

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

hamapi-0.1.10.tar.gz (21.4 kB view details)

Uploaded Source

File details

Details for the file hamapi-0.1.10.tar.gz.

File metadata

  • Download URL: hamapi-0.1.10.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for hamapi-0.1.10.tar.gz
Algorithm Hash digest
SHA256 074f00de02f291b3d16ff470a380771507fcaa9cedcd3ba8dd47cd487ec2c64d
MD5 971e0b103a8c800e34a03c6f7de75604
BLAKE2b-256 26f14ab09d43b6cdc490d9521e8a9a30746eefd38b6fd056a6b5a69b3e0ab2fd

See more details on using hashes here.

Supported by

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