Keyboard Shortcuts
Likes
- Crestron
- Messages
Search
Re: http command works when sent from a browser but not when sent from a Crestron system
toggle quoted message
Show quoted text
|
Re: http command works when sent from a browser but not when sent from a Crestron system
toggle quoted message
Show quoted text
|
Re: http command works when sent from a browser but not when sent from a Crestron system
Hi Jay, I use Wireshark at work exclusively on remote machines.? I RDP into a remote server or PC, install Wireshark, then before starting a capture I add a filter to keep the files size down.? It hasn't failed me yet. Good luck, Thyce On Sun, Aug 1, 2021 at 12:18 PM jbasen <jay.m.basen@...> wrote:
|
Re: http command works when sent from a browser but not when sent from a Crestron system
¿ªÔÆÌåÓýThanks Ken, I am sending multiple different commands to the hubitat that all
work perfectly.? It is just the for suspending watering until a
date that is causing issues.? So, I know that the token and
authorization are fine.? My guesses are that it is either a header issue or something with the way the url (with the date) is being encoded that is causing the problem.? I was hoping someone would look at the url, that has more http knowledge than I do, and the issue would be obvious to them. Using curl is a great idea since there is much more control of
the headers than with a browser.? Thanks again Jay On 8/1/2021 11:51 AM, Ken Ragan via
groups.io wrote:
|
Re: http command works when sent from a browser but not when sent from a Crestron system
¿ªÔÆÌåÓýThanks Wyatt. The challenge here is that I'm almost 5000 miles away from where all the hardware is located so trying to use wireshark is a bit of an issue.? Also, all the commands the software is sending to the Hubitat work with the single exception of the command to suspend watering.? There is just something different when the date is attached to the end of the url that works when entered using a browser but doesn't work when sent through S#. Thanks again Jay On 8/1/2021 7:58 AM, Wyatt J wrote:
I have been messing with some HTTP stuff recently myself.? I've found the best thing is to run wireshark on the system with the browser and see what the traffic back and forth looks like.? In my case the device was doing digest authentication, which is impossible to deal with without S#. |
Re: http command works when sent from a browser but not when sent from a Crestron system
I have no experience with the Hubitat or the Hydrawise, but ideally the response for an auth issue should be a 401 or 403 and not the 404 that you're seeing.? A 404 is supposed to indicate an issue in the URL string.? However, it could be worth a try to leave off the access_token URL parameter (and/or supply a bogus value) on the Crestron call and see if a 404 is still returned.? If the response changes to a 401 or 403 then you have some confidence that you're not dealing with an auth issue with your access_token.? Also, may want to try the browser calling the URL without the access_token and compare that with Crestron calling the URL without access_token to see if there's a difference in response/behavior between the two in that scenario.?? I've seen some equipment that needed certain headers before playing nice, so another suggestion would be adding some of the headers that aren't currently being sent from the Crestron call.? To help with issues like this I tend to use the curl command from a command prompt instead of the browser when troubleshooting.? If a basic curl command with no headers works, then I would suspect something in how the Crestron program is formatting the command and at that point you could try comparing the curl call vs the Crestron call (with the webhooks site or wireshark) without the noise of the additional headers that the browser introduced.? If curl also fails when you use it without headers, then could try adding the headers one by one that the web browser is sending.?? Good luck!
On Sunday, August 1, 2021, 08:58:36 AM CDT, Wyatt J <wyatt@...> wrote:
I have been messing with some HTTP stuff recently myself.? I've found the best thing is to run wireshark on the system with the browser and see what the traffic back and forth looks like.? In my case the device was doing digest authentication, which is impossible to deal with without S#.
|
Re: http command works when sent from a browser but not when sent from a Crestron system
I have been messing with some HTTP stuff recently myself.? I've found the best thing is to run wireshark on the system with the browser and see what the traffic back and forth looks like.? In my case the device was doing digest authentication, which is impossible to deal with without S#.
|
Has Anyone controlled an (Australian) Foxtel Now Box over IP?
I am doing a residential and they are using Foxtel Now, the streaming service and have 2 of the dwt765fxt boxes. It looks like they are a repurposed google box.
I would like to get better control of it that IR (a 14 button remote) so was wondering if any one has an API for it? Any help appreciated. |
http command works when sent from a browser but not when sent from a Crestron system
I'm working with someone in England helping them to control their Hunter Hydrawise irrigation system that is connected to a Hubitat Elevation hub from a Crestron system.? Most of the commands being sent to the Hubitat to control the Hydrawise work fine.? Such as:
[Hubitat IP Address]/apps/api/20/devices/100/open?access_token=[Access Token] However, I'm having problems with the suspendZone command; which takes a date in the format of yyyy-mm-dd.? The Hydrawise will suspend watering until that date. The format of the command ends up being: [Hubitat IP Address]/apps/api/20/devices/100/suspendZone/2021-12-31?access_token=[Access Token] The strange part is when the person I'm working with sends this particular command from a browser to their Hubitat to control their Hydrawise system they are telling me it works fine.. However, when sent from a Crestron processor to their hubitat they are reporting they get the following error: HttpException: HTTP/1.1 404 Not Found I've looked at the differences between if the command is sent from a browser to webhooks.site and when the url is sent from a Crestron system to webhooks.site.? I'm not seeing anything that jumps out at me that would stop this from working. When sent from the Crestron system I'm not setting any http header info. The browser, on the other hand sets the following: |connection|close| |---|---| |sec-gpc|1| |accept-language|en-US,en;q=0.9| |accept-encoding|gzip, deflate| |accept|text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9| |user-agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36| |upgrade-insecure-requests|1| |dnt|1| |cache-control|max-age=0| |host|webhook.site| |content-length|| |content-type|| Any ideas on what could be different that would keep the Hubitat command from being accepted when sent from the Crestron system would be greatly appreciated. Thanks in advance for the help Jay |
Re: closing an X-Panel
Thanks everyone for the ideas.
toggle quoted message
Show quoted text
It looks like VMK-WIN will do what I need and be the simplest to implement, so I'll start with that. --- On Saturday, July 31, 2021 at 1:49 PM, Geoffrey Reynolds wrote: |
Re: Question: Easy way to convert a Crestron Mobile to Crestron App project??
Thanks Zac,
Yes, I missed the Convert to Smart Graphics Button in VTP - After a couple tries, it actually worked pretty good I think. All the text is microscopic, so there's some work to be done there, but overall it's not terrible, at least not like starting from scratch!! We're still going to discuss a re-write, but this give me a good option - Thanks for all the quick responses!! |
Re: closing an X-Panel
It makes far more sense to use something like EventGhost or MCEController rather than reinventing the wheel.? Both of these can respond to commands via TCP from the Crestron controller and issue whatever command you need to close an app or kill the process (much cleaner to close the window; killing a process should be more of a last resort). Geoff On Sat, Jul 31, 2021 at 1:46 PM Natalie Jackman <natalie.jackman.1981@...> wrote:
|
Re: closing an X-Panel
¿ªÔÆÌåÓýYou could write a server program on your machine running the xpanel ?that works over tcp and when you send the command it closes the xpanel.On Jul 31, 2021, at 12:16 PM, Steve Kuehn <steve@...> wrote:
|
Re: Question: Easy way to convert a Crestron Mobile to Crestron App project??
¿ªÔÆÌåÓýCrestron Mobile is the old style of panel and Crestron App is smart graphics. They are not compatible. You will have to make a new panel and design it to emulate the old panel.On Jul 31, 2021, at 12:11 PM, ckangis <chris@...> wrote:
|
Re: Simpl compiled zipped file is missing sgd
Is it possible this is happening when the original SGD files were kept in different directory locations?? I know I've had issues with SIMPL complaining if I move around my vtp files when I'm working on them (like when the file names get too long and I have to move to a temp directory), SIMPL may be looking for the SGD files in that original location and can't find them (even though they were pulled into the archive, and they now live in the local directory)?? Is that what's happening when the archive/unarchive process is happening?
|
Re: Question: Easy way to convert a Crestron Mobile to Crestron App project??
There is a way to do it but the result not be anywhere close to what you had and it would only work for smaller projects.? I tried it on one of my larger Crestron Mobile projects and it quickly mushroomed to a file over 30x larger and very quickly crashed my windows machine. At 700mB, you will get an allocation memory error. If that happens, delete unused graphics and delete commented out pages. When project size gets down to 248MB, you will no longer get allocation errors. Plus no Anchor points in Smart Graphics.
So the short answer is no.? You will be better off starting from scratch. |