sensecap_api_checker_HELIUM
Connects to a local SenseCap M1 Helium Hotspot and pulls API Data.
Written By: LorentzFactr
Date: 11/03/2021
Connects to a local SenseCap M1 Helium Hotspot and pulls API Data Checks the block height, amount of blocks validated and reports the percentage once every 10 seconds. Checks status of Online, Synced, Relayed, and other items available. Finally, it outputs you block height, total block height, and the timestamp to a csv file for graphing your sync rate.
Pre-requisites: created an account with SenseCap, logged into the local web API, and generated an API key
For API usage instructions goto: https://status-api-doc.sensecapmx.cloud/
ToDo: Make it a serverless web based GUI using https://pywebview.flowrl.com/examples/
Make sure to update the following variables before running:
-sn (Your device serial number)
-api_key (generated from sensecap.mx.cloud)
-filename (filepath where you want your CSV file to be added)
*If you dont want the CSV to log every ten seconds (ie: 8640 times per day AKA huge csv) you can slow down the loop cycles (in seconds) on Line 197.