From 103117622abd48ecffdd54a36698327676427090 Mon Sep 17 00:00:00 2001 From: Terry Moore Date: Wed, 21 Jul 2021 18:16:55 -0400 Subject: [PATCH] Rename to match repo name --- fetch.py => ttn_storage_api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename fetch.py => ttn_storage_api.py (88%) diff --git a/fetch.py b/ttn_storage_api.py similarity index 88% rename from fetch.py rename to ttn_storage_api.py index a12a4b8..e57a2a0 100644 --- a/fetch.py +++ b/ttn_storage_api.py @@ -1,5 +1,5 @@ # -# Name: fetch.py +# Name: ttn_storage_api.py # # Function: # Fetch data from TTN, via storage API @@ -8,8 +8,8 @@ # Terry Moore, MCCI # # Use: -# import fetch -# fetch.sensor_pull_storage(...) -- see docs for args +# import ttn_storage_api +# ttn_storage_api.sensor_pull_storage(...) -- see docs for args # # Or just cut/paste into your script. # @@ -36,15 +36,15 @@ def __init__(self, expression, message): def sensor_pull_storage(appname, accesskey, timestring, *,data_folder = None, ttn_version=3): """ - Pull data from TTN via the storage API. + Pull data from TTN via the TTN storage API. appname is the name of the TTN app accesskey is the full accesskey from ttn. For TTN V3, this is is the - secret output when a kye is created. For TTN V2, this is + secret that is output when a key is created. For TTN V2, this is the string from the console, starting with 'ttn-acount-v2.' - timestring indicates amount of data needed, e.g. '1d'. + timestring indicates amount of data needed, e.g. '100h'. ttn_version should be 2 or 3; 3 is default.