%duration%
, %daysLeft%
)%percentDecimal%
)Play Sound
, and Play Sound from Folder
sub-actions%raiderNames%
Anytime CPH starts, it will now backup your configuration files before anything else is done, and place them in a time stamped backup zip, within a backup folder.
I've included basic Speech to text support within CPH, you can setup commands, which are specific words of phrases that can be detected, or you can use dictation for just talking and setup actions against words that may occur.
As this uses the built in Windows Speech Recognition engine, be sure you have trained this within Windows to get better results.
You can also change which input device is used for speech recognition.
See Execute Code for full details and usage of this new sub-action
See Websocket Server for full details and usage of this new capability
See Websocket Clients for full details and usage of this new capability
Using a port of your choice, you can send a UDP packet to execute an action you have available. The settings for this are available through the Websockets
tab.
{
"request": "DoAction",
"action": {
"id": "id (optional)",
"name": "name (optional)",
},
"args": {
"value": "value",
}
}
If you are looking to add the ability to send a UDP packet within a program you are writing the following code is all that is needed to broadcast:
public async Task SendUdpPacket(string udpMessage)
{
var ipEndPoint = new IPEndPoint(IPAddress.Broadcast, Port);
using (var udpClient = new UdpClient { EnableBroadcast = true })
{
var udpMessage = DynamicText.Parse(Payload, optional);
var udpPayload = Encoding.UTF8.GetBytes(udpMessage);
await udpClient.SendAsync(udpPayload, udpPayload.Length, ipEndPoint);
}
}