Keyboard Shortcuts
Likes
- Crestron
- Messages
Search
Re: Construct and page visibility joins
Hi, Did you use the visibility receive part, I accidentally used the transmit part and that doesn¡®t work for showing a widget/subpage. ? Another thing, I believe there is still an issue that Construct from time to time uses a different ID for contracts. So always sync the? simpl programm after a Construct compile to be shure the programm uses the correct IDs.? ? I did one of my active projects with Construct and beside a none english PC system setup issue, it worked pretty great.? |
S+ module not updating in parent program
Hey guys, I just had something quite strange happen - something I haven't seen in over 2 decades of Crestron programming. So, for a while I go down the rabbit hole of trying to figure out if something has changed with how trace works. Eventually, I notice that the line numbers being reported as having errors are not changing, despite the fact that I have made changes that have shifted the code around. I eventually add gaps so that the line numbers being returned don't actually have any code on them. The result is that the same line numbers are being reported as having errors. I try various combinations?of resyncing the project, adding a second copy from the library and copying over the signals, etc. I even try adding extra signals to the S+ to verify it is synced with the program. The extra signals show up, so I remove them and re-compile, but still no change - no trace statements show and empty line numbers are still reporting errors.
I don't know if that workflow has something to do with it. But every indication was that .smw was using the library versions. For one thing, I removed the ones in the program directory. Additionally, the icon color changed to normal and I no longer got the pop-up window on program load letting me know which version was being used. Terry |
Re: Construct and page visibility joins
When I was playing around with an earlier version, I noticed any regular visibility joins would stop working the moment you added any contract joins. Then I found in a later version that the visibility joins would work only if you used contracts for them all. This becomes an issue when trying to import an existing project from VTPRO that uses digital visibility joins. I reported this to TB and never got a follow up and then they changed the web database and the case is no longer active.?I have continued to use VTPRO in the meantime and I am hoping Construct works more consistently when I try the latest version again.
|
Re: S# Passing Back JSON in response to a GET request
Thanks again Lincoln.
toggle quoted message
Show quoted text
I was missing the FinalizeHeader(). Have a great holiday weekend everyone Jay On 2/16/2024 2:28 PM, jbasen via groups.io wrote:
Thanks Lincoln! |
Re: S# Passing Back JSON in response to a GET request
Thanks Lincoln!
toggle quoted message
Show quoted text
Jay On 2/16/2024 1:51 PM, Lincoln King-Cliby via groups.io wrote:
I won't say it's the best way to do it but... |
Re: S# Passing Back JSON in response to a GET request
I won't say it's the best way to do it but...
toggle quoted message
Show quoted text
Here's a very small snip from one but of my code that does something similar and gets a fair amount of use requestArgs.Response.ContentString += JsonConvert.SerializeObject(displayInfoContent); requestArgs.Response.Code = 200; requestArgs.Response.FinalizeHeader(); -- Lincoln King-Cliby Commercial Market Director Sr. Systems Architect | Crestron Certified Master Programmer (Diamond) ControlWorks Consulting, LLC Direct: (+1)440.771.4807 | Cleveland: (+1)440.449.1100? | Boston: (+1)508.695.0188 | DC: (+1)202.381.9070? | London: (+44) 20 4520 4600 Crestron Services Provider | Biamp Authorized Independent Programmers | Extron Qualified Independent Programmer -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of jbasen Sent: Friday, February 16, 2024 3:04 PM To: [email protected] Subject: [crestron] S# Passing Back JSON in response to a GET request Hi, Trying to do something I've never done before.? I have setup an http server in S# ?? ???? ??? ??? HttpServer Server = new HttpServer(); ?? ???? ??? ??? Server.ServerName = Processor_IP; ?? ???? ??? ??? Server.Port = Processor_Port; ?? ???? ??? ??? Server.OnHttpRequest += new OnHttpRequestHandler(HTTPRequestEventHandler); ?? ???? ??? ??? Server.Active = true; I then have my request handler ?? ???? private void HTTPRequestEventHandler(Object sender, OnHttpRequestArgs requestArgs) ?? ???? { ?? ???? } In the past I've just used this to pass information from another device to a Crestron processor.? In this situation I need to pass back a JSON formatted string to the caller.? Any suggestions would be greatly appreciated. Thanks in advance for the help Jay |
S# Passing Back JSON in response to a GET request
Hi,
Trying to do something I've never done before.? I have setup an http server in S# ?? ???? ??? ??? HttpServer Server = new HttpServer(); ?? ???? ??? ??? Server.ServerName = Processor_IP; ?? ???? ??? ??? Server.Port = Processor_Port; ?? ???? ??? ??? Server.OnHttpRequest += new OnHttpRequestHandler(HTTPRequestEventHandler); ?? ???? ??? ??? Server.Active = true; I then have my request handler ?? ???? private void HTTPRequestEventHandler(Object sender, OnHttpRequestArgs requestArgs) ?? ???? { ?? ???? } In the past I've just used this to pass information from another device to a Crestron processor.? In this situation I need to pass back a JSON formatted string to the caller.? Any suggestions would be greatly appreciated. Thanks in advance for the help Jay |
Re: strange issue with Media Player Object
On Fri, Feb 16, 2024 at 09:42 AM, Eric Luckart wrote:
ckangis, Have you tried the latest Sonos modules? They have a re-establish communication trigger.Eric - Yes, I've been using the System v3.1.1 and the Device v3.2.0 modules since they've been out. When I've had the chance to T/S issues in the last month, my experience is that the 'Restart' trigger does not resolve comms issues... Not that I'm surprised, for some reason Crestron and/or Sonos refuses (IMO) to resolve the root issue and thus secondary issues continue to be a 50% solution. FTR, 50% of our systems have '0' problems with Sonos Comms and the other 50% have constant issues. And yes, I've reviewed the system designs - there are no obvious differences...:( Have your second slot program restart every night at 3am and that will eliminate 90% of your issues...except the ones that happen during the day...The 'Digital age' is really embarrassing... Tony, Sorry to Hijack your thread, though U think that it is kind of relevant to your situation... |
Re: strange issue with Media Player Object
Thanks Chris.
toggle quoted message
Show quoted text
The first site that reported the issue already has the Sonos modules running on a dedicated RMC3, with the CRPC signals running through the 3-Series EISC. I thought the EISC might be causing an issue at first, but it's been running this way for over a year, maybe two. I just updated it from the 3.1.1 modules to the 3.2.0. I might also stagger the ports like you've done. Although I really don't expect those changes to make a difference, I don't think they'll hurt anything either. That same project also has an Autonomic they're trying out - because we first thought it was a Sonos issue, AND I've been telling them to use Autonomic instead of Sonos for several years :-) A couple of days ago I witnessed the same issue with the Autonomic, which let me know it was a Crestron problem, and not a Sonos problem. The Autonomic logic is in the main program, with the CRPC signals connected directly, not going through an EISC. I've done many, many systems with both Sonos and Autonomic over the years, and this is my first time seeing this particular issue. Another project has both Sonos and NAX, but they mainly use Sonos because that's what they're familiar with. Once they started reporting the same issue, I had them try the NAX for a couple of days and I just heard they've seen it with that too. I suspect it has something to do with a recent software, firmware, or database update, only because it seems to have started recently, within the last few months. It could also be that the clients have only "mentioned" it recently, but I have a few that love telling me something isn't working right so I'm sure I would've heard about it :-) --- On Friday, February 16, 2024 at 9:33 AM, ckangis wrote: |
Re: Verizon Fios Stream TV Box
Use this file from the Groups file section...
?Verizon P265.ir????Report File Verizon Fios Remote P265 It's working well for me for both VMS4100 and IPC4100 units |
Re: strange issue with Media Player Object
I have definitely seen this with Sonos. Basically it looks to me like the basic commands like transports (which work without the MPO) are working but more advanced things like Feedback and list selection buttons don't work.
Rebooting the program with the SonosSystem and Device modules typically fixes it...:( This is why for years I've put the Sonos stuff in a separate Slot program so it could be rebooted separate from the main program.? I have the CRPC and CRPC_FB passing thru the 3-series EISC and have not seen any particular issues with this. Note: In my Sonos Program, I've made sure to set each of the Device Module v3.2.0 IP Port Number Parameters to a different port number. (I'm using the range:: 41991, 41992, ....) I've complained since almost day 1 of the Sonos integration that the SonosSystem module lacks a 'restart communications' trigger so that you don't have to reboot the whole program...but crickets as expected... I have not noticed this with Autonomic thus far, but I may be just missing the opportunity. |