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 96 matches
- Thu Jun 01, 2017 1:10 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Really? Sounds pretty odd to me, I get the 20 volts but AC seems weird to me. Is that 60hz just like the grid?
- Thu Jun 01, 2017 12:12 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Well, you can wire it straight to the button in most cases. But perhaps your door bell has a slightly more eccentric make
Most door bells I've seen here are 12v dc
Most door bells I've seen here are 12v dc
- Thu Jun 01, 2017 8:28 am
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
That's quite a cool hack 
I would say a universal sensor is easier though: https://www.fibaro.com/en/products/univ ... ry-sensor/
I would say a universal sensor is easier though: https://www.fibaro.com/en/products/univ ... ry-sensor/
- Wed May 31, 2017 9:35 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
What also works great with the ladies is a few automated curtains combined with domoticz and homekit-bridge.
Nothing gets that engine going better than "Hey siri, close the curtains" and seeing the curtains close in front of your eyes
Nothing gets that engine going better than "Hey siri, close the curtains" and seeing the curtains close in front of your eyes
- Wed May 24, 2017 9:17 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
You, sir, are a poet
Thank you for making me smile this day
And yes, you may call me wolphie (you wouldn't be the only one either).
And yes, you may call me wolphie (you wouldn't be the only one either).
- Tue May 23, 2017 10:02 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Yes, that's exactly what it's supposed to do.
I've actually done a little test and that's what happens for me:

As you can see, it's only triggering the volume changed event when it's actually changing (I pressed the button twice in the screenshot above).
I've actually done a little test and that's what happens for me:

As you can see, it's only triggering the volume changed event when it's actually changing (I pressed the button twice in the screenshot above).
- Mon May 22, 2017 10:12 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
The reason for that is that you might wish your code to respond to any volume change (i.e. MVL) or simply to a specific volume only (i.e. MVL32). It's probably a design decision made by my predecessor a long time ago so I'm a bit worried about changing it (it could break people's scripts) but I ...
- Mon May 08, 2017 7:12 am
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Yes indeed. When it comes to EventGhost listen to the amazing answers by kgschlosser 
Thanks for your awesome work!
Thanks for your awesome work!
- Sun May 07, 2017 3:54 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
I typed that one from my phone, so here's a version with a bit of code to illustrate:
some_global = 123
# This works:
def some_function():
print('some global: ', some_global)
# This doesn't because you're trying to use a non-existing local variable called some_global
def some_not_working ...
some_global = 123
# This works:
def some_function():
print('some global: ', some_global)
# This doesn't because you're trying to use a non-existing local variable called some_global
def some_not_working ...
- Sat May 06, 2017 4:16 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Variables are global is they are declared outside of functions/classes/etc.
If you want to use global variables inside of a function you can use the global statement. Without it you can read global variables but not write them.
The name of the variable has no influence. The exception to this is ...
If you want to use global variables inside of a function you can use the global statement. Without it you can read global variables but not write them.
The name of the variable has no influence. The exception to this is ...
- Sat May 06, 2017 8:24 am
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Ah, now I see what you mean. He probably won't need it here but it's useful to know indeed
Similarly, don't forget about unichr for the unicode version of that command
Similarly, don't forget about unichr for the unicode version of that command
- Fri May 05, 2017 3:24 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
Yes, but is it relevant here? (assuming you meant octal btw)kgschlosser wrote:but Wolf.. you forgot about ordinal
- Fri May 05, 2017 11:09 am
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
LOL
You're welcome
You're welcome
- Tue May 02, 2017 10:42 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
It depends on the programming language, but for Python you can do the following
Code: Select all
# Assuming x is a hexadecimal string:
x = '123'
# Convert to decimal from hexadecimal string
y = int(x, 16)
# Convert to decimal from decimal string
z = int(x, 10)
# Convert number to hex:
x = hex(123)
- Tue May 02, 2017 6:26 pm
- Forum: Coding Corner
- Topic: OnkyoISCP plugin
- Replies: 195
- Views: 114546
Re: OnkyoISCP plugin
In that case it's simple hex to decimal calculation actually :)
0x58 = 88
Most programming languages have a feature built-in for that but effectively it comes down to 16 * the first digit + the second digit.
In this case: 5*16 + 8
The total range in your case:
0x00 = 0
0x01 = 1
0x02 = 2
0x03 = 3 ...
0x58 = 88
Most programming languages have a feature built-in for that but effectively it comes down to 16 * the first digit + the second digit.
In this case: 5*16 + 8
The total range in your case:
0x00 = 0
0x01 = 1
0x02 = 2
0x03 = 3 ...