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

Pages: [1] 2 3 ... 5
1
BEAM IR/RF Wifi transceiver / LinknLink App causes Beams to crash
« on: March 29, 2024, 03:47:49 PM »
Hey guys its been a long time,

I have an interesting situation that I thought you might find interesting and possibly have an answer to how this is even happening.

I bought a cheap LinknLink eRemote to test with Home Assistant and found an odd issue after doing some testing:

If I open the LinknLink app on my phone the Beam 2.0 and Beam ray crashes and becomes unreachable. (I cant say if the Beam original crashes, it's not currently in use)

If the app is left open when I unplug the Beam for 30 seconds and plug it back in, the Beam will flash the yellow light, then the green light, but it is still unreachable. I tried swiping the app away but the Beam was still unreachable.

The only way to get the beam back 'online' is to swipe the app away and then unplug the Beams for 30 seconds and plug it back in.

My guess is that the LinknLink app is pining each device on the network to see if its one of their devices and the Beam doesnt like the packet being sent to it and cause the Beam to crash.

It took me a bit to figure out it was the LinknLink app, I also tested on another phone with a fresh install of the LinknLink app so it should be repeatable by downloading the LinknLink app and onpening it to see if your Beams crash too.

I'm only able to test with Android phones.

side note: I found out that the Home Assistant hacs linknlink intergration doesn't work with the eRemote yet, but they are currently working on the intergration.

2
Bug Reports / Microsoft.NET Framework BadDeviceid
« on: April 04, 2023, 12:49:36 AM »
I'm working on setting up a new HTPC (windows 11), I coppied my VC build from my current HTPC (Windows 10) and Im getting a Microsoft.NET Framework work error, but I'm not sure what is causing it

Error:
Quote
Microsoft.NET Framework

Unhandled exception has occurred in your application. if you click
Continue the application will ignore this error and attempt to continue. if
you click Quit, the application will close immediately


BadDeviceid calling waveOutOpen

Details: https://pastebin.com/HPVGbSip

I had to install Microsoft visual c++ 2010 Redistributable > https://www.microsoft.com/en-us/download/details.aspx?id=26999
(Visual Studio 2010 (VC++ 10.0) SP1 (no longer supported))

The error never pops up when I'm at the pc, so I havent been able to find whats causing it.

I will post the log when I see a response, I know you guys are busy and I dont want my log sitting out in the open for any longer than needed

Thanks

3
I'm trying to intergrate ToDoist with VC, I've created an action to get my project names and add them to a map table. but I'm having problems with the scrape.post actions, I'm getting this error could no create ssl/tsl secure channel when I try to run the actions.

Todoist API

I can send you my current APIkey with a PM so you don't have to create an account.

or if you create an account, you can get the API key from Todoist.com > settings > integrations > Api token (bottom of the page).

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.3.0.3-->
<commandGroup open="True" name="ToDoist" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="801" name="ToDoist - Get project names" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Scrape.Get</cmdType>
      <params>
        <param>https://api.todoist.com/rest/v2/projects</param>
        <param />
        <param />
        <param />
        <param />
        <param>Authorization: Bearer {M:apiKeys.ToDoist}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>LastActionSuccess</ifType>
      <ifParams>&amp;&amp;</ifParams>
      <then>
        <action>
          <cmdType>Results.RegExSingle</cmdType>
          <params>
            <param>"id":\s"(.\d+)".*?"name":\s"(.*?)",</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Map.Set</cmdType>
          <params>
            <param>ToDoist</param>
            <param>{Match.{i}.2}</param>
            <param>{Match.{i}.1}</param>
          </params>
          <cmdRepeat>{#M}</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
  </command>
  <command id="802" name="ToDoist - Add project" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Scrape.Post</cmdType>
      <params>
        <param>https://api.todoist.com/rest/v2/projects</param>
        <param>{"name": "ShoppingList"}</param>
        <param />
        <param />
        <param>application/json</param>
        <param>X-Request-Id: $(uuidgen)</param>
        <param>Authorization: Bearer {M:apiKeys.ToDoist}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="897" name="ToDoist - Add Task" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Scrape.Post</cmdType>
      <params>
        <param>https://api.todoist.com/rest/v2/tasks</param>
        <param>'{"content": "Cover pool", "project_id": "{M:ToDoist.Pool}"}'</param>
        <param />
        <param />
        <param>"Content-Type: application/json"</param>
        <param>X-Request-Id: $(uuidgen)</param>
        <param>Authorization: Bearer {M:apiKeys.ToDoist}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>

hopefully it's something I'm doing wrong this could be used to replace ourgroceries and add a way to integrate mobile reminders with VC

thanks for any help

4
Integration Ideas / Home Theater using Beam and Beam Ray
« on: May 24, 2019, 01:47:46 PM »
I've spent the last couple of weeks building a giant floating shelf for my motorized 110" projector screen that we now use in our living room, this video is a demo of our new Theater Experience using Kodi, Voxcommando, Beam, and Beam ray. at the end of the video there are some photos of the shelf during the building process, it was a tight fit. the shelf is 107 inches long, 9.25 inches deep, and 7 inches tall.





Homegear Projector Screen

Optoma HD142X Projector

Beam

Beam "Ray"


the shelf does amplify the motor sound but for me it is worth it, I use the beam to control my projector screen, the screen uses 433MHz, American standard is usually 315MHz so if you are going to control it with a beam make sure your beam has the 433MHz chip. in the photos at the end of the video you can see that I mounted the wall control inside the shelf, I used double sided tape to hold it in place, and then used Velcro zip ties to hold the wires in place so they won't interfere with the screen, I added an outlet on the wall that is concealed inside the shelf so no cords are visible, because of this I added a hidden door on that end of the shelf to be safe.



I control the projector with the Beam "Ray" that I painted black to blend in, I had to modify my Beam "Ray" because my projector had a small IR receiving angle and I didn't have a good spot to put the Beam "Ray", so I modified the Beam "Ray" by de-soldering one of the IR emitters and soldered an emitter cable in its place, then used hot glue to fill the whole so the wire was less likely to be damaged and used double sided tape to mount the Beam "Ray" on top of my projector.



Thanks Jitterjames, nime5ter and kalle for the awesome software and hardware you guys rock




5
One on one support / python integer sorting
« on: March 14, 2019, 02:22:23 AM »
UPDATE:

Thanks to Jitterjames impressive help, here are some examples of sorting numbers with python.

here is a group of commands as examples for others

Replace     1, 3, 4, 2, 5       with         your numbers    that you want sorted

Python Numbers Sorting Examples
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.5-->
<commandGroup open="True" name="Python Number sorting Examples" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="916" name="Sorting for Lowest Number" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>numbers = [1, 3, 4, 2, 5] </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>numbers.sort()</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>result=numbers[0]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="918" name="Compressed Sorting for Lowest Number" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>numbers = [1, 3, 4, 2, 5] {CR}numbers.sort(){CR}result=numbers[0]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="917" name="Sorting for Highest number" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>numbers = [1, 3, 4, 2, 5] </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>numbers.sort(reverse = True)</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>result=numbers[0]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="950" name="Compressed Sorting for Highest number" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>numbers = [1, 3, 4, 2, 5] {CR}numbers.sort(reverse = True){CR}result=numbers[0]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>

===================================================================================================
Original Post:

I gotta say I thought this would be a simple task  :biglaugh  :bonk

I'm trying to sort a list of integers using python

list:
5, 3, 9, 4, 2, 6, 8, 7, 11, 10, 1

wanting:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11

I thought I would be able to do it with python but I haven't had much luck, here's some of what I have tried

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.5-->
<command id="847" name="Python sorting" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Results.SetLastResult</cmdType>
    <params>
      <param>5, 3, 9, 4, 2, 6, 8, 7, 11, 10, 1</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result=sorted={lastResult}</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result=sorted{lastResult}</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result=sorted({lastResult})</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result=sort({lastResult})</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result=sort{lastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

I'm needing to sort the list numerically, so I can get the highest number in the list for naming custom Youtube episodes, any help would be great  ::club  ;)

6
Bug Reports / Weatherunderground.com plugin not working
« on: March 06, 2019, 06:00:39 PM »
Weatherunderground.com plugin isn't working, but site is up and running. I've tested with 2.241 and 2.245b and getting the same errors



I've tested it on two PC's running windows 10

anyone else having the same problem?

7
Integration Ideas / Google Home / assistant and Voxcommando!
« on: February 20, 2019, 01:46:58 PM »
UPDATE: This no longer works, Google disabled most 3rd party integration, and Ifttt can no longer use variables with googel assistant


Warning: To make this work, you need to enable port forwarding on your router. Depending on your security setting this could be a safety risk! At least everyone who knows your IP/Ddns and port will have access to VC! 




In this video I demo using Google home / google assistant with Voxcommando, and show how to setup Ifttt.

you will need:
Google Home device / google assistant
Voxcommando
Ifttt.com account
Ddns service.


Ddns and Port forwarding:
setup your Ddns before creating your Ifttt applet, and make sure that you set it to update on a regular interval, I have mine set to every 5 minutes, and have been using this method for over a year with no issues.


after you have your Ddns setup your next step will be to port forward your TCP Simple web server. There are to many different routers for me to cover an accurate how to, google is your friend for this, search "how to port forward router name and model number" and you should be able to find the instructions for your router


Ifttt setup:
Illegal character for Ifttt applet:
Code: [Select]
̢

Webhooks example:
Code: [Select]
http://YOUR.DDNS.ADDRESS:1234/api/android.phrases&&{{TextField}}*the port number used in webhooks is your external port number used when port forwarding your TCP simple webserver


If you have any commands that aren't working for you, then you need to check the phrases that are being transcribed by google assistant and make the changes to your VC phrases, I have one that I use in the morning "I'm Awake" and after it is transcribed then passes through Ifttt it would be "I ' m Awake" so I just added "I ' m" to my phrases as a choice and the problem was solved.

8
Bug Reports / Sound.GetStreamInfo doesn't fail properly
« on: November 07, 2018, 01:58:37 AM »
When Sound.GetStreamInfo fails it's followed by "Sound.GetStreamInfoUnexpected error:" which isn't detected as a failed action, not a big deal I found away around it but thought I should point it out.

9
Bug Reports / Can't scrape https anymore
« on: September 20, 2018, 08:46:13 PM »
I've been having issues with scraping secured sites (Https), keep getting the same error


Quote
Error: System.NetWebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at Eval_ .(String  A_0




is there anyway to get around this

VC Version 2.2.4.1
Windows 10

Thanks

10
Feature Requests / Google Assistant Reminders
« on: May 30, 2018, 01:10:52 PM »
is it possible to add in Google Reminders integration?

with the new android 8.1 they make it a lot easier to set reminders on the phone or tablet and if we could add google reminders it would allow for long term reminders (Remind me in 2 days to call the cable company) instead of being limited to 24 hours, plus for android users it would also give the ability for a reminder notifications across all devices including our VC PC's.

11
is it possible to use Map.query to get the 1st row (top item) in a map table. SQL is not something I know much if anything about and I can't seem to find a way to get the first row of a map table,  :bonk

If that's not possible, is it possible to get all fromkey's listed in a map table?

I'm working on a command using YouTube-dl and I'm trying to create a queue and need to check it when Youtube-dl completes its task. I don't know exactly what the fromkey is going to be so I can't check them individually.

Thanks

12
Tasker + VC / VC Companion Android App (Caller ID and More)
« on: May 19, 2018, 02:52:39 AM »
Requires VoxCommando's TCP plugin: How to Enable



This app allows you to use VC as a Caller Id and more, for android devices, Tested on 5.1.1 and higher

the app can be locked with a password up to 8 digits long (this is only used to prevent accidental changes to settings)

the app contains the following actions

    ~Basic Actions~ all basic actions trigger an event in VC except those marked with *

Missed Call           
Missed Call Speak* uses your phones default voice to say "Missed Call From Callers Name or Unsaved Number"
Incoming Call
Call Ended
Calling Out
New Text (SMS)
New Text Speak*   uses your phones default voice to say "New Text from Senders Name or Unsaved Number"
Battery Level 10%
Battery Level 20%
Battery Level 30%
Battery Level Speak* uses your phones default voice to say "Your Battery is now at 10% or 20% or 30%" can only be used if one of the other battery level actions is enabled


     ~AutoRemote~ these actions all require that you have AutoRemote Pro installed


Theater On - Turns on vibrate mode and sets media volume to 0
Code: [Select]
T^E^
Theater Off - Turns vibrate mode off and sets your media volume back to your previous level
Code: [Select]
TE^off
Ring Me -Turns your media volume to max and then shows a button that says "You Found Me" helping you to find your device, in order to use this action you will need to add "Ring Me.mp3" to /storage/emulated/0/Music/ (use your own mp3 file just rename it to "Ring Me.mp3")
Code: [Select]
Ring Me
VC to Phone Talk - This uses your phones default voice to say what ever you send your phone with AutoRemote
Code: [Select]
VCSay=:=The text you want VC Companion to say

    ~AutoVoice~  Requires AutoVoice Pro to be installed
AutoVoice Integration -  With this enabled when you launch VC Companion it will launch AutoVoice Google intergration (Microphone), If you want to change some settings while this is enabled say "Show Companion Settings" and it will show VC Companion, all other voice commands are passed to VC as android phrases.

when issuing a Voice command to VC there is an extra event triggered before the voice command "VC.COMPANION" with payload 1 being the device name

to use Kodi notifications with pictures you will need to create a folder and sub folder in your VC Folder:  VC Folder\XbmcImages\CallerID
 

The size of some text and windows may change size compared to other devices

Installation:
in order to install this app you will need to make sure you check "Unknow sources" in your security Settings on your phone (More info here)

Download the app to your android device, and click install


Change Log:
5/30/18 Fixed: on some phones New Text event was triggering for group messages with no text body, blocked event for empty text body (group messages)

13
WAY Off Topic / DIY magnetic Tablet Wall Mount
« on: April 27, 2018, 11:21:20 AM »
Thought some of you might be interested in a diy low profile wall mount for tablet or old smart phone, I have 2 of these in my house and my family loves them, I use Imperihome as my Home automation app



Quote
In this video I show you how to make a low profile magnetic tablet wall mount for around $35, I use two of these now in my house and they work great, the family loves the easy access to the smart home control panels (wall tablets). and you can grab the tablet right off the wall up, unplug the charger and take the tablet with you, with out much hassle.

Materials:

Neodymium Disc Magnets
https://www.homedepot.com/p/MASTER-MA...

Loctite Epoxy Plastic Bonder
https://www.amazon.com/Loctite-Plasti...

2 single gang old work boxes
https://www.homedepot.com/p/1-Gang-14...

Single gang nylon blank wall plate
https://www.homedepot.com/p/Leviton-1...

EasyLiner Select Grip
https://www.walmart.com/ip/Duck-Selec...

Single Gang Recessed Low Voltage Cable Plate
https://www.amazon.com/DataComm-45-00...

Single Gang Low Voltage Box
https://www.amazon.com/dp/B000W09PQI/...

Double Sided Tape
https://www.amazon.com/Scotch-Removab...

scrap sheet metal 4in x 2.5in

(these links are to show what each item is, and rough price)

if you have any questions leave them in the comments below, and don't forget to subscribe

14
I've created a simple little exe file with AutoHotKey for communicating with Voxcommando through the TCP simple web server, this works great when you are running more then one Voxcommando on the same network and you only want to communicate with one specific instance from a script or another program like Windows Task Scheduler

Code used in the VC-TCP.exe
Quote
;uses HTTP Get to connect to TCP Server
VCpath = http://%1%/api/%2%
oHttp := ComObjCreate("WinHttp.Winhttprequest.5.1")
oHttp.open("GET", VCpath)
oHttp.send()
VCStatus = Done
return

in order to use this you will need to enable the TCP Plugin and in the TCP Plugin enable Simple Web Server and set the port number you would like to use.

Message Formatting
Code: [Select]
VC-IP:PORT "TTS.Speak&&Hello, How are you"
VC-IP = the IP address of the computer you want to communicate with
PORT = the Port you set in the TCP Plugin under Simple Web Server

VC-TCP.exe examples
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.0-->
<command id="630" name="VC-TCP.exe examples" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="VC-IP:Port &quot;VC.TellVox&amp;&amp;what you want to tell VC&quot;&#xD;&#xA;&#xD;&#xA;VC-IP:Port &quot;TTS.Speak&amp;&amp;what you want VC to say&quot;&#xD;&#xA;&#xD;&#xA;VC-IP:Port &quot;VC.Triggerevent&amp;&amp;Event&amp;&amp;Payload 1&amp;&amp;Payload 2&amp;&amp;Payload 3&quot;">
  <action>
    <cmdType>Launch.Hidden</cmdType>
    <params>
      <param>{Path.VC}\VC-TCP.exe</param>
      <param>192.168.1.10:6300 "VC.Triggerevent&amp;&amp;Test.Event&amp;&amp;Payload 1&amp;&amp;Payload 2&amp;&amp;Payload 3"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Launch.Hidden</cmdType>
    <params>
      <param>{Path.VC}\VC-TCP.exe</param>
      <param>192.168.1.10:6300 "TTS.Speak&amp;&amp;Hello, how are you"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Launch.CMD</cmdType>
    <params>
      <param>VC-TCP.exe 192.168.1.10:6300 "VC.Triggerevent&amp;&amp;Test.Event&amp;&amp;Payload 1&amp;&amp;Payload 2&amp;&amp;Payload 3"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

more examples on action Formatting

15
One on one support / VC crashing over night
« on: August 15, 2017, 12:23:26 PM »
My VC setup on my main PC is crashing on me over night, it started about a week before 2.2.3.8 was released, so it's not a bug specific to 2.2.3.8. I've tried to trouble shoot the problem to no avail I have the "voxLog.txt" from the last two days but I can't seem to find the cause of the problem.

it's not happening every night it seems random, I've gone through all my scheduled events (eventghost and Google calendar) and none of them are triggered consistently with the crashes,


Windows 10 (with all updates)
VC 2.2.3.8
Kodi 17.3

I'll send the logs to you in a personal message

let me know if you need more information

thank you


Pages: [1] 2 3 ... 5