datanomics-engine

command module
v0.0.0-...-04a74c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2014 License: AGPL-3.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Datanomics implements a server to log sensor values through simple GET and/or POST requests and let various clients to retrieve them.


Disclaimer

Usually I upload my projects to Github to share them with the world. The primary motive for adding Datanomics to Github though is to help me with deployment. For this reason I haven't clean up the project, neither I tried to make it easy for everyone to understand. If it suits you feel free to use it (AGPL 3.0 license applies) but I can't guarantee updates, an always consistent state, help or documentation.

There is a second part to the project, the web interface, which has html templates and javascript libraries as well as third party javascript and css libraries. It will be released at a later time.


To compile, place (or link) datanomics to your GOPATH src directory and run build. Example:

$ ln -s datanomics $GOPATH/src/datanomics
$ go build datanomics

Sensor requests.

Simple GET request will log with server's time:

$ curl http://datanomics/log/<SENSOR-UUID>/<SENSOR-FLOAT-VALUE>

You can set your own timestamp:

$ curl http://datanomics/log/<SENSOR-UUID>/<SENSOR-FLOAT-VALUE>/t/<UNIX-TIME-IN-SECONDS>

You can set how many seconds passed since your measurement and server will subtract them from its time:

$ curl http://datanomics/log/<SENSOR-UUID>/<SENSOR-FLOAT-VALUE>/s/<SECONDS-SINCE-LOGGING>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址