Sign inSign up

vdbg/resmed-influx

By vdbg

•Updated almost 2 years ago

Pull data from resmed/myAir to influxdb - https://github.com/vdbg/resmed-influx

Image
0

10K+

vdbg/resmed-influx repository overview

⁠MyAir Resmed to InfluxDB

Allows for importing MyAir⁠ data to InfluxDB⁠.

⁠Requirements

  • The MyAir credentials associated with the ResMed CPAP⁠ that's uploading MyAir data to the cloud
  • InfluxDB⁠ v2 installed and accessible from the device running the docker container
  • Bucket created on the influxDB and token available

⁠Setup

Note: instructions below are for using config.toml for settings but environment variables may be used instead. See template.config.toml⁠ for instructions.

  1. touch config.toml
  2. This will fail due to malformed config.toml. That's intentional :) sudo docker run --name myAir -v "`pwd`/config.toml:/app/config.toml" vdbg/resmed-influx
  3. sudo docker cp myAir:/app/template.config.tomlconfig.toml
  4. Edit config.toml by following the instructions in the file
  5. sudo docker start myAir -i This will display logging on the command window allowing for rapid troubleshooting. Ctrl-C to stop the container.
  6. When done testing the config:
  • sudo docker container rm myAir
  • sudo docker run -d --name myAir -v "`pwd`/config.toml:/app/config.toml" --restart=always --memory=100m vdbg/resmed-influx
  • To see logs: sudo docker container logs -f myAir

⁠Troubleshooting

The app may fail on first run, or may start failing after a long period of successful runs with a "policyNotAccepted" error. If this happens, navigate to the myAir web - ResMed⁠ site, enter your credentials, and accept myAir's policy.

Tag summary

Content type

Image

Digest

sha256:19103b8af…

Size

29.3 MB

Last updated

almost 2 years ago

docker pull vdbg/resmed-influx