Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,775
» Latest member: JefferyTuche
» Forum threads: 10,966
» Forum posts: 76,808

Full Statistics

Online Users
There are currently 107 online users.
» 2 Member(s) | 104 Guest(s)
Yandex, gReatAutomation, simplextech

Latest Threads
HTTP SendPUT
Forum: CQC Support
Last Post: simplextech
2 hours ago
» Replies: 1
» Views: 11
Simple HTTP Call to Devic...
Forum: Installation/Configuration
Last Post: simplextech
6 hours ago
» Replies: 15
» Views: 2,749
Rainmachine - anyone else...
Forum: General Automation
Last Post: kfly
8 hours ago
» Replies: 94
» Views: 8,479
5.5 Beta Discussions Thre...
Forum: Beta Discussions
Last Post: Dean Roddey
Yesterday, 04:00 PM
» Replies: 82
» Views: 4,655
New Year New Projects
Forum: General Automation
Last Post: batwater
Yesterday, 03:40 PM
» Replies: 13
» Views: 419
ELK or DSC?
Forum: CQC Support
Last Post: batwater
Yesterday, 03:37 PM
» Replies: 20
» Views: 186
Z-Wave dual usb stick set...
Forum: CQC Support
Last Post: simplextech
Yesterday, 01:32 PM
» Replies: 7
» Views: 52
Outdoor Landscape Lightin...
Forum: Installation/Configuration
Last Post: gReatAutomation
Yesterday, 12:56 PM
» Replies: 11
» Views: 876
Dune HD 4k Players
Forum: General Automation
Last Post: simplextech
01-19-2020, 07:17 PM
» Replies: 15
» Views: 359
CQC Voice
Forum: CQC Support
Last Post: gReatAutomation
01-19-2020, 11:37 AM
» Replies: 2
» Views: 27

 
  HTTP SendPUT
Posted by: simplextech - 3 hours ago - Forum: CQC Support - Replies (1)

I'm looking through the reference documentation on the SendPUT.

