matthieu-boussard / hackathon-e-residents-starterkit

Starter kit for the Dalkia e-residents hackathon http://hackathon.dalkia.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starter kit: e-Resident with craft ai

Here is an example of a Node.js application using craft ai realized as a support for the Hackathon e-RĂ©sident.

As there are no real-time data available for the purpose of this hachaton, the application deals with simulated time.

Setup

  • Log in to GitHub and fork the starterkit project,
  • Go to the craft ai workbench,
  • Sign up (or log in if you already signed up) with your GitHub account,
  • Click on the Add projects... button and select the hackathon-e-resident-starterkit,
  • Clone your GitHub fork of the project on your computer,
  • Install Node.js on your computer,
  • Install dependencies by running npm install in a terminal from the directory where you cloned the project

Starting

  • From the craft ai workbench, edit the project (pencil button) and open the craft_project.json file to access your application credentials,
  • Run the application by running npm start in a teminal and fill in the form.

Under the hood

Intent API Actions

This starter kit contains some example of calls to the Intent API wrapped into craft ai actions. These actions handles the authentication to the API. Feel free to use them as examples to make your own custom actions!

Behavior trees

There is a single behavior tree used in this starter kit, and it is quite simple. What it does is:

  • retrieving a list of streams associated to a given part,
  • logging the data for one of those streams at certain times,
  • displaying an alert whenever the value crosses a threshold.

Resources

Technical questions can be sent through the chat widget of the craft ai workbench or by email at support@craft.ai.

About

Starter kit for the Dalkia e-residents hackathon http://hackathon.dalkia.fr

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%