Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nosehook

Pages: [1]
1
Bug Reports / VC/TTS does not speak the first few words
« on: June 20, 2016, 10:02:40 AM »
I recently noticed that VC does not say the first few words.
For instance: It is fourteen fiftyfive is spoken as teen fourtyfive.
I do not know if this is a VC issue or Win 10 or combination, but thought it was best to ask here...

2
Feature Requests / Harman Kardon plugin
« on: November 01, 2015, 04:43:54 PM »
I recently bought a Harman Kardon BDS 880 set and it has WIFI and an ethernet port. Thinking there might be protocols for it to communicate via a network I have been looking around but can not find much. I know it supports DLNA and airplay etc, so I assume there is a way to control it via a network. There are also apps for smartphones for it.

I know there are plugins in VoxCommando for Onkyo and Sonos, so I was wondering if there is a way to make a plugin for HK too.

If this has already been done (or if there is a working plugin for Event  Ghost), please advice and I am happy to use that.

Regards,

Freek

3
General Discussion / Re: ping phones?
« on: September 03, 2015, 12:18:28 PM »
Hi Nime5ter,

Thank your for the help. I tried a more improved version of that script and that had some issues and then I made the mistake putting it in a 3.4.x. python shell.

I have read the wiki with regard to Python and VC and the script works for now, thank you again!

4
General Discussion / Re: ping phones?
« on: September 02, 2015, 05:02:47 PM »
Love the idea that has been proposed and have been trying to run the script, however...

My knowledge of Python is minimal, although I have been brushing up my knowledge and studied a book or two.
The problem I seem to run into is that the Python version on my computer is newer than this piece of code and some commands are changed and/or renamed, could this be true?

Also, what version of Py does VC run?

Hope you can help me out!

5
VoxCommando Basics and Core Features / Re: storing integers
« on: August 25, 2015, 03:51:01 AM »
Thanks gentlemen! That really helped

The code does what it needs to do now (changes/expansion pending) and looks like this:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<commandGroup open="True" name="ip scan" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="1393" name="ip scan 1" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="1" loopMax="0" description="">
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>ip</param>
        <param>0</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TriggerEvent</cmdType>
      <params>
        <param>ip scan 2</param>
        <param>{i}</param>
      </params>
      <cmdRepeat>7</cmdRepeat>
    </action>
  </command>
  <command id="1400" name="ip scan 2" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>result= {1} + 105</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>value</param>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Launch.Capture</cmdType>
      <params>
        <param>C:\Windows\System32\ping.exe</param>
        <param> -n 1 -w 1000 192.168.0.{var.value}</param>
        <param>True</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>\s(\d+)\s\W0\W\sloss</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>LastActionSuccess</ifType>
      <ifParams>&amp;&amp;</ifParams>
      <then>
        <action>
          <cmdType>PY.ExecString</cmdType>
          <params>
            <param>result = {var.ip}+1</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.SetVar</cmdType>
          <params>
            <param>ip</param>
            <param>{LastResult}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.SetVar</cmdType>
          <params>
            <param>online{var.ip}</param>
            <param>192.168.1.{var.value}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>OSD.ShowText</cmdType>
          <params>
            <param>hit {var.ip} at address {var.online{var.ip}}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <event>ip scan 2</event>
  </command>
</commandGroup>

The range is now minimal for trail purposes only.
Thank you for the great support. I should probably start to study Python...

6
VoxCommando Basics and Core Features / storing integers
« on: August 24, 2015, 04:44:34 PM »
I assume I am not the first one, however I have run into a challenge I can not resolve.
In order to understand the program better, I am trying to make a network scanner.
What I want to do is to scan 192.168.0.{1}, where {1} is 100 to 200 (this part I am succesfull).
What I also want to do is to increase a counter every time I get a response via ping, but the problem I run into is that result.setvar seems to create a string (as does RegEx), is this correct? I am unsuccesful in retrieving the integer (whole number) from that string (I am new to Python) and do a +1 to it.
The idea is to store the first hit (IP-number) in IP{var.nr}, so that if I later recall IP{3} I get the IP-nr that was the 3rd hit
Is there a workaround?

Hope someone can point me in the right direction  :)

7
Thank you for the warm welcome  :)

It appears I did not check all the settings I should have  :bonk . The show all events marker was unchecked and after I unchecked the port 9090 option it seems to work!

Thanks for helping out and on another subject, I do like your video on sending and pulling data to and from different computers!


8
Hi,

I have a small problem, on my laptop I have Kodi 15.1 and VC V2 beta running. When I hit the update library on my laptop I get an event for start and finish.
On my HTPC I have the same setup, however I do not get those and when I want to run the VC add-on I get the following n the log:

8/22/2015 7:30:28 PM   304   [plugin] prepare socket for notifications
8/22/2015 7:30:28 PM   304   [plugin] Creating events
8/22/2015 7:30:28 PM   304   [plugin] Opening a connection to XBMC
8/22/2015 7:30:29 PM   305   [plugin] Could not open a connection to XBMC|No connection could be made because the target machine actively refused it 127.0.0.1:9090
8/22/2015 7:30:29 PM   305   [plugin] Failed to open socket
8/22/2015 7:30:29 PM   305   Action ERROR: Connect failed

What do I need to change to make it work?
Thanks in advance!

Pages: [1]