haystack 0.4.20+6

haystack

Port of haystack java toolkit. Use it to connect and work with SkySpark. [Project Haystack]http://project-haystack.org/ defines a tagging model and REST API for sensor systems such as HVAC, lighting, and energy equipment. [SkySpark] is a project to serve your IoT data and make analytics.

To use this package you need installed SkySpark server (and apply a some license). Authentication methods are skipped now, so you can use this library from SkySpark pub folder. Just create in you SkySpark's folder root 'pub' directory and place here your app. It will be accessible by 'localhost_or_smth:80/pub/my_app.html'. Only client side is implemented at this moment, you can't use it from server or command-line apps.

Usage

A simple usage example (include this into HTML page):

import 'package:haystack/core.dart';
import 'package:haystack/hclient.dart';

final String uri = "http://localhost:8080/api/demo";
final String user = "haystack";
final String pass = "testpass";
HClient client;

main() {
  client = new HClient(uri, user, pass);
  client.open().then((_) => client.about()).then((HDict result) {
    print(result);
  });
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.4.20+3

  • Fixed grid dump with sub-grids

0.4.20+2

  • Added List implementation for HGrid (unmodifiable)

0.4.20+1

  • Fixed column's dis method

0.4.20

  • Fixed HGrid toString method

0.4.19

  • Fixed dollar sign string parsing

0.4.18

  • Added HList, HXStr,
  • Made HDict and HGrid HVals
  • Enhanced Zinc for nested data structures
  • Created HaystackTokenizer for parsing haystack types

0.4.17

  • test renamed to work with automatic testing

0.4.16

  • added HGrid.rows readonly getter
  • fixed tests to work with new test package

0.4.15

  • added tags

0.4.14

  • added map interface for HDict, HRow and HHisItem

0.4.13

  • fixed initial bool value error in HClientWatch class

0.4.11

  • Just fixed hclient library names conflict

0.4.10

  • Added HRemove singleton

0.4.0

  • Initial version, created by Dmitriy Vasilyev aka kelegorm

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  haystack: "^0.4.20+6"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:haystack/hclient.dart';
import 'package:haystack/core.dart';

About

Port of haystack java toolkit (https://bitbucket.org/brianfrank/haystack-java). Use it for work with SkySpark. For more details look readme.

Author

Email dmitry@bassg.com Dmitriy Vasilyev

Homepage

bitbucket.org/bassg/haystack-dart-toolkit

Documentation

www.dartdocs.org/documentation/haystack/0.4.20%2B6/

Source code (hyperlinked)

www.crossdart.info/p/haystack/0.4.20%2B6/

Uploader

dmitry@bassg.com
alper@bassg.com
andrey@bassg.com
andrey@basservices.net
dmitry@basservices.net
alper@basservices.net

Share