https://github.com/Brightergy/egaugex
A simple egauge parser to retrieve and parse data from egauge devices
https://github.com/Brightergy/egaugex
Last synced: 16 days ago
JSON representation
A simple egauge parser to retrieve and parse data from egauge devices
- Host: GitHub
- URL: https://github.com/Brightergy/egaugex
- Owner: Brightergy
- Created: 2016-05-02T00:46:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T16:30:34.000Z (almost 7 years ago)
- Last Synced: 2025-03-16T06:37:19.313Z (30 days ago)
- Language: Elixir
- Size: 25.4 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Client to fetch and parse realtime data from egauge devices. (Miscellaneous)
- fucking-awesome-elixir - egaugex - Client to fetch and parse realtime data from egauge devices. (Miscellaneous)
- awesome-elixir - egaugex - Client to fetch and parse realtime data from egauge devices. (Miscellaneous)
README
# Egaugex
[](https://hex.pm/packages/egaugex)  [](https://semaphoreci.com/brightergy/egaugex) [](https://coveralls.io/github/Brightergy/egaugex?branch=master)
> Gets and parses egauge data given the egauge device id.
## Installation
Add egaugex to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:egaugex, "~> 0.0.5"}]
end
```## Usage
```elixir
import Egaugex# hits `/cgi-bin/egauge-show?S&n=60` by default
egauge_parser("egaugexxxxx")# with username and password auth
egauge_parser("egaugexxxxx", ["username": "owner", "password": "default"])# with custom uri
egauge_parser("egauge17983", [{:uri, "/cgi-bin/egauge-show?S&a&t=1462299644"}, {:username, "owner"}, {:password, "default"}])
```You can pass the list of arguments as keyword arguments as shown in example above. The other keyword arguments are `base_url` and `realm`.