Jump to content
C4 Forums | Control4

Nick2021

c4Forums Member
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Nick2021's Achievements

  1. Im no expert and may be completely wrong here. Im in the process of learning about GET requests myself and read this in one of the GitHub documents. Perhaps the options below may be of interest to you. Do more research though as disabling those options may have security implications. :SetOptions({ ["fail_on_error"] = false, ["timeout"] = 30, ["ssl\_verify\_host"] = false, ["ssl\_verify\_peer"] = false, ["connect_timeout"] = 10 }) Here is a link to the document I found this info. https://snap-one.github.io/docs-driverworks-api/#url-interface
  2. Hi everyone, I have started writing a driver to control an NVR, based from a DVD proxy template using Driver Editor 3. The NVR has an HDMI out that can be used to view the cameras on a TV. I am trying to make the NVR show a less CPU intensive screen when nobody is currently viewing the cameras on a TV (like a standby page). This way the NVR wont generate as much heat or use lots of power unnecessarily when not in use. I have the stanby page setup and I have the commands all working to get to the standby page. My question is related to how and when power commands are sent to the device. When I push "room off" on my sr-260 remote, I can make the NVR go to the standby page. When I select the NVR as a source from a room OFF state, the NVR goes back to viewing the camera it was on previously. So far so good. When I change source on my TV to watch something else other than the NVR, the NVR does not go to the stanby page. No OFF command is being sent to the NVR. What is the best way to get C4 to send an OFF command to my driver when it is not the currently connected source any more? To go one step further, what if my NVR driver was connected to 2x TV's with an HDMI splitter, how can I make C4 send an OFF command ONLY if both the TV's do not have the NVR as the currently connected source? I am wondering if I need to use API's like C4:GetDeviceVariables etc or if this feature is already built in and I am just doing something wrong in my driver or in the xml file. Thanks in advance for any assistance.
  3. Thanks Rexabyte. I'll definitely keep that in mind.
  4. Thanks very much for all the info Andrew. I really appreciate it. Im going to give all this a try.
  5. Thanks Andrew H, I have just looked at the driver packager GitHub link. My first hurdle will be how to install and use the utility. I am a complete beginner. I have managed to learn lua enough to actually make it do what I want to as far as the driver is concerned. However I haven't used python before. From what I can gather, I need to install python, add M2Crypto to python, and I must also have lua installed. I have a MacBook Pro with a windows 10 VM and an Ubuntu VM. Would I be correct in thinking that the easiest way for me to do all this is with the Ubuntu VM? So once I have python installed, whats the next step? Heres my best guess below. I also need to install lua onto the Ubuntu VM. Not sure how this all ties in with the driverpackager python script. Does squish need installing? Modify the script tag in my driver.xml file. Im planning to use driverpackager dp3. Do I then just copy the following to the Ubuntu VM build_c4z.py driverpackager.py encrypt_c4z.py squish The project directory for my driver. Then create a manifest file saved as xml on the ubuntu vm Then create a squishy file with no extension on the ubuntu vm Then just run the driverpackager.py in the command line with all the correct arguments? ........................ On a side note. I noticed in driver editor 3.0.1 in the drop down menus that there is a feature. Project>Build>Squishy Dependancies. Where does this fit into the puzzle? ...................... Sorry for the huge amount of questions.
  6. I was wondering if anybody can point me to some resources that outline the exact steps to encrypt a c4z driver. I am in the process of learning to write my first driver and this part of the process isn't clear to me. I have read the help files in driver editor 3.0.1 and also in the SDK but I am still getting stuck. Here is the example text given in the driver editor help file <Driver type="c4z" name="sample" squishLua="true" manualsquish="false”> <Items> <Item type="dir" name="www" c4zDir="www" recurse="true" /> <Item type="dir" name="common" c4zDir="Common" /> <Item type="dir" name="tests" exclude="true" /> <Item type="file" name="driver.xml"/> <Item type="file" name="squish.lua" /> <Item type="file" name="foo1.lua" /> <Item type="file" name="foo2.lua" /> <Item type="file" name="library.lua" c4zDir="Common" /> <Item type="file" name="readme.txt" exclude="true" /> </Items> As an example, lets say I want to encrypt the stock standard TV proxy template driver that comes with driver editor. What lines do I need to add to the XML, and what are the next steps. If someone is willing to break it down for me step by step that would be greatly appreciated. Thanks Nick
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.