ARCHIVE
LinuxMCE Forums
June 19, 2013, 11:17:30 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Rako Lighting Control  (Read 1401 times)
archived
Hello, I'm new here

Posts: 0


View Profile
« on: June 15, 2006, 03:04:51 pm »

I'm plaing on using the Rako range of lighting and device control system. I've got a RS232 unit that plugs into the server and can download a pdf with the  commands from here http://www.rakocontrols.com/pdf/rs232_command_summary_v1-1.pdf

What steps should i do to start to get this device and its lights working??
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #1 on: June 17, 2006, 10:23:04 am »

Ok i tryed to make a new device for the rs232 interface, but got really confused:) i'll try again later.
In the mean time i've just added my dimmers as GSDs which seems to be working as i set them as lights so they recive the right commands (ok i've not explained that very well)

i'm having problems with the set level commands, here's my ruby code

Code:

 5:def cmd_184(level)
   6:@returnParamArray.clear
   7:conn_.Send("HOUSE:1\r")
   8:
   9:conn_.Send("ROOM:4\r")
  10:
  11:lev = "LEVEL:"
  12:lev += $1
  13:lev += "\r\n"
  14:conn_.Send(lev)
  15:return @returnParamArray
  16:end


And i'm getting this error

Code:
Error while calling method: Cannot call class method: cmd_184
error: can't convert nil into String, line: 12
backtrace:
        in: (eval): 12
        from (eval):12:in `+'
        from (eval):12:in `cmd_184'


How do i take the level value passed to the command an include it in my output??

Cheers
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #2 on: June 17, 2006, 10:55:27 am »

ok, so i posted too quicklly:)

all i needed to do was learn some ruby:)
this is working fine
Code:
conn_.Send("LEVEL: #{level} \r\n")


now just need to add some more bluetooth adapters and see if my lighst follow me around:) Today is a good day
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Pluto provided a snapshot of their forums with approximately 5,000 posts in February, 2007 when LinuxMCE branched off. Browse those forum posts in the Archive section. Those posts have been included in the search engine and can be found with keyword searches.