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.


Topics - OklahomaGreyBeard

Pages: [1] 2
1
MediaMonkey / Two for Tuesday
« on: June 04, 2015, 02:11:52 PM »
I have a macro I'm working on that uses the doubleup function on an auto playlist. The problem is sometimes that playlist will contain a song that is the only song by that artist I have. I wonder is there a way to manually run the double up and have it remove a song from the list if there is no matching artist?

Just brainstorming...

2
VoxCommando Basics and Core Features / Scrape, unexpected error
« on: May 22, 2015, 12:06:14 PM »
I'm trying a program (sleep on lan) on my plex server that will let me hibernate or sleep the server from a remote computer via http. I setup a macro to scrape the url and it pauses VC for a couple of minutes then throws an error and continues with the macro.  Putting the same url in chrome or ie on the VC machine works fine.

The url is http://92.168.11.205:7770/hibernate which is the ip of the plex server and the port the sleep on lan program is running. using /sleep gives the same thing.

here's the info from the log after the error.

Code: [Select]
5/22/2015 9:52:35 AM 373 Action:  Scrape - http://192.168.11.205:7770/hibernate
5/22/2015 9:52:35 AM 373 [action] Scrape:http://192.168.11.205:7770/hibernate

5/22/2015 9:54:15 AM 386 [error] Scrape: unexpected error

5/22/2015 9:54:15 AM 387 unexpected error in action: Scrape
System.NullReferenceException: Object reference not set to an instance of an object.
   at eval_᜖.eval_ᜂ(String[] A_0)
   at eval_d.eval_ᜃ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_d.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)

running in chrome the response from the loaded url is:

Request accepted for execution: hibernate

More info: http://www.ireksoftware.com/SleepOnLan

3
XML Exchange / Media Monkey Artist Info
« on: May 13, 2015, 01:20:45 PM »
I took nime5ter's wikipedia command and adapted it to get more info on the currently playing band/artist on Media Monkey. I'ts currently setup to pause MM, read the first paragraph about the band/artist then start playing MM again. If you prefer you could easily change it to give the info on OSD instead.

I added (band) to the search results to help get the right band but then had to add a check for individual artists.

The next goal is to  have it ask Shall I continue? at the end of each paragraph and either stop or continue depending on the response.

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<!--C:\VOXCommando\export\VcGroup_MM Wikipedia.xml-->
<!--This commandGroup xml file was exported from VoxCommando-->
<VoiceCommands version="2.1.4.5">
    <commandGroup open="True" name="MM Wikipedia" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="1165" name="Artist Wikipedia Info" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Stop</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.Pause</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.CurrentSongData</cmdType>
                <params>
                    <param>Artist</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Select</cmdType>
                <params>
                    <param>newwiki</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Navigate</cmdType>
                <params>
                    <param>http://en.wikipedia.org/wiki/{LastResult}(band)</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Show</cmdType>
                <params>
                    <param>True</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Wait</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.ElementRegex</cmdType>
                <params>
                    <param>p</param>
                    <param>&lt;b&gt;</param>
                    <param>False</param>
                    <param>True</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.GetText</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <params>
                    <param>{LastResult}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{LastResult}&amp;&amp;Other reasons this message may be displayed:</ifParams>
                <then>
                    <action>
                        <cmdType>MM.CurrentSongData</cmdType>
                        <params>
                            <param>Artist</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.Navigate</cmdType>
                        <params>
                            <param>http://en.wikipedia.org/wiki/{LastResult}</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.Wait</cmdType>
                        <params />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.ElementRegex</cmdType>
                        <params>
                            <param>p</param>
                            <param>&lt;b&gt;</param>
                            <param>False</param>
                            <param>True</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.GetText</cmdType>
                        <params />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <action>
                <cmdType>Results.RegExReplace</cmdType>
                <params>
                    <param>\(.*?\)</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.RegExReplace</cmdType>
                <params>
                    <param>\[\d+\]</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <params>
                    <param>{LastResult}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.Play</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Dispose</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>tell me about this artist</phrase>
        </command>
    </commandGroup>
