Giter Site home page Giter Site logo

nixes / iothub Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 187 KB

A node js application for collecting and visualising data gathered from sensors, pretty MEAN.

JavaScript 74.46% CSS 2.50% HTML 23.04%
iothub-platform nodejs restful-api web-application iothub

iothub's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on a news reliability analysis service
  • ๐ŸŒฑ Iโ€™m currently learning Dart + Flutter, Spring, Nest, Unity 3D
  • ๐Ÿ’ฌ Ask me about architecture, datastructures, AWS infrustructure, devops.
  • Looking to collaborate on open source VR projects.
  • ๐Ÿ“ซ How to reach me: email in my profile
  • ๐Ÿ’– My favorite tools/frameworks:
    • FE: VueJs (w/typescript)
    • BE: Spring Boot (w/kotlin), Symfony, NestJS
    • DevOps: Terraform, CircleCI

iothub's People

Contributors

nixes avatar

Watchers

 avatar  avatar

Forkers

shashiyadav187

iothub's Issues

when too much data available, return averages

Since the resolution of the display device is limited anyway, we should provide only enough data for the available pixels. To do this and improve data quality we should average data points until we have a small enough number.

Objectives

  • Queryable Input (sensors)
  • On Demand Output (actors?)
  • IFTTT like commands
  • Authentication

Sensor data types?

Need ideas for sensor input types, this has implications for what graphs are suitable.

  • Number
  • Enum / State
  • Boolean
  • String

How to implement actors?

In this system an actor is defined as anything that performs an action in the world.
The basic example of this would be switching a light on or off. But can include things like another program.

Current thinking is to have each actor provide a compatible REST interface. Actors should register for an id once, then check-in on powerup to update its recorded ip address.

Tests failing

Output:

Data.id expected regex: /^[a-f\d]{24}$/  actual: failed to parse body: invalid character 'N' looking for beginning of value  
--- FAIL: POST /api/sensors 
 api_docs.md:19 - Data.id doesn't match  

Looks like a simple regex fix

simplify new behaviour creation process

The visual complexity is really a bit high for what should be an easy process, Some ideas for improving this include:

  • Some kind of wizard process
  • Dim parts of UI that are no longer relevant + guide stepwise

virtual sensors

these might be the result of an intermediary calculation, and should be hidden by default

data limits

Add ability to set data limits for individual sensors, whereby data is dropped if it is older than a certain period or number the of samples reach a certain level.

if sensor not registered but data sent anyway server crashes

value was: 19.1
events.js:160
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'data' of null
    at /home/callum/iotHub/routes/api.js:204:15
    at Query.<anonymous> (/home/callum/iotHub/node_modules/mongoose/lib/model.js:3324:16)
    at /home/callum/iotHub/node_modules/kareem/index.js:259:21
    at /home/callum/iotHub/node_modules/kareem/index.js:127:16
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

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.