¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: Crestron Go app on iPad

 

had him set the orientation in the iPad to landscape for the crestron app
now it works??


Re: .net issue with simpl

 

online ID 1001084 addresses the issue and provides a link for the .net download


Re: .net issue with simpl

 

Never mind.? Should have used the search option first.? Found the online ID in a post from a couple of weeks ago.


Re: .net issue with simpl

 

Do you have the .net 3.5 runtime or the SDK? You have to install the .net 3.5 SDK, you can download it from OLH 1001084.


.net issue with simpl

 

I have a computer on site running windows 10 with all updates installed.? When I try to compile I get a lot of warnings/notices now and one of them is telling me that it requires .net 3.5.? I check windows features and it is enabled, I tried reinstalling simpl with master installer and the download link fail when it tries to install .net.? I have installed .net separately and still have issue.? Any ideas?


Re: Checking Processor type in S#

 

Since this is not S# Pro, you might consider just checking for control system type in the S+ wrapper and passing it back.?



/*
? Global Variables
*/
?
INTEGER SystemType;
?
/*
? Main()
*/
?
Function Main()
{
? ? WaitForInitializationComplete();
?
? ? //determine 2 or 3 series environment
? ? SWITCH( GetSeries() )
? ? {
? ? ? ? ?CASE (2): { SystemType = 2; }
? ? ? ? ?CASE (3): { SystemType = 3; }
?CASE (4): { SystemType = 4; }
? ? }
PRINT("+Setup: SystemType = %d\n",SystemType);
}
?


File /Switch-Buffer.zip uploaded #file-notice

[email protected] Notification
 

The following files have been uploaded to the Files area of the [email protected] group.

By: mark@...

Description:
Need a bunch of analog buffers? Get sick of CtlC,CtlV,F9,CtlC,CtlV,F9? Switch-Buffer is a package that contains a bunch of abufs. Nothing more, nothing less. You get to package your untidy buffer folder into a single module and don't have to do the tedious copy/paste/modify routine. N-1 takes a number of inputs and passes them to a single variable. 1-N takes a single variable and buffers them to a number of outputs.


File /StringToXMLSorted v4.zip uploaded #file-notice

[email protected] Notification
 

The following files have been uploaded to the Files area of the [email protected] group.

By: mark@...

Description:
Need to read/write to a file, but file ops are a little beyond you? StringtoXMLsorted is a S+/S# module that will read & write industry standard XML format files in your processor NVRAM. * handles any number of records * records can contain from one to five separate data elements. * records can be sorted alphabetically on the first data element. * reports number of records found, for driving dynamic lists. * file scan be ported to/from processor via FTP and edited on a PC using any XML file tool such as microsoft's free XML notepad. A couple of use cases: TV channel presets Configuration values IP addresses Enjoy!


Re: HttpsClient => Content-Length issue

 

I'm not certain what is going wrong with your content length header, however I wanted to share how I was handling the headers in a different way than your code. Perhaps it will be helpful to you. This seems to work consistently for me with any type of header I have tried so far. Hope this helps.

Partial code below:

?????? public void SomeMethod()
??????????????? url = "someURL";

??????????????? var headers = new HttpsHeaders();
??????????????? var authHeader = new HttpsHeader("Authorization", authToken);
??????????????? headers.AddHeader(authHeader);

??????????????? response = SendRequest(url, RequestType.Get, headers, "");
??????????????? // do some response processing here


