-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipsal C-bus incorperation #213
Comments
Hey Jayden
It is very possible to add such a microservice to Lucida. Just follow the
instructions on the README file on how to add a microservice. In the
microservice, when you receive the text you can use lambda functions to
grasp with device to control and what action to take.
Kamal
|
Hey KamalGalrani, first of all thanks for replying :) Best regards, Also I probably need to give credit here, the uploaded files are made by Greig Sheridan for a project called "C-ChangePHP" |
Hey I have a lot in my platter. Won't be able to help much except solving issues. But I can guide you through the process of making a PHP microservice! That's the best part about Lucida. You can write a microservice in any language of your choice. Installing Lucida with PHPThe support for PHP isn't built into Lucida by default. So you need to take that into account while installing. If you haven't installed Lucida or Apache Thrift from source on your system (not even once):Type the following commands in your terminal.
If you have installed Lucida or Apache Thrift on your system (even if in past):
Interacting with Lucida coreHave a look at creating a microservice. PHP Thrift tutorial can be found at https://thrift.apache.org/tutorial/php Writing the logicYou can find some notes on parsing natural language here. You can parse simple sentences using lambda expressions. PHP supports anonymous functions which come in handy while writing lambda expressions. Kamal |
Hey, is just like to start off my saying I am kinda new to this stuff so any help would be appreciated.
My house And literally everything inside it is controlled by a system called C-bus which was created by clipsal. In this system we have network interfaces that brige a network between your regular home internet and a c-bus network which is like your normal house internet with rj45 cables linking diffrent machines to a hub, in this cause we link solid state relays together with switches and everything is powered with something similar to power over Ethernet (refering to the switches being powered by this and not the lights themselves that run on 240v) this allow us to turn lights on, off, dim them (the system is incredibly modular and you just need to run cat 5 cable not 240v cable to all the switches in your house) and do literally anything we want through software provided or through sending commands to a network interface through telnet. Currently I have got made a web application that uses telnet to connect to this network and turn on or off lights as I wish but I was thinking the other day it would be amazing if I could link it to Lucida to get it to turn off lights on command through speech or even through text if I was to say "turn the laundry lights off". Thw idea is it would somehow connect to the clipsal system and send a telnet command saying turn the laundry lights on, but sadly I do not have that much experience in lucidia so I have no idea how to make this possible. A few months back I tried playing with the web front end and things went downhill fast as soon as I tried to edit anything. It would be great to hear people's suggestions and I'm currently on my phone so I don't have access to example commands right now or my current web interface I use to connect to the network so I'm sorry to be a pain. I'll try upload my files tomorrow as an example of how the web interface works with telnet using a program called c-gate. If you ever get the chance go check our these Clipsal c-bus systems, they are incredibly smart but also kinda on the high price side as a 12 channel relay usually costs over $1000 And that's just for a relay and not dimmers or network interfaces but they are great systems when they work.
Thanks in advance, I will post my files tomorrow on this thread
Best regards,
Jayden
The text was updated successfully, but these errors were encountered: