openURL post to Notification for AndroidTV

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

openURL post to Notification for AndroidTV

Post by DewGew »

Hi,
My issue is if I use this code to notify my android TV does not show the text:

Code: Select all

domoticz.openURL({
	url = 'http://192.168.0.100:7676'
	method = 'POST',
	callback = 'notyAndroidTv',
	postData = {
		['msg']= 'Test_message', -- Message to show
	},
})
But if I use this code it shows the text:

Code: Select all

domoticz.openURL({
	url = 'http://192.168.0.100:7676?msg=Test_message'
	method = 'POST',
	callback = 'notyAndroidTv',
	postData = {
		-- ['msg']= 'Test_message', -- Message to show
	},
})
Any Ideas?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: openURL post to Notification for AndroidTV

Post by waltervl »

What is the working url string if you use curl with POST ?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest