Giter VIP home page Giter VIP logo

reelyactive / hlc-server Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 8.0 2.71 MB

Serves real-time real-world context at a human scale by combining RFID, RTLS and M2M with structured, linked data on the web. We believe in an open Internet of Things.

Home Page: https://www.reelyactive.com/context/

License: MIT License

JavaScript 61.67% HTML 36.45% CSS 1.81% Dockerfile 0.07%
iot-platform nodejs hyperlocal-context rtls m2m bluetooth-low-energy pareto-anywhere

hlc-server's People

Contributors

camillele avatar jeffyactive avatar pinazo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hlc-server's Issues

TypeError: Cannot read property 'transport' of undefined

Hello, I'm encountering the following error when trying to start the hlc-server.
I've tried a few different distros--xubuntu, ubuntu and mint all with the exact same error.
Any guidance would be greatly appreciated!

reelyactive@reelyactive:~/reelyActive/hlc-server$ npm start

[email protected] start /home/reelyactive/reelyActive/hlc-server
node bin/hlc-server

reelyActive barnowl instance is listening for an open IoT
/home/reelyactive/reelyActive/hlc-server/node_modules/@elastic/elasticsearch/api/api/ping.js:47
return this.transport.request(request, options, callback)
^

TypeError: Cannot read property 'transport' of undefined
at pingApi (/home/reelyactive/reelyActive/hlc-server/node_modules/@elastic/elasticsearch/api/api/ping.js:47:15)
at retryUntilSuccess (/home/reelyactive/reelyActive/hlc-server/lib/elasticmanager.js:122:3)
at ElasticManager.notifyOnElasticsearchRunning (/home/reelyactive/reelyActive/hlc-server/lib/elasticmanager.js:43:5)
at new HLCServer (/home/reelyactive/reelyActive/hlc-server/lib/hlcserver.js:99:18)
at Object. (/home/reelyactive/reelyActive/hlc-server/bin/hlc-server:10:11)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node bin/hlc-server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/reelyactive/.npm/_logs/2020-09-29T14_34_51_069Z-debug.log

Encoded raddecs over 50001 not accepted

I try to send raddecs from one remote device to a central device. On the remote device I'm running barnowl-hci and barnacles. On the central device I'm running hlc-server.

On the remote device I encode the raddec with encodeAsHexString() and send it over via dgram.

I found two issues, of which one seems blocking for me:

  • the interpretation of an incoming raddec on hlc-server is done with toString('hex'), although I believe it should be done with toString('utf8'). I changed it on my codebase to get the import working
  • as soon as I have the first raddec from the same transmitter (at least I believe this is the pattern), the determineNewPacket() method in barnacles.radecmanager fails. I manually set this to false because I'm not expecting new packet content

Even after tweaking above parts of the code, the hlc-server shows on the cover page that it is processing raddecs, but none of the other pages (e.g. Hello TLM Activity) shows any processed raddecs.

Would be great if someone could share experience sending over raddecs

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.