move keys to config file
This commit is contained in:
parent
d86cd5b72e
commit
4a8b2474b8
3
config.ini
Normal file
3
config.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[Default]
|
||||
AppId=app_id
|
||||
AccessKey=ttn-account-v2.redacted
|
7
main.py
7
main.py
@ -4,9 +4,12 @@ import base64
|
||||
import message_pb2
|
||||
import sqlite3
|
||||
|
||||
app_id = "fenceles_grazing"
|
||||
access_key = "ttn-account-v2.XVvtBVcWzkeby-fe9eLtiJBLRbjQR-b358S4z70Xa-0"
|
||||
import configparser
|
||||
config = configparser.ConfigParser()
|
||||
config.read("config.ini")
|
||||
|
||||
app_id = config['Default']['AppId']
|
||||
access_key = config['Default']['AccessKey']
|
||||
|
||||
# For now use collar id of 1, should look up collar id based on collarname from db
|
||||
def store_coord(collarname, x, y):
|
||||
|
Loading…
Reference in New Issue
Block a user