Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Search found 8 matches
- Sat May 29, 2010 7:41 pm
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
got it, i had to add "x" to the FF btyes. Other questions are still unresolved though, see above.
- Sat May 29, 2010 7:38 pm
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
Ok,
So i have now tried to a sample command from the script for the first time with no real success.
I am trying to send the string:
#Power Commands
('PowerOn', 'Power On', '\x52\x45\x51\x38\x38\x43\x00\x20\x30\x20\x20\x20\x20\FF', None),
However on the port monitor i see the following going ...
So i have now tried to a sample command from the script for the first time with no real success.
I am trying to send the string:
#Power Commands
('PowerOn', 'Power On', '\x52\x45\x51\x38\x38\x43\x00\x20\x30\x20\x20\x20\x20\FF', None),
However on the port monitor i see the following going ...
- Sat May 29, 2010 11:10 am
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
See above...i apparently got the syntax wrong to get the "code" shown correctly on the forum so disregard the "[/code] at the beginning and end of the first value action class above. it should have been posted as:
class ValueAction(eg.ActionWithStringParameter):
"""Base class for all actions with ...
class ValueAction(eg.ActionWithStringParameter):
"""Base class for all actions with ...
- Sat May 29, 2010 11:07 am
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
So then i assume the valueaction class would be as follows also:
[/code]class ValueAction(eg.ActionWithStringParameter):
"""Base class for all actions with adjustable argument"""
def __call__(self, data):
self.plugin.serial.write(self.cmd + str(data))[/code]
Just so i can understand, in your ...
[/code]class ValueAction(eg.ActionWithStringParameter):
"""Base class for all actions with adjustable argument"""
def __call__(self, data):
self.plugin.serial.write(self.cmd + str(data))[/code]
Just so i can understand, in your ...
- Sat May 29, 2010 2:31 am
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
I had determined by trial and error that if i removed the [/b] the errors woudl go away, but your response confuses me (not that difficult to accomplish). Are you suggesting the command should be #1 or #2 below?
def __call__(self):
self.plugin.serial.write(chr(0x52) + self.cmd + chr(0xff))
def ...
def __call__(self):
self.plugin.serial.write(chr(0x52) + self.cmd + chr(0xff))
def ...
- Fri May 28, 2010 4:23 pm
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
ok, i will try to work with that, but in the cmdaction and valueaction code you posted i placed in the script and i get a syntax error on the following lines (or at least this is where the error is reported)
def __call__(self):
self.plugin.serial.write(chr(0x52)[/b] + self.cmd + chr(0xff))
i ...
def __call__(self):
self.plugin.serial.write(chr(0x52)[/b] + self.cmd + chr(0xff))
i ...
- Fri May 28, 2010 2:05 am
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Re: Noob Help - Serial Plugin
Thanks for help. I am working on this, and have incorporated some of your comments, but i have some questions.
1. When i place the begin and end characters in the CmdAction and ValueAction functions do i still need to place these bytes in the command list section. I am assuming i still need to ...
1. When i place the begin and end characters in the CmdAction and ValueAction functions do i still need to place these bytes in the command list section. I am assuming i still need to ...
- Sun May 23, 2010 8:38 pm
- Forum: Coding Corner
- Topic: Noob Help - Serial Plugin
- Replies: 11
- Views: 5532
Noob Help - Serial Plugin
Hello all,
I am in the midst of building a multiroom multi source audio distribution system for my house and need some help. I have a multi-source, multi zone amplifier that is controllable via RS232. Ultimately i want to communicate to this device via event ghost. The front end will be XLobby. I ...
I am in the midst of building a multiroom multi source audio distribution system for my house and need some help. I have a multi-source, multi zone amplifier that is controllable via RS232. Ultimately i want to communicate to this device via event ghost. The front end will be XLobby. I ...