alanchow Posted August 6, 2020 Author Share Posted August 6, 2020 1 hour ago, jfh said: I want to issue a telnet command to a device that does not require login. Can I use this driver to do it? If so, how? If its a singular command upon sending it as a TCP command will be fine. Just end it with \r\n Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted September 28, 2020 Share Posted September 28, 2020 On 7/14/2020 at 6:47 PM, zaphod said: Ok, first feature request on the incoming http get. Would it be possible to pass parameters? It would be great to be able to pass numeric , text or boolean values into C4, as in: http://192.168.1.12:52690/OfficeOn?level=92 http://192.168.1.12:52690/SetVolume?level=32 http://192.168.1.12:52690/TeslaChargeStatus?status=charging Obviously you would want to then be able to use these values in C4, presumably as a variable. I have just started using this driver and seems very impressive. Did anything come of this feature request? Would certainly reduce the amount of programming I need to do. If not, I am thinking of multiple commands inside a short period to reduce the programming load. Quote Link to comment Share on other sites More sharing options...
zaphod Posted September 28, 2020 Share Posted September 28, 2020 There is a way to do this if you have the Homebridge driver by @Joshua Pressnell. Homebridge creates a web API of a sort on port 8070. So the command http://192.168.1.12:8070/38/level/22 will set the level to 22 on device 38 for my controller which is at 192.168.1.12. Here is the JSON info for this device from the Homebridge driver Lua screen: { "accessory":"Control4", "name":"Office Pots", "service":"Dimmer", "base_url":"http://192.168.1.12:8070/38", "has_level_control":"yes", "switchHandling":"realtime", "brightnessHandling":"realtime", "refresh_interval":900000, "manufacturer":"Control4", "model":"ldz-101-w" }, Also http://192.168.1.12:8070/38/on or http://192.168.1.12:8070/38/off will turn the dimmer on and off. The main purpose of the Homebridge driver also allows you to control C4 devices from Apple Homekit, including Siri. South Africa C4 user 1 Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted October 6, 2020 Share Posted October 6, 2020 Has anyone got any experience with modbus TCP? I am wanting to change register 2703 on unit 100 at IP address 192.168.0.27 to, say, 200. This is a Victron setup which allows communication via modbus TCP (which I had never heard of until a few weeks ago). The register is writeable... I would assume that this driver would allow me to do this? Does anyone know what I would enter into this driver and would I need more information? I have not got very far investigating via google! Quote Link to comment Share on other sites More sharing options...
AHA Posted October 7, 2020 Share Posted October 7, 2020 11 hours ago, South Africa C4 user said: Has anyone got any experience with modbus TCP? I am wanting to change register 2703 on unit 100 at IP address 192.168.0.27 to, say, 200. This is a Victron setup which allows communication via modbus TCP (which I had never heard of until a few weeks ago). The register is writeable... I would assume that this driver would allow me to do this? Does anyone know what I would enter into this driver and would I need more information? I have not got very far investigating via google! Try these http://www.yatundev.eu/drivers/modbus-rtu-driver-control4 South Africa C4 user 1 Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted October 9, 2020 Share Posted October 9, 2020 On 10/7/2020 at 10:09 AM, appliedautomation said: Try these http://www.yatundev.eu/drivers/modbus-rtu-driver-control4 Thanks for the tip... this worked perfectly for me! Quote Link to comment Share on other sites More sharing options...
jlemonakis Posted November 3, 2020 Share Posted November 3, 2020 Forwarding question from another topic that was asked previously in this thread. Is there any way to send POST commands using bearer tokens like OAUTH etc? Quote Link to comment Share on other sites More sharing options...
zaphod Posted November 28, 2020 Share Posted November 28, 2020 On 11/3/2020 at 1:46 AM, jlemonakis said: Forwarding question from another topic that was asked previously in this thread. Is there any way to send POST commands using bearer tokens like OAUTH etc? @alanchow Any advice on how to do this? It would be great to know how this could be accomplished. Quote Link to comment Share on other sites More sharing options...
alanchow Posted November 29, 2020 Author Share Posted November 29, 2020 Sorry this driver does not support custom headers Quote Link to comment Share on other sites More sharing options...
zaphod Posted December 2, 2020 Share Posted December 2, 2020 On 11/29/2020 at 2:10 PM, alanchow said: Sorry this driver does not support custom headers Ok thanks. Can you please consider this a feature request as it would be quite helpful, even if one had to manually update tokens on a periodic basis. Quote Link to comment Share on other sites More sharing options...
alanchow Posted December 2, 2020 Author Share Posted December 2, 2020 1 hour ago, zaphod said: Ok thanks. Can you please consider this a feature request as it would be quite helpful, even if one had to manually update tokens on a periodic basis. Don't think you want to do that. Most OAuth2 based systems require token exchanges and token refreshes periodically. Most of the ones i have seen range from hourly to at max once a month. Most of them are weekly. Honestly if it gets to that stage a real driver should be written. Quote Link to comment Share on other sites More sharing options...
zaphod Posted December 2, 2020 Share Posted December 2, 2020 The specific instance that I am thinking is the Oauth token for a Tesla. This resets every 45 days. I currently use the Generic IP driver to hit an Apache server running on a Raspberry Pi. That then sends the commands off to the Tesla servers to do things like start the car charging, turn on climate, or get charge status. So the Pi gets a new token every 45 days. If I could send tokens from the generic IP driver then I wouldn't need the intermediate Apache server on the Pi. Quote Link to comment Share on other sites More sharing options...
perioms Posted December 28, 2020 Share Posted December 28, 2020 The Envy from madvrlabs serves as a TCP server, using port number 44077. You can send Envy commands via ASCII text (UTF8) in the following format: SomeCommand Some Parameters ⏎Parameters are separated by a space character. If a parameter has spaces inside, you can use "" to mark the start and end of a parameter. Valid ⏎ (return) characters are 0x0D, 0x0A or 0x0D 0x0A What do I have exactly to enter under "command" in the Device specific command section to e.g. to send the command "standby"? Only "Standby" does not work. Quote Link to comment Share on other sites More sharing options...
Bmwbball88 Posted March 3, 2021 Share Posted March 3, 2021 is it supported to use HTTP params for inbound GET? IE ip:57329/GoodNight&secretkey=2348723948 then in the programming we can check to make sure the secret key is correct? Quote Link to comment Share on other sites More sharing options...
alanchow Posted March 3, 2021 Author Share Posted March 3, 2021 2 hours ago, Bmwbball88 said: is it supported to use HTTP params for inbound GET? IE ip:57329/GoodNight&secretkey=2348723948 then in the programming we can check to make sure the secret key is correct? No we do not capture any URL parameters. It is purely used to fire basic events if it hits a pre-defined URL endpoint. Quote Link to comment Share on other sites More sharing options...
tmj4 Posted July 23, 2021 Share Posted July 23, 2021 Anybody using this to control an AVR/Processor that has IP Control but no C4 IP Driver? @alanchow-- looking to perhaps use this to control an Emotiva XMC-2 since no IP driver exists for C4. Thoughts? IP control commands attached. Emotiva_RMC_Remote_Interface_Description.docx Quote Link to comment Share on other sites More sharing options...
MikeC4programmer Posted July 24, 2021 Share Posted July 24, 2021 I love this driver and use it for several things at my home (Moip switching, Event ghost) but can't seem to get it working for Blue Iris. I need to send a command to BI to switch camera group on the console. http://blueirisip:81/admin?user=user&pw=password&console=[camera group] works from any web browser but i can not replicate from the driver. Blue Iris does not support the http://user:password@blueirisip:81/admin?console=[camera group] format. I've tried almost every possible combination. Anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
ajmccaus Posted October 22, 2021 Share Posted October 22, 2021 @alanchow is it possible to use this driver to send PUT requests to a Philips Hue bridge? I have the trial driver installed but so far haven't been able to make it work that way. Thanks! Quote Link to comment Share on other sites More sharing options...
alanchow Posted October 23, 2021 Author Share Posted October 23, 2021 6 hours ago, ajmccaus said: @alanchow is it possible to use this driver to send PUT requests to a Philips Hue bridge? I have the trial driver installed but so far haven't been able to make it work that way. Thanks! No sorry Quote Link to comment Share on other sites More sharing options...
zaphod Posted December 8, 2021 Share Posted December 8, 2021 How do I duplicate the command: curl -d '' "http://192.168.1.161:8060/keypress/PowerOn" in the Generic TCP driver? I have tried using both the HTTP POST command and the generic TCP command in the following ways: Send HTTP POST to http://192.168.1.174:8060 with data: keypress/home Send generic TCP command: keypress/PowerOn to host 192.168.1.174 on port 8060 But neither of those appear to work. But this HTTP command does work in a BASH prompt, and the iOS app iCurlHTTP. FYI - I am having some trouble with a Roku TV driver right now so I am trying to use this http command to turn on/off a TV. Quote Link to comment Share on other sites More sharing options...
RyanE Posted December 8, 2021 Share Posted December 8, 2021 12 hours ago, zaphod said: FYI - I am having some trouble with a Roku TV driver right now so I am trying to use this http command to turn on/off a TV. Are you using Control4's Roku TV driver, or a 3rd-party one? You could add Control4's Roku TV driver, and use it to send the PowerOn command. The 'On' command of the TV proxy will send PowerOn. RyanE msgreenf 1 Quote Link to comment Share on other sites More sharing options...
zaphod Posted December 8, 2021 Share Posted December 8, 2021 I was using the third party HTI one - I didn't know that there was a Control4 Roku TV driver. Is this new? The appears to work - at least to power on and off. I was having problems with the 3rd party driver. Thanks! RyanE 1 Quote Link to comment Share on other sites More sharing options...
msgreenf Posted December 8, 2021 Share Posted December 8, 2021 Yes. C4 driver is a few weeks old Quote Link to comment Share on other sites More sharing options...
zaphod Posted December 8, 2021 Share Posted December 8, 2021 Thanks Mitch and Ryan! RyanE 1 Quote Link to comment Share on other sites More sharing options...
gimbers Posted March 25, 2022 Share Posted March 25, 2022 Hi Alan, Not sure if this is the place to ask this, but I think I need a little help. I'm trying to trigger a server that feeds three projectors. The only commands I need to send are: preset_1 preset_2 off I did this as a Generic TCP command in Programming. wrote the command as ascii: off/r/n The guys looking after the server say their server received: 6f 66 66 2f 72 2f 6e which is a literal translation. But what they actually need is: 6f 66 66 0d So I'm now sending that as hex, but now they are getting nothing. Can you help? Many thanks in advance, Rex Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.