LUA Problems since 2023.1 Topic is solved

Moderator: leecollings

Post Reply
dgilbert2
Posts: 95
Joined: Wednesday 16 August 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: UK
Contact:

LUA Problems since 2023.1

Post by dgilbert2 »

I am having problems getting a LUA script to work since upgrading to 2023.1, which works fine on previous releases.

The code accesses a LightwaveRF Link controller with an IP 198.168.1.127 but it does not change state (eg switch lights on/off) when issued with the (extracted) LUA code below;

Code: Select all

--send complete command to LightwaveRF Link
            UDPSend(IPaddress,LWCmd)
            print ( "Command sent to " .. IPaddress .. " is " .. LWCmd)

function UDPSend(ip, message)
    local port = 9760
    udpcall = "echo -n " .. message .. "| nc -4u -w1 " .. ip .. " " .. port .. " &"
    os.execute(udpcall)  
    return
The log output below shows no errors and with the correct command being sent. I have added 192.168.1.127 to my "Local Network" under security and also tried "Allow Basic Authentication over plain HTTP", nothing has worked though. Any suggestions please? (BTW I have rolled back to 2022.2 and it works, its just something to do with 2023.1?).

2023-03-06 15:40:13.075 Status: LUA: Command sent to 192.168.1.127 is 284,\!R8D3F0
dgilbert2
Posts: 95
Joined: Wednesday 16 August 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: UK
Contact:

Re: LUA Problems since 2023.1

Post by dgilbert2 »

Sorted, the issue was with "Bulleseye", it seems the latest distribution package is missing ncat so installed with:

sudo apt install ncat
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest