Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 17 2019 11:12
    sdy8181 starred zettajs/zetta
  • Jan 16 2019 11:34
    cdiaz starred zettajs/zetta
  • Jan 16 2019 08:48
  • Jan 04 2019 17:25
    AdamMagaluk edited #368
  • Jan 04 2019 17:19
    sealedair-elliott commented #368
  • Jan 03 2019 03:38
    landlessness updated the wiki
  • Dec 21 2018 09:23
    crisslab commented #374
  • Dec 20 2018 22:58
    AdamMagaluk closed #374
  • Dec 20 2018 22:58
    AdamMagaluk commented #374
  • Dec 20 2018 21:37
    AdamMagaluk commented #374
  • Dec 20 2018 16:02
    crisslab opened #374
  • Dec 20 2018 06:56
    tigdw starred zettajs/zetta
  • Dec 17 2018 11:44
    MarcelOlivian starred zettajs/zetta
  • Dec 15 2018 07:20
  • Dec 12 2018 01:46
    Kishy-nivas starred zettajs/zetta
  • Dec 11 2018 14:10
    q6332139 starred zettajs/zetta
  • Dec 11 2018 12:11
    AdamMagaluk synchronize #373
  • Dec 11 2018 12:11

    AdamMagaluk on spdy-upgrade

    Add osx to travis (compare)

  • Dec 11 2018 03:08
    AdamMagaluk review_requested #373
  • Dec 11 2018 03:07
    AdamMagaluk opened #373
Kevin Swiber
@kevinswiber
@AdamMagaluk I think you’re the new Benevolent Dictator of Zetta. Any thoughts on @gcornetta’s question?
Bjarki Madsen
@bjerkins
@kevinswiber thanks !
Simon Vogl
@svogl
Hi all, I've played a little with Zetta and connected our Arduino-based line camera - there's a live plot: http://lab.voxel.at/zetta/zb/#/overview?url=http:%2F%2Flab.voxel.at:3338%2F
I have two data streams, one raw data, one with detection results. I'd like to update the detection result stream only if something interesting happens, but this freezes the output. I have no clue yet where this happens - should I look in the browser code or somewhere deeper?
Kevin Swiber
@kevinswiber
@svogl Do you know if this is a browser-only issue? Does a direct WebSocket subscription using something like wscat work as expected?
Simon Vogl
@svogl
@kevinswiber good question :) will try a few things and report…
The extensions per se are not too terrific, I just added a basic plot functionality to zb (https://github.com/voxel-dot-at/zetta-browser) , the device is also quite basic, reading from serial and forwarding what it gets (plus some basic computations; https://github.com/voxel-dot-at/zetta-liner if you want to peek )
Kevin Swiber
@kevinswiber
Ah, okay. There may be parts of the browser that don’t work well in Firefox. We pretty much only tested on Chrome, and there might have been some IE/Edge compatibility updates.
But I don’t recall.
Simon Vogl
@svogl
nah, have to revise - had it running for 10 minutes now and both work
still, seems to be some garbage collector issue or so
cross-browser stuff has been fun for >15years now ;)
Kevin Swiber
@kevinswiber
I remember doing browser-sniffing to enable/disable features between Internet Explorer and Netscape back in the late 90s. :D
“Best viewed with Internet Explorer"
Simon Vogl
@svogl
haha, yea - the ‘good’ old days ...
my MSc was based on some Netscape VRML plugin (beta, at that time…)
oh well.
need to rush off - will update once I found it.
Kevin Swiber
@kevinswiber
Great.
Simon Vogl
@svogl
Hmm, seems to work now but don’t ask why. Btw, what was the rationale to have data flowing from right to left in the graphs?
Kevin Swiber
@kevinswiber
@svogl So the latest data point ends up on the right-hand side and the X-axis reads as a timeline from left-to-right.
Simon Vogl
@svogl
agreed, and it makes sense to have a correlation between graphical and numeric values at the same end. Conceptuallz, I had more a data-cockpit like view in the back of my mind when I gave it a try first.
Simon Vogl
@svogl

seems there is a delta between code and docs: I tried to set 2 parameters (a, b) via map():

 .map('thresh', this.setThresh, [
                   {'type':'Number','name':'thresh'}
                   ,{'type':'text','name':'config'}
                   ] )

seems my callback gets called as setThresh(threshValue, configValue, cb()) instead of setThresh(propertiesMap, cb())

also, is there a way to set an initial value? I’d like to specify something like

   {'type':'Number','name':’thresh’, ‘value’: this.threshold }

?

Kevin Swiber
@kevinswiber
@svogl We discussed doing allowing a value in transition config a few years ago. Not sure where we ended up. I apologize for my fogginess. I haven’t been a Zetta maintainer in quite a while. Perhaps @AdamMagaluk knows.
I’d expect the above config to come back as setThresh(threshValue, configValue, cb). Can you point to the broken docs?
Simon Vogl
@svogl

Ok, I replayed my search; I started looking at https://github.com/zettajs/zetta/wiki/Device at the config.map() docs, which explains how stuff works with one argument; the documentation is consistent here with the behaviour, but adding an example with 2 could clarify the situation

In order to find out what happens (because my callback failed ( with a ‘cb is not a function prototype’), I tripped over the config.remoteUpdate(handler) which does pass a properties object, so I assumed the callback could do the same thing..

as for value: It’s used as a default value right now: When I leave a field in the web browser empty, the function gets called with this value.

the remoteFetch / remoteUpdate look pretty much usable for what I need ;)
多多指教
@toby20130333
Hi which's nodejs version for zetta?
My nodejs version is v8.9.3
but npm install zetta --save got some build warnning
Adam Magaluk
@AdamMagaluk
Use node version v6 instead of v8.
Uygar Dogac Ozdemir
@dogacozdemir

Hello! I have an issue about Zetta. Can someone help?
This is the first time I'm using Zetta and I'm trying to do the 'hello-world' tutorial. When I try to run index.js, continuously getting this error:

node:internal/modules/cjs/loader:361
      throw err;
      ^

Error: Cannot find module '/home/dogac/Desktop/projects/hello-world/node_modules/zetta/zetta.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:353:19)
    at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/home/dogac/Desktop/projects/hello-world/index.js:1:13)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/home/dogac/Desktop/projects/hello-world/node_modules/zetta/package.json',
  requestPath: 'zetta'
}

I saw a lot of topics like mine, tried everything but couldn't solve. I would be very appreciated if someone can help. Thanks!