These are chat archives for ractivejs/ractive

25th
Sep 2018
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:31
image.png
just a little bit more, I'm coming back :)
(this is "the" device where Ractive runs inside :)
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:38
(just not yet :))
kouts
@kouts
Sep 25 2018 16:44
wow!
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:44
thanks! :)
kouts
@kouts
Sep 25 2018 16:44
what is it's use? Is it like an industrial controller of sorts?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:45
yess. the family is called PLC (programmable logic controller). they are used for machine controlling, milling, all sorts of automation tasks
kouts
@kouts
Sep 25 2018 16:46
Ah it's a PLC ok!
nice work, it seems it's also rack mountable right?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:47
yes, it is
kouts
@kouts
Sep 25 2018 16:47
but what kind of size is it? like 1/4 U?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:47
you know that stuff?
kouts
@kouts
Sep 25 2018 16:48
I have worked in the plastics industry in the past
in IT
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:48
dimensions of this model are 90mm x 35mm x 90mm
kouts
@kouts
Sep 25 2018 16:49
will you handle production for these units?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:49
very small one
yes
kouts
@kouts
Sep 25 2018 16:49
nice
what's the board like, do you have pics?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:49
nope, not currently
unfortunately all development stages are performed by myself, so things have to wait in the queue :/
kouts
@kouts
Sep 25 2018 16:51
You seem to posses many talents :smile:
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:53
thanks :)
kouts
@kouts
Sep 25 2018 16:54
let me guess. some kind of FPGA inside?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:55
aahhah :) no, it doesn't have an FPGA. actually, it's a soft plc where a real time linux runs and all the applications run on top of it
kouts
@kouts
Sep 25 2018 16:56
so what kind of cpu does it have is it x86 ?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 16:56
the additional circuit has one or more (depends on the use case) microcontrollers and the industrial grade (galvanically isolated) interfaces
arm, raspberry based
kouts
@kouts
Sep 25 2018 16:56
nice!
great to see Ractive in different applications
Joseph
@fskreuz
Sep 25 2018 17:19
Oooh! Nice!
Reminds me of a dev I knew who used a framework (something like Backbone/Ember) on router admin software.
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 17:26
hmm, yes, they seem somewhat similar
Joseph
@fskreuz
Sep 25 2018 17:27
Does it just serve Ractive (like router admin?) or is it the actual client (like a NUC/Pi/ChromeBox?)?
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 17:28
depends on the device model
this one is the server (first variant)
I have plans to continue the development of our panel pc model. long time ago ractive was performing well, I suppose it might be better already :)
it will be something like:
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 17:39
image.png
with a lot nicer interface, of course :)
Joseph
@fskreuz
Sep 25 2018 17:53
Ooooh! Nice! :D
I've always wondered how those kinds of hardware are built. #TodayILearned
We have this dashboard at work that displays company stats. It runs in Chrome on a Pi 24/7 but crashes often (probably due to memory leaks, it's not Ractive tho :grin: ).
Does this happen to you? And if so, how do you deal with this?
Chris Reeves
@evs-chris
Sep 25 2018 18:02
nice!
I've wanted to do a home automation server with a ractive interface for quite some time, since all the ones I've tried out are horrible
it's a big hill to climb though, and home automation is moving toward tivoization faster and faster
I live in an area with terrible ISPs, so that does me no good even if I managed to disregard the horrible security record of IoT stuff
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 18:19

Does this happen to you? And if so, how do you deal with this?

Nope, not currently. It used to be, though. In my case the memory leaks were caused by ssh retries and some python related issues (the framework I use was implemented in Python first)

these days these devices run 24/7 and has no issues
Joseph
@fskreuz
Sep 25 2018 18:22

these days these devices run 24/7 and has no issues

Nice. :thumbsup:

Cerem Cem ASLAN
@ceremcem
Sep 25 2018 18:22
I have additional plans to run containerized applications where supervising will be more efficient

I've wanted to do a home automation server

I've heard a man, who was an automation engineer and made his house fully automated and some time later removed all stuff. they asked the reason, he said "I've built these to serve me but in the end I find myself serving them" :)

Cerem Cem ASLAN
@ceremcem
Sep 25 2018 18:27
anyway, @evs-chris , what do you want to control in the house? and would you share your experiments with me? maybe directly, or, I don't know
Chris Reeves
@evs-chris
Sep 25 2018 18:49
I have zwave switches, outlets, relays, and thermostats through most of the house
right now they're hooked up to a vera, but the ui takes forever to load
it's still one of the better controllers though, as it doesn't require an internet connection to function
I have an insteon usb stick that I've plugged into my media server running linux and successfully paired it to a switch to control it via openhab
I don't really like openhab either though
documentation for these things is pretty awful, unfortunately
I still haven't really progressed beyond "hey can I even get a list of devices off this controller" yet
Chris Reeves
@evs-chris
Sep 25 2018 18:55
I think it would be pretty slick to tie the automation and media servers together with chromecast/upnp to be able to control everything through the same ui
there are some node modules out there for casting and upnp, but they look like mostly poc stuff
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 19:34

but the ui takes forever to load

We've overcame this problem with ractive-synchronizer :))

as it doesn't require an internet connection to function

interesting. I'm not sure why the others require internet connection o_O

Cerem Cem ASLAN
@ceremcem
Sep 25 2018 19:43

openhab: I'm hearing this for the first time. I need to take a deeper look to talk about.

insteon usb stick

Too much magic to me, but if it's working for you, then it's okay.

documentation for these things is pretty awful, unfortunately

documentation... I think this is a very hard part :D

I don't know chromecast and I really don't understand how upnp works, but there are very handy solutions to make devices "plug and play" (I'm using https://github.com/aktos-io/link-with-server for this kind of functionality)

control everything through the same ui

this is the interesting part. How do you plan that? For example, do you want to control everything with a Ractive powered ui?

Cerem Cem ASLAN
@ceremcem
Sep 25 2018 19:48
...on the same page, buttons that are side by side
Chris Reeves
@evs-chris
Sep 25 2018 19:49
probably a cms-style lay your own controls out sort of thing
"I want a page for the living room with the lights, thermostat, and media controls for the tv"
I think the vera ui is a giant jquery thing that's baked into the firmware
the media and zwave controls are pretty easy to set up as services once you get the communication between the chromecast/upnp and zwave controller down
then the ui just has to keep up with the states and hit the right endpoints when the user interacts
redis and websockets make keeping up with state in the ui pretty easy across node clusters
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 20:18
I'm not sure I could understand the desired behavior
besides the protocols, what should be the target product that would fit your needs?
Chris Reeves
@evs-chris
Sep 25 2018 20:20
at this point, a page accessible from my phone would work
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 20:22
okay, you have a page
here it is: Playground
what would you want to do with that page, for example, control the living room lights?
Chris Reeves
@evs-chris
Sep 25 2018 20:37
lights dimmer slider, temp ac on/heat on, currently playing title with play/pause and volume for the living room example
oh, and door lock/unlock
most rooms are just lights in my house, but lots of people also have fans and radiators
possibly tvs and stereos
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 20:39
okay. next cruical question: do you want to develop your ui by yourself, or would you prefer a drag-n-drop style ui builder? (second does not exist yet, but pretty close)
Chris Reeves
@evs-chris
Sep 25 2018 20:42
I would probably want to myself, but in my experience that's well beyond most consumers
they need drag and drop onto a grid of some sort
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 20:43
both is okay with me, because 1. I want to provide an API to the developers, like you, 2. I'm not interested in end users :)
Chris Reeves
@evs-chris
Sep 25 2018 20:44
fair enough :)
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 20:45
really, 2nd part is handled with "projects" in my case. customer describes his/her use case, we prepare a project for the job and build the system, in "key ready" manner
so, there is 1 more step here: choosing/integrating with the hardware. as far as I could understand, you have all the necessary hardware at hand
Chris Reeves
@evs-chris
Sep 25 2018 20:46
most products in this space right now have a sort of list of what's available and you check off what you want to see on a particular page and order it in the list
integrating with the hardware is where I stalled out for lack of time
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 20:50
I think I can handle the integration part easier than you, so let me try a POC application. you had instaon, and I found this one: https://blog.automategreen.com/tag/nodejs/
I'm not sure if it works well or not, though. as we have a pretty good framework, all we need to do is creating a driver for dcs for new devices. rest of the system works as usual
then all you need to learn is Ractive. it's pretty easy, I can assure you. then you may start building any webapp according to your needs
:P
Chris Reeves
@evs-chris
Sep 25 2018 20:56
I remembered incorrectly :D... this is the controller I have https://www.amazon.com/Aeotec-Z-Stick-Z-Wave-create-gateway/dp/B00X0AWA6E
I have some insteon switches
looks like that hub would be easier to use though, as it skirts the wacky serial interface required to talk to the controller and just gives you http
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 21:01
here is something after a quick search: https://github.com/ltoinel/ZWave2MQTT

looks like that hub would be easier to use though

you mean, using ZStick is easier because it has an http interface, right?

Chris Reeves
@evs-chris
Sep 25 2018 21:03
oh no
it's definitely a serial thing
the hub has an http interface, as does the vera lite
I wish the zstick had an http interface :)
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 21:04
hm. okay. you did a search already, I guess. you mean like /dev/ttyUSB0 serial, right?
Chris Reeves
@evs-chris
Sep 25 2018 21:06
yes
I've poked at it a bit before
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 21:06
nice! I found something that says it uses zigbee under the hood
I love serial things
Chris Reeves
@evs-chris
Sep 25 2018 21:07
yes it supports zigbee, zwave, and I think one other protocol that I forget
I have all zwave stuff because zigbee was a bit less standard when I started
lots of incompatibility between mfgs
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 21:11
If you could setup a raspberry (or like) and provide an ssh connection, I may poke around whenever I find time
Chris Reeves
@evs-chris
Sep 25 2018 21:12
I've been meaning to get a new pi for a while
when I get round to it I'll shoot you a message
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 21:13
okay then
Chris Reeves
@evs-chris
Sep 25 2018 21:13
may be a while, cause I've got several major projects piling up from the old day job
Cerem Cem ASLAN
@ceremcem
Sep 25 2018 21:14
no problem, whenever you get the device and time, just let me know