-
Notifications
You must be signed in to change notification settings - Fork 29
Part 3. The Final Script
jrbail01 edited this page Apr 8, 2016
·
5 revisions
Assuming you ran the "git clone https://github.com/InitialState/smart-scale.git " command in Part 2, the final script that puts everything together is called smartscale.py in your ~/smart-scale directory. (https://github.com/InitialState/smart-scale/blob/master/smartscale.py)
A few settings need to be set in the script before you can run it. Open up smartscale.py in your favorite text editor such as nano.
$ cd ~
$ cd smart-scale
$ nano smartscale.py
Near the top of this file, there is a User Settings section.
# --------- User Settings ---------
BUCKET_NAME = ":apple: My Weight History"
BUCKET_KEY = "weight11"
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE"
METRIC_UNITS = False
WEIGHT_SAMPLES = 500
THROWAWAY_SAMPLES = 100
WEIGHT_HISTORY = 7
# ---------------------------------
Initial State (https://www.initialstate.com)
(c) 2018 Initial State Technologies, Inc.