{"id":21296935,"url":"https://github.com/reddec/lps331-tools","last_synced_at":"2025-03-15T17:27:43.714Z","repository":{"id":81702519,"uuid":"61960372","full_name":"reddec/lps331-tools","owner":"reddec","description":"LPS331 API libraries and CLI Tools","archived":false,"fork":false,"pushed_at":"2016-07-03T18:38:26.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:06:39.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reddec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-25T20:27:30.000Z","updated_at":"2016-06-25T21:04:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7dfcc84-19df-47f4-a83c-420be4f1d0d2","html_url":"https://github.com/reddec/lps331-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Flps331-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Flps331-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Flps331-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Flps331-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddec","download_url":"https://codeload.github.com/reddec/lps331-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243765042,"owners_count":20344525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T14:31:10.838Z","updated_at":"2025-03-15T17:27:43.690Z","avatar_url":"https://github.com/reddec.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lps331-tools\n\nAPI libraries and CLI Tools for LPS331 sensor.\n\n[Datasheet](http://www.st.com/content/ccc/resource/technical/document/datasheet/40/c2/46/1e/99/22/4c/60/DM00036196.pdf/files/DM00036196.pdf/jcr:content/translations/en.DM00036196.pdf)\n\n## Obtain\n\n[You may use precompilled versions](https://github.com/reddec/lps331-tools/releases) \nor build from source\n\n### Build requirements\n\n1. CMake 2.8\n2. Make\n3. C11 (gnu)  compiler\n4. I2C-supported linux kernel (all that I know)\n5. git (optional) for cloning\n\n### Build\n\nThis is generic CMake process.\n\nFirst, create new empty directory:\n\n    mkdir -p /tmp/build-lps331\n    cd /tmp\n\nThen clone Git repo\n\n    git clone https://github.com/reddec/lps331-tools.git\n\nUse CMake for prepare MAKE files:\n\n    cd /tmp/build-lps331\n    cmake -DCMAKE_BUILD_TYPE=Release /tmp/lps331-tools\n\nCompile and package:\n\n    make package\n\n\n### Install\n\nAfter build you can use one of following method:\n\n1. Use `lps331-1.0.0-Linux.sh` as self-installer\n2. Use `lps331-1.0.0-Linux.tar.gz` as binary tar-ball\n3. Use built files directly =)\n\n## Use CLI\n\nUsage: `.lps331 \u003cdevice\u003e \u003caddress\u003e [profile]`\n\n* `device`             - path of I2C device (like /dev/i2c-1)\n* `address`            - address of sensor in device in HEX (like 0x52)\n* `profile` (optional) - Index of rates profile (see below). Default 4\n\n### Profiles\n\n| # | Update temperature (Hz)  | Update pressure (Hz) |\n|---|--------------------------|----------------------|\n| 0 | 1                        | 1                    |\n| 1 | 7                        | 1                    |\n| 2 | 12.5                     | 1                    |\n| 3 | 25                       | 1                    |\n| 4 | 7                        | 7                    |\n| 5 | 12.5                     | 12.5                 |\n| 6 | 25                       | 25                   |\n\n### Output\n\nSpace separated lines.\n\nPattern:\n\n    \u003cname\u003e\u003cSPACE\u003e\u003cvalue\u003e\u003cSPACE\u003e\u003cunits\u003e\u003cNEWLINE\u003e\n\n* names: `temp` and `pressure`\n* units: `c` and `mbar`\n* value: text view of `double` value\n\nExamples:\n\n    temp 22.5 c\n    pressure 997.1123 mbar\n\n## API\n\n\n\n**TODO:**\n\n### Linking\n\nYou may use static or shared library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Flps331-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddec%2Flps331-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Flps331-tools/lists"}