Code Monkey home page Code Monkey logo

influxdb-dweet.io's Introduction

InfluxDB - dweet.io data ingest

This is an experiment to ingest data from dweet.io into InfluxDB.

Dependencies

I assume that you've installed InfluxDB, as well as its Python client lib. Further, you'll need to create a database in InfluxDB with the name dweet along with the following user (with Admin role enabled):

user name: dweet
password:  dweet

Also, make sure the time series dweet is empty, by executing the following in the Web UI:

delete from dweet

or

drop dweet

Usage

Simply run the script, providing it:

  • the FQHN where your InfluxDB runs
  • the thing itself, discover it first
  • the key that you want to track (an item of the content object)

For example, call the script like this:

python dwingest.py influxdb AvocadoGrove aiHotWaterTemp_degreesF

which pulls data from the thing AvocadoGrove using the key aiHotWaterTemp_degreesF:

  {
      "by": "getting",
      "the": "dweets",
      "this": "succeeded",
      "with": [
          {
              "content": {
                  "aiHotWaterTemp_degreesF": 98.463,
                  "aiOutsideTemp_degreesF": 95.935,
                  ...
              },
              "created": "2014-09-06T16:56:32.305Z",
              "thing": "AvocadoGrove"
          }
      ]
  }

You should then see something like this in the InfluxDB UI:

dweet.io time series example

when executing:

select aiHotWaterTemp_degreesF from dweet

License

See the LICENSE file.

influxdb-dweet.io's People

Contributors

mhausenblas avatar

Stargazers

Till avatar Sam Bessalah avatar Julien CHAMPSEIX avatar  avatar gdilla avatar Jim Heising avatar

Watchers

James Cloos avatar gdilla avatar  avatar

influxdb-dweet.io's Issues

ERROR u'fields'

might be just a python issue but I get the following error for every dweet.io query.

...
2019-01-29T11:17:13 ERROR u'fields' [at line 111]

The debug option shows the proper dweet response but the ingesting seems to mix up the_thing and the_key somehow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.