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 - paulbeauvais

Pages: [1] 2
1
The brackets are fine and make sense.  The issue is that \d{1,2}:\d{2}am returns a result, works in the RgX tool, but when I want to display the results in OSD I just get a black box.

(\d{1,2}:\d{2}am)  (the expression with parenthesis around it) returns two results (one in {Match.1} and on in Match.1.1), but OSD displays the proper results.

I am more than happy using the parenthesis.  it is an easy work around, and give the results we need.

thanks,

Paul

2
Sorry, I just gave too much information. I am playing around and trying to learn.  I do not really need a sunrise/sunset event.  I come up with little projects so I have a goal while learning.  I will try not to give the extraneous information in the future as to not confuse the issues I am having.

I have some ideas for plugins (like the FTP and Wordpress plugins that I am working on) but I do not want to recreate functionality unless there is some sort of advantage (clearly there are already easy ways to make sunrise sunset work).

I was really just asking about why my regular expression did not work (still not sure why the parenthesis work, but I am not going to over think it).

As always you guys are great with the answers and it makes this platform much more useful.  I cannot figure out the relationship you guys have to each other, seems like there is a small core community answering most of the questions on the forums.

have a good day!

3
That worked, but I have no idea why that worked.  The regular expression itself does not need it, and the documentation does not show it. 

One oddity, putting the parenthesis around the expression causes vc to return the result twice, once in {match.1} and once in {match1.1}.

Thanks for the help.

4
I am honestly not sure if this is an OSD issues, a Regex issue, or a Me issue.

I started to write a plugin to trigger events on sunrise and sunset (as an experiment), but then it hit me that all the tools to do this were already there. 

