This post is going to be the last one covering CWS (for now). We’ve created an API that lets us view the current system settings, now we just need a way to update them. In this part, I’ll go over how to take in and apply new settings.
Continue reading “CWS: Part 4”Tag: crestron
Short Take: Recover a VTZ
Today I was asked if it is possible to recover a VTZ (compiled touchpanel layout) from a physical panel and use it on a replacement panel. In this particular case, they want to take the layout off a TST-902 panel and use it on a new TSW-760 that is being installed. The client doesn’t have the existing uncompiled project (and possibly can’t get it). I said it might be possible as a last resort, but for the sake of maintenance and service, lets try to get the uncompiled project first.
Continue reading “Short Take: Recover a VTZ”CWS: Part 3
In this part, we’ll build out a system configuration page that uses CWS to make changing system settings easier.
Continue reading “CWS: Part 3”CWS: Part 2
In this part, I’m going to look at adding route handlers to our CWS server. I’ll continue adding to the program we wrote in CWS: Part 1, so grab those files from GitHub if you’d like to follow along.
Continue reading “CWS: Part 2”CWS: Part 1
One thing that always seems to come up during the C# labs at Masters is Crestron Web Scripting (CWS). I never think about adding this to my own projects, but it is a good way to provide some level of advanced configuration (or even remote control) of the running program. I’m watching the Intermediate C# videos this morning and see that the first lab dives right into using CWS. So in the spirit of Masters, let me try to incorporate some of their teachings into my day-to-day programming.
I’m hoping in this series of posts to build out a CWS program that can:
- Work on 3-series and 4-series processors
- Configure a room system
- Provide a REST API for external control
Let’s begin!
Continue reading “CWS: Part 1”Community Support
Like most mornings, I started today by reading through the Crestron Groups.io daily digest. It’s the spiritual successor to the old Yahoo message group. Reading through those posts really helped me out when I first started programming Crestron in SIMPL. I was already familiar with control systems (I’d been immersed in AMX for a couple years by that point), but coming to SIMPL from any other imperative programming language requires some different thinking. Lucky for me, there was a thriving community of professionals who were willing to share their knowledge and experience.
Continue reading “Community Support”VC-4: Websocket-Sharp
The first version of my web console bastardized the Control Concepts module. Since we’re targeting the VC-4, we have unrestricted access to standard libraries that fall outside the Crestron sandbox. In this part, I’ll swap out WebsocketServer.dll for a NuGet package containing a WebsocketServer class instead.
Continue reading “VC-4: Websocket-Sharp”VC-4: Websockets
This post picks up right where the last one left off. I got VC-4 running on an RHEL instance, but now we’re back to some of the challenges that VC-4 brings… like printing to a console window.
Continue reading “VC-4: Websockets”VC-4: RHEL 8
The last time I wrote about VC-4, it was still based on Ubuntu 16.04. Crestron released an update around December 2020 that switched to Red Hat Enterprise Linux (RHEL) 8. I cut my teeth on Red Hat Linux 5, and once we had faster DSL Internet at home, I tried out a number of other Linux distros like Slackware, Debian, Gentoo, and finally Ubuntu. CentOS is a freely available version of RHEL, and the VC-4 installer claims to support either. So, in late December I decided I would create a new CentOS VM and try out the new version of VC-4.
Continue reading “VC-4: RHEL 8”A Quick Guide to Webpack
Webpack is the build system for your CH5 project. Think of it like a compiler for web apps. It’s a really flexible tool, so there’s a lot of complexity to it. I was having some difficulty separating out only the pieces I needed to make a very bare-bones configuration. I’m sure I’ll have to revisit this topic later once I’ve gathered a bit more experience playing with it.
Continue reading “A Quick Guide to Webpack”