Code Monkey home page Code Monkey logo

Comments (5)

tortoo avatar tortoo commented on July 21, 2024

In Website Agent:

  "template": {
    "xyz": "{% assign city = 'Tokyo' %}{{ weather[city] }}"

Also got nothing.

from huginn.

tortoo avatar tortoo commented on July 21, 2024

Also failed in JavaScript Agent.

Agent.receive = function() {
  var events = this.incomingEvents();
  for(var i = 0; i < events.length; i++) {
    var a = 'Tokyo';
    this.log(this.kvs.weather[a]);
  }
}

And the log:

[00:00:00] INFO -- : Dry Run started
[00:00:00] ERROR -- : JavaScript error: TypeError: Cannot read properties of undefined (reading 'Tokyo')
[00:00:00] INFO -- : Dry Run finished

The Key Value Store Agent has been set to the controller of JavaScript Agent.

Unable to reproduce the results here. Maybe our version is different from yours? @knu

from huginn.

tortoo avatar tortoo commented on July 21, 2024

The problem is about Dry run, there is no output anyway. It seems that it is not connected to dry run?

In the generated event, the data was successfully obtained.

from huginn.

jjeffers avatar jjeffers commented on July 21, 2024

@tortoo was your original problem addressed then? Perhaps we can close this?

from huginn.

tortoo avatar tortoo commented on July 21, 2024

Sorry to see this message so late. Problem partially solved, still hoping to be able to call variables of Key Value Store Agent in such as Website Agent and JavaScript Agent, not just when generating an event. Thank you guys very much for your efforts!

from huginn.

Related Issues (20)

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.