I could use the special google calendar for sunrise and sunset to get the time and then use regular expression to pull out the information.  In testing I tried to through the results of the regex into an osd.showtext using {match.1}.  The OSD box shows up on the screen, but it is solid black with no text in it. (OSD.showtext is working with other results like {lastresult}.

I used the regext tool and I do get the results I think I am going to get (namely the time).

Logfile and history both show 1 result coming back.

any thoughts?

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<command id="823" name="newcommandname" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>GgCal.GetDay</cmdType>
    <params>
      <param>4</param>
      <param>sunrise and sunset for Philadelphia</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>\d{1,2}:\d{2}am</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{Match.1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

5
Other Plugins / Re: Custom Plugin Design
« on: February 20, 2016, 04:20:58 AM »
Here is a FTP plugin I am working on (almost production state I think). 

it supports both FTP and FTPS

I added some local file manipulation to make it easier.

I am getting a couple of non-events in the history window when events run.  I am having trouble tracking these down.  If you get around to it I would like to know your thoughts.

This plugin allows the following FTP and FTPS functions:
upload
binary upload
download
binary download
create a directory (both local and remote)
delete a file or directory (both local and remote)
move a file or directory (local)
Rename a file or directory (both local and remote)

Please let me know what you think and suggestions would be great.

Paul

6
Other Plugins / Re: Custom Plugin Design
« on: February 15, 2016, 04:28:11 PM »
There is a readme.txt that explains the integer parameter.  I will clean it up to true and false to publish or not.  That was already in the plans.

Adding the PluginInterface.dll was a mistake.  It is not needed in that folder.  I am targeting the newer dll.

I checked and my target framework is 4.5.1.  is that not what you are seeing?

I was not sure what the number of parameters tag was for.  There are 3 non-optional parameters.

and last, honestly wordpress in not a particular interest of mine, and probably not to most people who would find this.  But it was something I thought I could learn on fairly fast.

I will finish making some changes to this plugin (as listed in the readme.txt) and then move on to the FTP plugin.

I have also been looking at sunset and sunrise plugins.  I have a working function that will calculate both based on IP address or a couple of different location methods, (gps co-ordinates, country, and so forth) so that is in the works.

Is there an easy way to make these available and discover-able by the community at large?


Paul






7
Other Plugins / Re: Custom Plugin Design
« on: February 15, 2016, 01:57:43 PM »
So.....

this is my first attempt.  it is pretty basic and uploads text to wordpress as a post.

I am working to update it to accept a template file and variables (this will make it much more usable).

Text can just text or be standard html.

Any feedback will be appreciated (even to tell me it sucks :-)   )

after this I will work on an FTP plugin so things like photos will be easy to add.  (any thoughts on this?).

Paul

8
Other Plugins / Re: Custom Plugin Design
« on: February 13, 2016, 05:20:54 PM »
Thanks for the feedback folks.   These are good ideas and I will try to tackle some of them.  This is a good way for me to get back into programming (I used to program and was a great vb 6 and  vbscript programming in the day, but have been an infrastructure architect for 15 years). 

I have one question as I finish my first plugin.  Are there any nameing standards you would like me to use.  Right now the plugin is called vcWordPress, and commands are VCWordpress.post.

Easy to change if you have a standard.

In the end I decided to mix up something else I am working with, I am creating a plugin that posts to Wordpress.  I have it working fine, I am just finishing up the user interface.  Right now it just takes a simple title and post, but I have some ideas of how to let it use templates.

Anyone have any interest in this.


9
Other Plugins / Re: Custom Plugin Design
« on: February 12, 2016, 04:07:47 PM »
OK.  I was able to successfully modify the SamplePlugin (I even switch over to the vb.net version, that is easier for me).

Thank you for all the help.  Now I just need to create a simple Plugin for a full test.  Is there anything simple anyone needs.  If not I will probably just do some date or text manipulations.  Then I am back to full home automation stuff.

Thanks again everyone.  You guys have been great answering questions.  VoxCommando is probably the only application I have paid for in a few years (that means I really like it, so thanks for that too).

Paul

10
Other Plugins / Re: Custom Plugin Design
« on: February 12, 2016, 02:05:34 PM »
I did, but for some reason it did not work...I redid it, but also and more importantly I removed the plugininterface.dll from the plugin directory.  I am not sure why that was mucking it up, but once I removed it all is well.

thanks.

11
Other Plugins / Re: Custom Plugin Design
« on: February 12, 2016, 01:05:09 PM »
Hello All,

I have a plug in question.  I am using the sample plugin template you have provided above.  For a first test, I just complied it and added it to the plugins directory (inside a sub directory called SamplePlugin).  I added an icon from a different plugin just for testing.

VoxCommando can see the new plugin called SamplePluging, and let's me enable it (it is enabled by default), however when loading the plugin I get an error.  "Error Loading Plugin:" {path to plugin}

From the Log:

2/12/2016 11:49:11 AM   131   found dll: C:\VoxCommndo\Plugins\SamplePlugin\PluginInterface.dll
2/12/2016 11:49:11 AM   133   Plugin not selected in options: PluginInterface
2/12/2016 11:49:11 AM   133   found dll: C:\VoxCommndo\Plugins\SamplePlugin\SamplePlugin.dll
2/12/2016 11:49:11 AM   135   Loading: SamplePlugin
2/12/2016 11:49:11 AM   141   Error loading plugin: C:\VoxCommndo\Plugins\SamplePlugin\SamplePlugin.dll
System.InvalidCastException: Unable to cast object of type 'vcPlugin.Plugin' to type 'PluginInterface.IPlugin'.
   at VoxCommando.PluginServices.AddPlugin(String FileName)
2/12/2016 11:49:11 AM   141   [error] Error loading plugin: C:\VoxCommndo\Plugins\SamplePlugin\SamplePlugin.dll


This should be a fairly easy error to trace, but I cannot see where the cast is taking place.  I tried this in framework 3.5 and 4.0

the other files in the plugins\SamplePlugin folder are:
icon.png
pluginInterface.dll
SamplePlugin.dll
SamplePlugin.pdb
test

Any ideas or help would be appreciated.


12
BEAM IR/RF Wifi transceiver / Re: BEAM IR/RF Wifi transceiver
« on: February 10, 2016, 04:02:13 PM »
My first project will be with motion sensors to turn on lights when I get home, or shut things off after a long period of inactivity.

I will be using a HC-SR501 Adjust Ir Pyroelectric Infrared PIR Motion Sensor Detector Module on either a mini or an uno and a Mysensor hub.

I guess my thought was that someone would have a module that I could convert to work with this sensor.

Any help would be appreciated, I am pretty good with VB and C# but python would take a bit more doing.

Thanks

13
BEAM IR/RF Wifi transceiver / Re: BEAM IR/RF Wifi transceiver
« on: February 10, 2016, 03:10:19 PM »
Hello Folks,

This looks really great.  I think I understand most of it, but I am missing where a link the the Python code is.  Did you make it available.  I would love to use this for some projects I am working on.

Thanks!

Paul

14
Other Plugins / Re: Sonos.Play.share
« on: February 08, 2016, 11:11:34 PM »
I will try it out.  Thanks for the response.

15
Other Plugins / Re: Sonos.Play.share
« on: February 08, 2016, 07:15:14 PM »
same issue, and I took the same troubleshooting steps.

2/8/2016 6:13:16 PM   180   Action ERROR: x-rincon-playlist:RINCON_B8E937B8A8C601400#S://LOFT/wav/Alarm01.wav
OpenSource.UPnP.UPnPInvokeException:  Internal Server Error
   at OpenSource.UPnP.UPnPService.InvokeSync(String MethodName, UPnPArgument[] InVarArr)
   at Jishi.Intel.SonosUPnP.SonosPlayer.Enqueue(SonosTrack track, Boolean asNext)
   at vcPlugin.SonosController.playType(String type_value, Boolean clearQ)


Sonos TTS works so I know the share is set up right.

Pages: [1] 2