Code:
SendPUT
(
    [In]    MEng.System.Runtime.URL URL
    , [In]  MEng.Card4 WaitFor
    , [In]  MEng.String Agent
    , [In]  MEng.String Accept
    , [Out] MEng.String RepText
    , [Out] MEng.System.Runtime.HTTPClient.LinesList OutHdrLines
    , [InOu MEng.String ContType
    , [InOu MEng.System.Runtime.MemBuf Content
    , [InOu MEng.Card4 ContLen
    , [In]  MEng.Boolean OutBody
    , [In]  MEng.System.Runtime.HTTPClient.LinesList InHdrLines
)   Returns MEng.Card4;

I'm guessing the MEng.System.Runtime.MemBuf is the Body of the message (outbound) for the PUT?  This is a memory buffer and I was looking at the docs for that.  I'm not sure what would be correct for adding a JSON string to this.  Anyone know?  I'm trying to write a Macro to send a PUT to the Hue bridge to turn on/off Hue groups.

Print this item

  Z-Wave dual usb stick setup
Posted by: simplextech - Yesterday, 10:01 AM - Forum: CQC Support - Replies (7)

Considering the dual z-wave usb stick setup of a primary/secondary setup for a single system (CQC) is kinda unique.  I'm looking for some info from CQC on a best practice.  Is it recommended/preferred to run both USB sticks connected to the same server?  Or to have another machine powering the "primary" Z-Wave Controller and PC Controller and only have the "secondary" connected to the CQC server?

Since the CQC Z-Wave driver acts in a secondary mode are there limitations to having multiple z-wave drivers using different z-wave interfaces?  I ask this to see if anyone has tried or used a ser2net or serial over IP connection from a remote server back to the CQC server for Z-Wave functions.

Anywho I'm looking to add Z-Wave back to my server as I installed a new SSD last night and reloaded CQC and I wanted to get the idea around best practice with the Z-Wave Driver considering it's based around a secondary controller setup but uses USB sticks which "can" be on the same server but may not be recommended?

Print this item

  CQC Voice
Posted by: simplextech - 01-19-2020, 10:35 AM - Forum: CQC Support - Replies (2)

Is CQC Voice still actively developed and extended?

I've ordered a mic to do some preliminary testing with and I'm looking for ideas on how to make it useful and replace several Amazon Echo Dot's.  The problem I see currently is having a pc running in all of those locations and the need for a Mic and speakers.  Has any thought gone into a "mini" receiver perhaps running on a rPi that only relays the commands back to the master server?  Or what would be a typical deployment for this in a practical usage?

I've gone through the command list and it covers the majority of things.  However one thing that is the most used in our house is using Alexa for a cooking timer.  I saw there's a "remind me" phrase however would it be possible to add a "set a timer for...." and have support for multiple timers?

Print this item

  ELK or DSC?
Posted by: simplextech - 01-18-2020, 08:05 PM - Forum: CQC Support - Replies (20)

Which system has the best driver today for IP integration?

Print this item

  Mobile Device IV Login Screen Setup
Posted by: gReatAutomation - 01-16-2020, 09:52 AM - Forum: How-To - Replies (1)

I wanted to share with everyone on how to set up a pin code based login screen for use with your mobile device that will allow you to access your main mobile interface without having to pass your user name and password for the main interface over the query string.

1. Create an interface named "Login" or whatever you want to call it. Here is a mockup:

[Image: Screen-Shot-2020-01-16-at-11-39-14.jpg]

The ???? is a field called EntryFld

The "Enter your password" is a field called StatusText

For the login background (click on the blue part) of the interface set this as the action. This will allow the pin code to be obscured when the IV loads

PHP Code:
EntryFld::SetSecretMode

    P1
=True 

2. Create a Limited User with a complex password and assign the Login template to it. This will allow you to access the template via WebRIVA (and CTC CQC app):

http://IP_ADDRESS/CQSL/WebRIVA/index.html?user=USER&pw=PASSWORD

3. Create a field in the Variables driver for each user (eg, SecurityPinCodeUser1) of type String and assign the pin code (eg, 123456) as the persisted value

4. Here are the actions when you click the login button. Note, I have two users SecurityPinCodeUser1 and SecurityPinCodeUser2

PHP Code:
// set variable for entered pin code
EntryFld::GetText
    P1
=LVar:PINCode

// evaluate pin code entered against values in variables driver for each code
If 
System::Equals
    P1
=%(LVar:PINCode)
    P2=$(Variables.SecurityPinCodeUser1)
    P3=No Case

IntfViewer::LoadNewTemplate
    P1
=/User/iPhone/Main

Else

If 
System::Equals
    P1
=%(LVar:PINCode)
    P2=$(Variables.SecurityPinCodeUser2)
    P3=No Case

IntfViewer::LoadNewTemplate
    P1
=/User/iPhone/Main

Else

// display message
EntryFld::Clear

StatusText
::Clear

StatusText
::SetText
    P1
=Invalid login

// I have custom code here for sending me an SMS message when there is an invalid login and what invalid pin was
// attempted

End

End 

You can have as many users as you want with the nested if/thens

After a successful "login" the user is transferred to the Main template which has no user assigned to it which means someone could not try to load it via the WebRIVA URL (ie, http://IP_ADDRESS/CQSL/WebRIVA/index.html?user=USER&pw=PASSWORD). It's inaccessible unless you enter the correct pin code

Comments are welcome but this at least solves my concern about no SSL and passing login information for my entire house interface over the query string.

I am currently thinking of adding some code that will track login attempts and store the "count" in a variables driver field along with a lockout time if a number of login attempts is exceeded. Then I will update the action settings of the login interface itself to check the timeout and if still in a timeout then it will disable/enable the buttons. A successful login would reset the timer and counts.

Any way to collected the IP Address of the device accessing WebRIVA?

Print this item

Big Grin ZWave & Switch Remotes / Dimmer Remotes
Posted by: gReatAutomation - 01-14-2020, 02:03 PM - Forum: CQC Support - Replies (6)

Not sure if this is an issue with the CQC ZWave driver or ZWave in general. CQC ZWave driver does not update when turning on or off a light from a switch or dimmer remote, however, the switch master or dimmer master respond and "know" when the load was turned on or off if it was done from a remote.

If folks are going to response, I'd ask that you please read what I've written here Big Grin

Location 1: ZWave Master switch for patio (Leviton DZ15S-1BZ) - Unit_13 in CQC ZWave Driver Client
Location 2: ZWave remote switch for patio (Leviton DD0SR-DLZ) - not listed in CQC ZWave Driver Client
Location 3: ZWave remote switch for patio (Leviton DD0SR-DLZ) - not listed in CQC ZWave Driver Client
Location 4: ZWave remote switch for patio (Leviton DD0SR-DLZ) - not listed in CQC ZWave Driver Client

If I turn the light on or off from Location 1, the CQC driver notes the change for Unit_13 and the indicator LED's on DZ15S-1BZ and DD0SR-DLZ show the light is either on or off via the indicator LED (green == off and no LED == on).

If I turn the light on or off from Locations 2 - 4, the CQC driver does not note the change for Unit_13 but the indicator LED's on DZ15S-1BZ and DD0SR-DLZ show the light is either on or off via the indicator LED (green == off and no LED == on).

Print this item

  Phone/WebRIVA Login/Security Alternatives?
Posted by: gReatAutomation - 01-13-2020, 07:49 AM - Forum: CQC Support - Replies (11)

Are there any alternatives to logging in to WebRIVA on a phone other than passing the login credentials in the query string? I have a static IP and an SSL certificate is not an option. 

But honestly, the threats are extremely limited, IMHO.

Someone would have to know my static IP, know that I use CQC, etc., and all of the reasons not to use the query string to pass sensitive info really do not apply:

  • saved in browser history - not applicable
  • saved in server logs - not applicable
  • inadvertent posting of the entire the link - not applicable
  • exposed in the "referrer" header - not applicable
  • available to browser extensions - not applicable

I thought about an intermediary IV where I would then use that to log in. I set up a user, Login, which only has access to a login IV template and would show the user a login page (http://STATIC_IP/CQSL/WebRIVA/index.html?user=Login&pw=page). I would then log in with another user and a pin code (eg, 93827) versus a password which would then show me another set of templates.

But this approach would require me to enter the pin code each and every time unless there was a way set something to say "remember me"

Print this item

  CIDLib_RefVector.hpp.470, Failed/Bad Parms
Posted by: simplextech - 01-12-2020, 05:18 PM - Forum: CQC Support - Replies (1)

I get the following error anytime I resize the canvas from the AI for customizing interfaces.  I have recreated the error directly from the master CQC server with everything running local and from running the AI from a remote Slave. 

All systems master/slave are stand alone PC's there are no virtual machines involved in my setup.

Systems are the same except hardware:

Windows 10 Pro with Latest Updates

Code:
01/12 19:15:59-fractal, CQCAdmin, MainThread
{
    CIDLib, CIDLib_RefVector.hpp.470, Failed/Bad Parms, Error: 2/0/0
    4294967295 is not a valid index for the TRefVector<TElem,TIndex> object. Count=0
      <CQCAdmin> CQCIntfEd_Tools2.cpp - 302

}
01/12 19:15:59-fractal, CQCAdmin, MainThread
{
    CQCIntfEd, CQCIntfEd_Tools2.cpp.321, Failed/Unknown
    An exception occurred while processing an IEd Pub/Sub update msg
    Type=6, Indices=4294967295/4294967295, Count=0
}

Print this item

  How To - Changed Windows Embedded Browser
Posted by: simplextech - 01-12-2020, 12:58 PM - Forum: How-To - Replies (2)

The following changes will add a new entry to the Windows Registry.  I recommend reading through this first and the additional reference sites before attempting this.  As always modifying the Windows registry can be dangerous and can leave your system broken.  Use at your own risk.

StackExchange superuser discussion:
https://superuser.com/questions/432154/h...n-windows7

Windows Docs:
https://docs.microsoft.com/en-us/archive...patibility

Windows Reference for Browser Compatibility:  -- Open in a new tab/window you need it later
https://docs.microsoft.com/en-us/previou..._emulation


Procedure:

IV Web Helper:
- Current 5.4.0 name is:  CQCWBHelper.exe


Launch the Windows registry editor. 
This can be done in several ways.
- Enter regedit into the search board
- Use the Windows Key + R and type regedit

Find the Windows Registry key to modify:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

- Add a new key
- New -> DWORD (32-bit value)
- Name the entry CQCWBHelper.exe
- Hit enter to save it
- Now open the entry and change the value to match what you want the Browser version to be from the Microsoft Doc above

Print this item

  New Year New Projects
Posted by: simplextech - 01-12-2020, 07:34 AM - Forum: General Automation - Replies (13)

Informal post to start some banter and spead ideas and show that this forum is not dead.

It's a new year which brings new projects.....

I've been doing Home Automation for a while... I have a mostly Insteon setup and multiple ISY's one prod and a couple dev that I do nodeserver development on.  I have quite a bit of z-wave still in the form of power plugs and my thermostats.

My new project is currently CQC.  I'm investigating how CQC can take my home automation into a new level.

My own home currently is mostly automated with the ISY and programs doing pretty much everything with motion and contact sensor controlled lighting.  Hue for accent lighting and dining room with a Lutron Aurora switch which is very nice and fixes the "somebody turned off the switch" problem.  I'm looking to add A/V into my setup and a custom touch interface which I don't have today.  Ultimately I'm looking to see how well CQC voice works and if possible replace Alexa 99% if possible.  In the meantime the Alexa integration via ISY is excellent and reliable so I can use both if needed.

I have a lot of Nodeservers (plugins, drivers, addons) for the ISY that I use or have developed and I'd like to see how to bring some of those directly to CQC as they are too intensive for the little ISY and it slows things down.

First steps are to get the ISY fully integrated which Dean has been helping a lot with on updating the driver.  Once that's complete I can start migrating some of the logic into CQC and see how that works or if it's best to leave it in the ISY.  Ultimately I think I'll be replacing the Insteon lighting with Lutron RadioRA2 as I already have the Main Repeater and access to it.  If I do transition to Lutron then I will have to have the logic in CQC so I need to learn/understand that ahead of time right? Smile

First baby steps will be a simple template.  I've been watching the videos... multiple times and going back for reference and I'm looking to have a basic interface showing cameras and rooms with lighting control.  I'll expand that to movie/music selection.

I've been able to get the Sonos driver to work with the Zone driver and mostly with the renderer driver which is good.  I have an even setup to start playing music in the bathroom when the door is closed and to stop when the door is open.  My wife and daughter loves this automation... very high WAF!  I had the same thing with the ISY Nodeserver I developed as well so this isn't new but it is nicer having it more tightly integrated via CQC.

As you can see there's some rambling and some items.  The whole point is to get discussion going.

Print this item