The SARA Timeseries provides an automated process to upload data to Omnia Timeseries API. For more information about Omnia Timeseries API, see Omnia
| Env var | Description |
|---|---|
| SARA_TIMESERIES_CLIENT_SECRET | Omnia Timeseries Client Secret |
The dependencies used for this package are listed in pyproject.toml and pinned in requirements.txt.
This ensures our builds are predictable and deterministic. This project uses pip-compile (from pip-tools)
pip-compile --output-file=requirements.txt pyproject.toml
To update the requirements to the latest versions, run the same command with the --upgrade flag:
pip-compile --output-file=requirements.txt pyproject.toml --upgrade
App is running default at localhost:8200/docs
The app can be run locally through this command
python main.pydocker build -t sara-timeseries .Export env vars
export SARA_TIMESERIES_CLIENT_SECRET="<client-secret-to-timeseries-api>"docker run -p 8200:8200 --env-file ./.env sara-timeseriesYou can find more information on running the mock here.
For sara-timeseries you have to add this to your .env file:
USE_MOCK_TIMESERIES_API=true