{"id":21575801,"url":"https://github.com/derniercri/warpex","last_synced_at":"2025-04-10T16:32:15.323Z","repository":{"id":62430756,"uuid":"126654471","full_name":"derniercri/warpex","owner":"derniercri","description":"Warp10 client for Elixir","archived":false,"fork":false,"pushed_at":"2020-09-14T14:43:42.000Z","size":28,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T14:13:31.798Z","etag":null,"topics":["elixir","iot","timeseries","warp10"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derniercri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-25T01:23:36.000Z","updated_at":"2022-06-28T14:35:29.000Z","dependencies_parsed_at":"2022-11-01T20:30:48.833Z","dependency_job_id":null,"html_url":"https://github.com/derniercri/warpex","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derniercri%2Fwarpex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derniercri%2Fwarpex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derniercri%2Fwarpex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derniercri%2Fwarpex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derniercri","download_url":"https://codeload.github.com/derniercri/warpex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247867365,"owners_count":21009240,"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":["elixir","iot","timeseries","warp10"],"created_at":"2024-11-24T12:14:19.886Z","updated_at":"2025-04-10T16:32:15.301Z","avatar_url":"https://github.com/derniercri.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Warpex\n\n[![Build Status](https://travis-ci.org/derniercri/warpex.svg?branch=master)](https://travis-ci.org/derniercri/warpex)\n\nWarpex is a Warp10 client for Elixir.\n\n## Usage\n\nAdd it to your applications and dependencies in `mix.exs`:\n\n```elixir\ndef application do\n  [applications: [:warpex]]\nend\n  \ndef deps do\n  [{:warpex, \"~\u003e 1.2\"}]\nend\n```\n\n\nConfigure it in `config.exs`:\n\n```elixir\nconfig :warpex,\n  address: \"http://localhost\",  # defaults to System.get_env(\"WARP10_ADDRESS\"),\n  read_key:   \"xxxxx\",  # defaults to System.get_env(\"WARP10_READ_KEY\")\n  write_key:  \"xxxxx\",  # defaults to System.get_env(\"WARP10_WRITE_KEY\")\n  httpoison_opts: [timeout: 5000]  # defaults to []\n```\n\nAnd then call functions like:\n\n```elixir\n{status, response} = Warpex.update(\n    [%{\n        \"labels\" =\u003e \"label1=anything,label2=anotherthing\", \n        \"latlon\" =\u003e \"50.683299992233515:2.8832999244332314\", \n        \"elev\" =\u003e \"214748\",\n        \"name\" =\u003e \"metric.1.memory_available\", \n        \"val\" =\u003e 12, \n        \"ts\" =\u003e 1521969018754000\n    }])\n```\n\n```elixir\n\"'#{Warpex.get_token(:read)}'  // Put your token on the stack                                                                                                           \n'token' STORE // Store it in a variable   \n[ $token '~sensor.#{sensor.id}.*' {  } #{start} #{delta} ] FETCH  \n[ SWAP bucketizer.mean 0 0 1 ] BUCKETIZE\"     \n|\u003e Warpex.exec_warpscript()\n```\n\n\n```elixir\n{status, response} = Warpex.fetch(\"~metric.1.*{}\", start, stop)\n```\n\n`status` is either `:ok` or `:error`.\n\n`response` is the raw response from Warp10 as text\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderniercri%2Fwarpex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderniercri%2Fwarpex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderniercri%2Fwarpex/lists"}