Will Zetta fit my use case?

68 views
Skip to first unread message

Allan Brazute

unread,
Mar 1, 2017, 2:37:56 PM3/1/17
to zetta-discuss
Hi.

With the rise of Raspberry Pi Zero W I just got the incentive I needed to DIY. I was researching JS IoT frameworks that would help me archive it and came accross ZettaJS.
In fact the first JS framework that cought my attention was the deviceJS [http://devicejs.org/], the quick examples show exactly what I have in mind. But the guys just seems to get stuck before release something usable.

So my question is if Zetta would fit this idea I have on how my home devices should work.

For example:
Lets assume I have 3 rooms, each one with a Raspberry Pi Zero W connected over WiFi.
- DevA has a LCD
- DevB has a temperature sensor
- DevC has a light switch


First case:

- On DevA I "ask" whats the temperature
- It will acknowledge it and that it does not have the means to answer but that DevB has
- It will pass the "question" to DevB that will fulfill the request
- DevA will "answer" me with data it acquired from DevB


Second case:

- On DevB I "ask" to switch off the light
- It will acknowledge it and that it does not have the means, but that DevC has
- It will pass the "action" to DevC that will fulfill the request
- DevB will "see" it does not have an interface to inform me, but DevA has
- DevB will then pass the "answer" of the fulfilment to DevA to it to inform me with the data it acquired from DevC


This are just two quick examples of some ideas I would like to implement. 
There is someone that could tell me if Zetta is the one to me to pursue?

Thanks.
Message has been deleted

Scott Erholm

unread,
Mar 7, 2017, 11:30:07 AM3/7/17
to zetta-discuss
Yes, you have the basic concepts right on.  The one simplification is the idea of "passing" actions onto the proper server. What you can do is peer all three servers together, and then an app running on a peer server can just perform a wildcard query something like:

var temperatureQuery = server.from('*').where({name:'temp_sensor'});

We like zetta because it has much of the needed infrastructure in place, and makes it easy to write device drivers and server apps.  On of the best node.js-based frameworks available.
Reply all
Reply to author
Forward
0 new messages