Giter Site home page Giter Site logo

evejs's People

Contributors

alexdm0 avatar cunhaluis avatar ianmuninio avatar josdejong avatar ludost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evejs's Issues

Could you please update evejs dependencies

  • I've got a project using evejs but npm audit warn me :
    found 10 vulnerabilities (4 low, 6 high) in 194 scanned packages
    10 vulnerabilities require manual review. See the full report for details.

All coming from evejs, hypertimer & distribus.
could you please update evejs dependencies :
here is npm audit report : https://github.com/scenaristeur/spoggy-graph/blob/master/audit

when I try "npm install --save enmasseio/evejs#develop"
I got

npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'evejs'
npm ERR! notarget
  • is there a project to migrate evejs to ES6 module ?

Broadcast, finding agents

Hello!

I'm happily using eve for my bachelor project.
I use pubnub to connect agents wherever they are to my network. They offer smart home capabilities to work together to get smart home logic working.
But then I'm stuck.
How can I dynamically find agents? I need something where I can find agents that offer a specific method.
At the moment I can only hardcode the agentId.
I use a special agent class to send actions to actors/sensors. This class should be accessed without knowing the Id. So a broadcast (or something like it) could send the request out and one of them sends an answer.

Especially this part of @josdejong answer is interesting:
When one agent is created by another agent, they can remember each other. When an agent is made part of some group or organization, it can see the other agents in the same group.
How does this work?

I also like the Publish-subscribe model described here: http://eve.almende.com/concepts/protocol.html
Are there any examples for that? I didn't seem to find any :-(

Thank you in advance!

delete an agent

Hello,

I am using the example : 'BabbleAgent' wich create an id for each agent and I am running my program on node red.
When I deploy the application again, the id still there, and an error occurs ... Is there a way to delete an agent after its creation?
In an old version here, there was a function (this.die()) but it doesn't work now (version 0.5.0)

Thank you :)

babble.tell does not generate a Block for decisions outside of evejs

It took me quite a while to figure this out. It seems only possible to use a babble.then on an agent.decision, when you require the babble package from within evejs.
I guess somehow the connection is handled inside of babble.

var babble = require('./../node_modules/evejs/node_modules/babble');

I was about to make a pull request to remove the babble package from the package.json, but I am not sure, if it is the best approach, since then some tests might not work.

Btw: That was the error log:

TypeError: Block expected as choice
at Decision.addChoice (c:\Thomas\Projects\eve\eve-agents\node_modules\evejs\node_modules\babble\lib\block\Decision.js:136:11)
at c:\Thomas\Projects\eve\eve-agents\node_modules\evejs\node_modules\babble\lib\block\Decision.js:84:10
at Array.forEach (native)

Multiple simulateous messages cannot be sent with websockets

To reproduce:

edit host2.js

agent2.sayHello('ws://localhost:3000/agents/agent1');

// into

agent2.sayHello('ws://localhost:3000/agents/agent1');
agent2.sayHello('ws://localhost:3000/agents/agent1');
agent2.sayHello('ws://localhost:3000/agents/agent1');

and edit HelloAgent.js line 26 to:

this.send(to, 'Hello ' + to + '!').done();

to see the error:

TypeError: Cannot call method 'push' of undefined
    at C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\lib\transport\websocket\WebSocketConnection.js:65:32
    at doResolve (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\node_modules\promise\lib\core.js:91:5)
    at new Promise (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\node_modules\promise\lib\core.js:71:3)
    at WebSocketConnection.send (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\lib\transport\websocket\WebSocketConnection.js:64:16)
    at HelloAgent.Agent._sendByProtocol (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\lib\Agent.js:233:25)
    at HelloAgent.Agent.send (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\lib\Agent.js:169:19)
    at HelloAgent.sayHello (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\examples\agents\HelloAgent.js:26:8)
    at Object.<anonymous> (C:\Dropbox\Almende\PHPstorm\Enmasse\evejs\examples\transports\websocket\host2.js:18:8)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

Without the edit of HelloAgent, you will only see one reply.

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.