Keyboard Shortcuts
Likes
- Crestron
- Messages
Search
.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: |
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: |
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. However, 3-Series/4-Series NVRAM folder is separated by Program Slot subfolders. |
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 ? 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. |
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,
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'}]}
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: 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: 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 |
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.??
|