</VoiceCommands>

Best software purchase I think I've ever made...  :biglaugh

4
Integration Ideas / Honeywell IP Thermostats
« on: May 12, 2015, 10:23:49 PM »
I'm finding out that home automation products that REQUIRE the cloud are items I really don't want. However, if you are like me and have a Honeywell IP Thermostat and use http://mytotalconnectcomfort.com to control it remotely, I've created a VC group that will give you basic controls. I personally don't use the built in scheduling on the thermostat, and with a few tweaks, you could probably use this to do it.

This is my first real setup using RoboBrowser to control anything and there may be a few things that could be done better. If you see anything let me know. The only real issues were the site times out and logs you out and they periodically put up an upcoming maintenance message that broke getting the current temp and setting it to a specific temperature. Those issues have been fixed I believe but here it is just to share.

You need to manually run the command Run Once Login and in the browser window that opens, login and check the save login info bix. It will not save the password however to once you've logged in edit the Login To Website Command and enter your password in the first line for the variable MTCCPass. save it and restart VC.

-GB

5
Command Builder Reference / Variable looping
« on: May 11, 2015, 11:51:56 AM »
I've tried playing with the add loop function in CB and I don't know if I'm not understanding it, or if I'm using it for the wrong thing.  What I need is in my home cooling RoboB session, it can tell me what the current setting is. What I'd like to be able to do is say "set the room temperature to 72" it then looks to see it's currently at 80, does the math and clicks the down button 8 times then clicks submit. I can do everything including figuring out how many times to click the button (and the correct button depending on if it needs to go up or down) but it's setting the amount of time it clicks I can't seem to get.

6
Command Builder Reference / Call another command and return
« on: May 11, 2015, 11:30:13 AM »
Can VC jump like Event Ghost? I have a RoboB command I'm working on that requires logging in to the server (mytotalconnectcomfort.com) and have everything working perfectly except the page expires after a certain amount of time and defaults back to the login page.

I can eliminate that by having each command login, run the commands and log out. When I started though (before I knew it timed out), I created a command that creates the browser session and logs in and the other commands just select that browser session first. If I could tell each command to "jump" to that login command then "return" when it's done it would save a lot of time in creating each command to duplicate that login session as well as if I needed to change the password for some reason I would only have to change it in one place.

7
Other Plugins / TTS.Speak oddities
« on: May 09, 2015, 10:10:26 AM »
I'm still figuring out some of the idiosyncrasies of the TTS engine (in my case using IVONA for that male British butler sound) and have one I can't figure out. If I use {LongDate} I would expect to hear Saturday May ninth two thousand fifteen. Instead I get Saturday May Oh Nine Tee H two thousand fifteen.  On the first I got oh one ess tee and the second I got oh two en dee. What can I do to get it to 1, drop the leading zero "oh" and tee H to pronounce as eighth ninth, etc.?

I think it will have something to do with  the info here http://developer.ivona.com/en/ttsresources/ssml/ssml.html

specifically

2.8. say-as Element
..
date — Interpret the value as a date. The format attribute must be set to any of the following: mdy, dmy, ymd, md, dm, ym, my, d, m, y. The VXML date format YYYYMMDD with ?? is also supported. In that case, the format attribute is ignored.

but does that have to be done at the programming level of the {LongDate} variable, or do I need to create something in python that will create a custom date text for IVONA?

I'm getting a lot of this on my own the further I get into it. But I think you'll have me here bugging you for a while yet.


8
VoxCommando Basics and Core Features / Sound Problems
« on: May 07, 2015, 02:04:01 PM »
Any attempts to adjust the sound volume on my system gives me an unexpected error message. I enable the log and got the following entry.

