your current location:首页 > news>Voice control smart furniture system [CC: T] CC: Tweaked Minecraft Game

Voice control smart furniture system [CC: T] CC: Tweaked Minecraft Game

2024-12-05 23:04:55|Myriagame |source:minecraft skins

First of all, this system is based on CC: Tweaked and Advanced Peripherals.

The function is to identify the command of the chat bar and broadcast on the inner network (all equipment will receive and determine whether it is the same as the set).

Installation tutorial:

Get the above network (the device is the device you want to control)

Enter the main server in the main server after ensuring that all device links are connected to the network:

Wget run http://alist.liulikeji.top/hfs/smarthome/server/az.lua

Notice:

Can't have Chinese throughout the journey

Serverid: Enter the server name (your network device is used for the name of the link server)

Key: (Remote control key is used to control terminals or remote controls (not useful for the time being))

Wake Up World: (Wake -up words can only be used (in the chat bar in the chat bar, the wake -up words+instructions will be received by the server) Recommended@)

Then the server is configured and complete

equipment:

Enter on the device

wet run http://alist.liulikeji.top/d/hfs/smarthome/sb/az.lua

SL: (The number of instructions possessed by this device (single -control lamp/device recommend 2 to open one by one))

Then there will appear the following interface

Cut the optical mark into the "" of infoname = ""

Input 1 in the first window and then Ctrl point Save Ctrl point EXIT, second input 2 and then ctrl point Save Ctrl point EXIT push down to know not to jump out of the window (the name of each configuration file cannot be repeated)

Then look at the first one above is debugging (distant system terminal) 1, 2, 3, 4, 5 is your password panel (configure one by one one by one)

Click the password panel you want to configure in the taskbar above

Serverid: Enter the server name you set (forget to see the serverid of the server panel :)

name: Enter your password name (for example: the wake -up words are@ n n n @ktd on Name, fill in ktd on)

LUANAME: The lua file to be executed by this password can see the following lua preset or write it by yourself (the editing interface will be jumped out of the editing interface after the input, if the preset is the ctrl point EXIT)

example:

Service Awakening@ Server Name A Command: Open the lights/turn off the light to turn on the lights: ON turn off the light turnover command: OFF

SL: 2

1: Serverid: a name: on luaname: Redon

2: Serverid: a name: OFF LUANAME: Redoff

LUA code preset (need to be installed with memory)

Redon: (Rush on the front of the front of the device)

Redoff: (Close the redstone signal on the front of the device)

Redreboot

TIME (broadcast real time to the server)

Architecture map:

One server, a chat box, a floppy drive+soft disk (optional)

Code address:

Liulikeji.top (liulikeji.top)

Code principle:

Server: Read the data of the chat bar and detect whether the first character and the wake -up words are the same. If it is all the characters in the second character in the inner network, wait for the device to return the signal (5 seconds overtime will indicate timeout or there is no command without commands..

Equipment: Detecting the data detection data of the inner network and setting whether the name is the same. If it is the code running Luaname and broadcast it on the Internet after running

In