Sensor software
git remote add resin [email protected]/myusername/myapplicationname.git
)git push resin master
We expect (at least) the following environment variables to be set in Resin:
Variable | Purpose |
---|---|
LOCATION_NAME | Override the default device name (Resin UUID) |
LOG_HOST | hostname:port |
STATE_LIST | List of states (in caps) for FCC feed. ex: "CA,TX" |
VAULT_PATH | Path to logstash cert/keys in Vault |
VAULT_TOKEN | Token for accessing credentials in vault |
VAULT_URL | URL for accessing Vault. ex: https://v.example.com:port |
For more configuration options, consult the environment variables section of the documentation.
Testing is done with pytest. Coverage module optional.
Testing requirements (local testing possible only on Linux):
export SITCH_FEED_BASE=https://MY.FEED.URL/base
py.test --cov sitchlib
.If you're using a GSM modem that's not recognized by the device detector,
please add the output from running the ATI
command against your GSM modem in
the variable named positive_match
in the is_a_gsm_modem()
method, in the
sensor/sitch/sitchlib/device_detector.py
file. Then send a pull request so
that everyone can get the benefit of your discovery.
This repository contains pre-built binaries for Filebeat and Kalibrate. The licenses which apply to these two tools can be found here and here, respectively.
test
branch.positive_match
variable in the
DeviceDetector.is_a_gsm_modem()
function