????? private HttpsClientResponse SendRequest(string url, RequestType type, HttpsHeaders headers, string body)
??????? {
??????????? string myURL;

??????????? // setup the client
??????????? HttpsClient client = new HttpsClient();
??????????? client.HostVerification = false;
??????????? client.PeerVerification = false;
?????????? ?

??????????? // setup request
??????????? HttpsClientRequest request = new HttpsClientRequest();
??????????? myURL = String.Format("https://{0}/{1}/{2}", ServerAddress, APIVersion, url);
??????????? request.Url.Parse(myURL);
??????????? request.RequestType = type;
??????????? if (headers != null)
??????????? {
??????????????? request.Header = headers;
??????????? }
??????????? request.Encoding = Encoding.UTF8;
??????????? request.ContentString = body;
??????????? request.ContentSource = ContentSource.ContentString;

??????????? // dispatch the request below


Re: Using Event Scheduler 2 (v1.2) with 4-series

 

To clarify just a bit...

Event Scheduler v1.2.0 dates back to 2-Series, before 10 program slots were available.
So for 2-Series \\NVRAM\\scheduler.dat in SIMPL simply refers to \NVRAM\Scheduler.dat.

However, 3-Series/4-Series NVRAM folder is separated by Program Slot subfolders.
So \\NVRAM\\scheduler.dat in SIMPL now actually refers to \NVRAM\ProgIDTag\scheduler.dat.
(ProgIDTag is arbitrary, but must match what you set in SIMPL under "Project > Edit Program Header > Program ID Tag")


Re: DM TX 4KZ - Console Commands

 

In this case, yes. Update: I have got that command down now and am able to switch as needed now.


Re: Extracting part of a return string

 

¿ªÔÆÌåÓý

If the OP were trying to process the entire string or if there was more variability in the strings I would agree but it seems for what they want/need it could be done in an SIO, for example:

?

Parameter 1

'recording': {'state': 'idle',

?

Parameter 2

'recording': {'state': 'running',

?

Then take those to a IL (or an INIT/EQU combo) to latch the recording status.

?

Parameter 3

'live': {'available': True, 'linked_to_recording': False, 'state': 'idle',

?

Parameter 4

'live': {'available': True, 'linked_to_recording': False, 'state': 'running',

?

Then take those to an IL (or an INIT/EQU combo) to latch the live status

?

If you need a ¡°recording and not live¡± ¡°live and not recoding¡± ¡°live and recording¡± FB you could either use a collection of gates or a TT to yield that result.

?

Of course this would be real easy and the most robust/error resistant in S# where you can just deserialize the JSON into an object

?

--

Lincoln King-Cliby, CTS, DMC-E-4K/T/D
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? | Fax: (+1)440.449.1106
Crestron Services Provider | Biamp Authorized Independent Programmers | Extron Qualified Independent Programmer

?

From: [email protected] [mailto:[email protected]] On Behalf Of l_codd
Sent: Thursday, February 10, 2022 4:58 AM
To: [email protected]
Subject: Re: [crestron] Extracting part of a return string

?

There are ways to extract and match strings in SIMPL, especially if they are fixed length or if there is a fixed pattern, which your strings appear to have.
However, the string example you present appear to be too long to handle in SIMPL.
Therefore, you will need to use S+, and doing so will make the job a lot easier.

Lindsay


Re: Extracting part of a return string

 

There are ways to extract and match strings in SIMPL, especially if they are fixed length or if there is a fixed pattern, which your strings appear to have.
However, the string example you present appear to be too long to handle in SIMPL.
Therefore, you will need to use S+, and doing so will make the job a lot easier.

Lindsay


Extracting part of a return string

 

Hi,

I was wondering what the best way in SIMPL was to extract part of a return string to enable another digital signal.?


for example:?
my return varies between states like below: I need to extract; say the ¡®recording¡¯: {¡®state¡¯: ¡®running¡¯ part of the string and that enables a Recording message on my touch panel?
?Preview is state running (Recording is state idle also live)


state={'profile': 'signal-test', 'preview': {'state': 'running', 'status_message': 'Preview is running', 'hls_playlist': '/static/hls/7abb/adaptive.m3u8'}, 'recording': {'state': 'idle', 'status_message': 'Ready to record'}, 'live': {'available': True, 'linked_to_recording': False, 'state': 'idle', 'status_message': 'Ready to start'}, 'paused': False, 'video': [{'type': 'vtestsource', 'name': 'vsource-4c68', 'device': 'blue', 'capture': '1920x1080@25', 'signal': 'fake', 'state': 'running'}, {'type': 'vtestsource', 'name': 'vsource-af64', 'device': 'green', 'capture': '1280x720@25', 'signal': 'fake', 'state': 'running'}]}


- Recording is state running and live is state idle

state={'profile': 'signal-test', 'preview': {'state': 'running', 'status_message': 'Preview is running', 'hls_playlist': '/static/hls/7abb/adaptive.m3u8'}, 'recording': {'state': 'running', 'status_message': 'Recording in progress', 'folder': '/home/ubicast/mediacoder/media/20220208-181139-0d80', 'time_in_sec': 8, 'timecode': '0:00:08'}, 'live': {'available': True, 'linked_to_recording': False, 'state': 'idle', 'status_message': 'Ready to start'}, 'paused': False, 'video': [{'type': 'vtestsource', 'name': 'vsource-4c68', 'device': 'blue', 'capture': '1920x1080@25', 'signal': 'fake', 'state': 'running'}, {'type': 'vtestsource', 'name': 'vsource-af64', 'device': 'green', 'capture': '1280x720@25', 'signal': 'fake', 'state': 'running'}]}


- Live is state running and recording is state idle

state={'profile': 'signal-test', 'preview': {'state': 'running', 'status_message': 'Preview is running', 'hls_playlist': '/static/hls/7abb/adaptive.m3u8'}, 'recording': {'state': 'idle', 'status_message': 'Ready to record'}, 'live': {'available': True, 'linked_to_recording': False, 'state': 'running', 'status_message': 'On Air'}, 'paused': False, 'video': [{'type': 'vtestsource', 'name': 'vsource-4c68', 'device': 'blue', 'capture': '1920x1080@25', 'signal': 'fake', 'state': 'running'}, {'type': 'vtestsource', 'name': 'vsource-af64', 'device': 'green', 'capture': '1280x720@25', 'signal': 'fake', 'state': 'running'}]}


Re: Fusion C#

 

Thank you


Re: Stupid Sonos logs #sonos

 

Sonos is only the tip of the iceberg in regards to bloating the logs...It would at least be great if someone actually knew what half the entries meant??


Re: DM TX 4KZ - Console Commands

 

I guess you are using a non-crestron control system?


Re: ZeeVee Zyper 4K Management Platform.

 

Tray,

I didn't write the Crestron module but we did write drivers for other platforms and they way you are sending the strings pretty closely matches our drivers. We are definitely sending the quotes around the command to send, as advised by ZeeVee. If I recall, once the connection for 232 is opened you can send or receive and then it get closed if you switch away, so you can maintain an rs232 connection, but they we have written it is more of a one and done type thing, much like yours.

rich


DM TX 4KZ - Console Commands

 

Does anyone have a list of console commands for this device? All I really need is the command to switch between HDMI input 1 and input 2 as the transmit source, but any commands available would be appreciated.

TIA,

erik


Re: Crestron Shade Custom Option

 

I have found out that it is possible to power the CSM-QMTDC-163-1-EX motor with a battery pack.? This is not supported by Crestron but it can be done.? The motor draws approximately one watt in standby mode at 24v DC and 43.5 watts during motion.? The manufacturer of the CSF-LLT05 fabric is Turnils in Bufurd, GA.??