• Stars
    star
    1
  • Language
    Julia
  • License
    MIT License
  • Created over 2 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

InfluxFlux

A simple Julia client to access InfluxDB based on the Flux query language.

Only supports read access

Install

] add https://github.com/tallakt/InfluxFlux#main

Usage

using Dates
using InfluxFlux

api_key = "...."
srv = influx_server("https://some.influxdb.endpoint.influxdata.com", "[email protected]", api_token)

# raw query to string
raw = flux(srv, "buckets()") |> String

# raw query to dataframe, note only one table supported
table = flux_to_dataframe(srv, """
  from(bucket: "example-bucket")
    |> range(start: -1d)
    |> filter(fn: (r) => r._field == "foo")
    |> group(columns: ["sensorID"])
    |> mean()
  """)

# get all data for a measurement as a DataFrame
dataframe1 = measurement(srv, "example_bucket", "sensors", now(UTC) - Hour(1), now())

# get measurements with a reduced sample rate 1 minute
dataframe2 = aggregate_measurement(srv, "example_bucket", "sensors", now(UTC) - Hour(1), now(), Minute(1))

More Repositories

1

codepagex

Elixir string encoding conversion - like iconv but pure Elixir
Elixir
108
star
2

modbus-cli

Modbus command line utility
Ruby
102
star
3

comb

Elixir combinatorics - permutations and combinations of lists
Elixir
48
star
4

geoutm

Conversion between latitude/longitude coordinates to UTM
Ruby
41
star
5

stream_split

Split a stream into a head and tail, without iterating the tail
Elixir
36
star
6

spliner

Cubic spline interpolation library
Ruby
20
star
7

servodrive

Beagleboard RC Servo driver - fork of http://chrisd.info/portfolio/indexbeaglerc.shtml
C
17
star
8

bladegen

Generate propeller blades in OpenSCAD
OpenSCAD
14
star
9

plcutil

Some PLC utillities for Siemens, Schneider and Wonderware written in Ruby
Ruby
12
star
10

picopc

Pico OPC: A really small OPC library for Ruby 1.9+
Ruby
11
star
11

machines

Some classes that could be used in a theoretical Ruby based PLC
Ruby
6
star
12

railsvg

Concept test to replace HMI - combination of SVG graphics and AJAX
Ruby
3
star
13

TRPTSim

A simulator for the Pyramid TRPT airborne wind energy [AWE] windmill
Julia
3
star
14

gpsspeed

Calculate the maximum speeds over a given distance given track in gpx file
Ruby
3
star
15

veoanity

Vanity addresses for the Amoveo network
Elixir
2
star
16

kidsakoder_kidsbook

Kursopplegg Kidsa Koder
Slim
2
star
17

kapture

Rails driven application for remote image capture on KAP rig
Ruby
2
star
18

tallakt-picsort

TODO: one-line summary of your gem
Ruby
1
star
19

veoallet

Simplest safe wallet for Amoveo
Elixir
1
star
20

firealarm

SMS alarm triggered by digital output of smoke detectors
Ruby
1
star
21

prowlex

Elixir interface to Prowl app https://www.prowlapp.com/
Elixir
1
star
22

TetherDragODESolver

Tether drag estimate for airborne wind energy [AWE]
Julia
1
star
23

awltool

Parser and command line tool for Siemens AWL files - GROSSLY INCOMPLETE
Ruby
1
star
24

em-modbus

A modbus driver using eventmachine - PROTORYPE DONT USE
Ruby
1
star