Code: [Select]
5/7/2015 11:50:47 AM 411 unexpected error in action: Sound.SetVol
System.IO.FileNotFoundException: Could not load file or assembly 'CoreAudioApi, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f66bdc7305ed7bf3' or one of its dependencies. The system cannot find the file specified.
File name: 'CoreAudioApi, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f66bdc7305ed7bf3'
   at eval_᜚.eval_ᜀ(String A_0, String A_1)
   at eval_d.eval_ᜃ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_d.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)

This is an older Dell machine running Vista. I don't see anywhere on my machine where a CoreAudioAPI dll  file exists. any ideas?

9
Infrared Codes (Learning and Sending) / MCE Remote
« on: May 06, 2015, 05:01:40 PM »
Has anyone tried using an MCS remote receiver with VC? There is a plugin for EventGhost that I use in cases where voice control isn't realistic (loud music or movie for example) but I'm on a mission if possible to eliminate EG from the stup and use VC exclusively. This, NMAP and Pushbullet are the only three things I still use EG for.

The actual receiver I use is this one from Amazon although I don't use that remote with it.

-GB

10
Off Topic (not related to VC) / Voice Control Failure
« on: May 06, 2015, 12:44:42 PM »
Just thought you may be interested in the beta version of VOXWhosOnFirst...... 

11
MediaMonkey / play artist excluding....
« on: May 02, 2015, 07:58:09 PM »
I love the play artist command but just ran across an issue. I say "Alexander, play artist Abney Park " and it does just that. However third song in it plays Winter Wonderland from one of their Christmas albums. Any way to exclude a specific genre from the play artist command since all my Christmas music is tagged Holiday in the genre field?

12
VoxWav Free and VoxWav Pro / Connect outside the home
« on: May 02, 2015, 01:56:19 AM »
What ports need to be opened on the firewall to allow VWP to connect to the VC server from anywhere incluging 3/4G connections? (if it's even possible to use it that way)

13
Command Builder Reference / Sequential commands
« on: May 02, 2015, 01:46:40 AM »
Maybe it's because it's late and I just can't get it straight in my head but I can't figure out the flow of this or how to do it.

I have 90% of the lights in my house made up of either hue or link bulbs all controlled through the hue hub. All the built in commands from the plugin as well as most of the ones I've created work great. My question though revolves around more natural speaking.

I have three groups of lights in the living room. "The Entertainment Wall" "The Living Room Ambient " "The Living Room" Right now I have two commands "Turn the {1} lights on/off" "Set the {1} lights to {2} percent"

I think I'm going to create a third that joins them together "Turn the {1} lights on and set them to {2} percent"

However if I say turn the x lights on and then after a few seconds realize their either too bright or dark, just say "set them to x percent,it's still too dark, it's too bright" and it still know which lights I mean. yet after a minute passes those commands don't work without specifying which lights I'm talking about again.

14
Feature Requests / Toggle acknowledgment sounds
« on: April 29, 2015, 11:27:49 PM »
Would be great to toggle acknowledgement sounds from an event. ie. I'm using the system late at night so turn off the sounds used for On Mode, Standby Mode, Off Mode, Recognized.

I could also use it in my persona setup. If it's Alexander don't use the sounds, but if its Computer in Star Trek mode use the sounds.

And while I'm at it, how about one for when it does not recognize what is said. Perhaps within a certain confidence range ie. if confidence is set at 50% play the sound for anything between 30-49% and ignore anything lower to weed out the random noise from open mics driving you crazy.

15
Other Plugins / RoboB IE version?
« on: April 29, 2015, 04:05:17 PM »
Does RoboB use the installed version of IE? I ask because when I open IE (version 9) and go to the following URL https://mytotalconnectcomfort.com/portal I get the login page with no errors, however when loading the came page with RoboB it has red text above the main area that says the browser I'm using isn't supported and I need the latest version of IE, FF, CH, etc. (yet the page works completely as I can login and adjust settings on the thermostat.) I just don't want to build anything based on coordinates and then have the error go away and have to redo everything. Without the error, the entire page to adjust will fit in full screen, but with it I have to scroll up and down.

Pages: [1] 2