<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Domoticz HTTP/HTTPS poller and JSON	</title>
	<atom:link href="https://gabor.heja.hu/blog/2020/01/16/domoticz-http-https-poller-and-json/feed/" rel="self" type="application/rss+xml" />
	<link>https://gabor.heja.hu/blog/2020/01/16/domoticz-http-https-poller-and-json/</link>
	<description></description>
	<lastBuildDate>Wed, 16 Oct 2024 11:48:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3.2</generator>
			<item>
				<title>
				By: Gabor Heja				</title>
				<link>https://gabor.heja.hu/blog/2020/01/16/domoticz-http-https-poller-and-json/#comment-3521</link>
		<dc:creator><![CDATA[Gabor Heja]]></dc:creator>
		<pubDate>Wed, 16 Sep 2020 23:04:09 +0000</pubDate>
		<guid isPermaLink="false">https://gabor.heja.hu/blog/?p=395#comment-3521</guid>
					<description><![CDATA[Hey Benoit,

I believe your code should be like this as your JSON reply is in an array:

&lt;code&gt;local sgv = domoticz_applyJsonPath(request[&#039;content&#039;], &#039;.[0].sgv&#039;)
domoticz_updateDevice(idx, &#039;&#039;, sgv)&lt;/code&gt;

Hope this helps,
Gabor]]></description>
		<content:encoded><![CDATA[<p>Hey Benoit,</p>
<p>I believe your code should be like this as your JSON reply is in an array:</p>
<p><code>local sgv = domoticz_applyJsonPath(request['content'], '.[0].sgv')<br />
domoticz_updateDevice(idx, '', sgv)</code></p>
<p>Hope this helps,<br />
Gabor</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				By: Macbenoit				</title>
				<link>https://gabor.heja.hu/blog/2020/01/16/domoticz-http-https-poller-and-json/#comment-3502</link>
		<dc:creator><![CDATA[Macbenoit]]></dc:creator>
		<pubDate>Sat, 12 Sep 2020 18:17:31 +0000</pubDate>
		<guid isPermaLink="false">https://gabor.heja.hu/blog/?p=395#comment-3502</guid>
					<description><![CDATA[Of course i Did not copy properlly this is thé code but it wont work stil invalid parameter type
local idx = 796
local sgv = domoticz_applyJsonPath(request[&#039;content&#039;], &#039;.sgv&#039;)
domoticz_updateDevice(idx, &#039;&#039; , sgv)]]></description>
		<content:encoded><![CDATA[<p>Of course i Did not copy properlly this is thé code but it wont work stil invalid parameter type<br />
local idx = 796<br />
local sgv = domoticz_applyJsonPath(request[&#8216;content&#8217;], &#8216;.sgv&#8217;)<br />
domoticz_updateDevice(idx, &#8221; , sgv)</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				By: Macbenoit				</title>
				<link>https://gabor.heja.hu/blog/2020/01/16/domoticz-http-https-poller-and-json/#comment-3501</link>
		<dc:creator><![CDATA[Macbenoit]]></dc:creator>
		<pubDate>Sat, 12 Sep 2020 18:14:25 +0000</pubDate>
		<guid isPermaLink="false">https://gabor.heja.hu/blog/?p=395#comment-3501</guid>
					<description><![CDATA[Hello

I havé an invalid parameter type with this json link 
https://pi0d2ded-macbenoit-guest.t1pal.com/api/v1/entries.json?count=1

My code is 
local idx = 796
local sgv = domoticz_applyJsonPath(request[&#039;content&#039;], &#039;.svg&#039;)
domoticz_updateDevice(idx, &#039;&#039; , sgv)

Please help me i am trying to understand sinces days]]></description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I havé an invalid parameter type with this json link<br />
<a href="https://pi0d2ded-macbenoit-guest.t1pal.com/api/v1/entries.json?count=1" rel="nofollow ugc">https://pi0d2ded-macbenoit-guest.t1pal.com/api/v1/entries.json?count=1</a></p>
<p>My code is<br />
local idx = 796<br />
local sgv = domoticz_applyJsonPath(request[&#8216;content&#8217;], &#8216;.svg&#8217;)<br />
domoticz_updateDevice(idx, &#8221; , sgv)</p>
<p>Please help me i am trying to understand sinces days</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				By: Benoit				</title>
				<link>https://gabor.heja.hu/blog/2020/01/16/domoticz-http-https-poller-and-json/#comment-3496</link>
		<dc:creator><![CDATA[Benoit]]></dc:creator>
		<pubDate>Fri, 11 Sep 2020 07:02:28 +0000</pubDate>
		<guid isPermaLink="false">https://gabor.heja.hu/blog/?p=395#comment-3496</guid>
					<description><![CDATA[Hi
Can you give me some help please ?
I need to retrieve a data in json response and I could not figure how even after I read you post.]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
Can you give me some help please ?<br />
I need to retrieve a data in json response and I could not figure how even after I read you post.</p>
]]></content:encoded>
						</item>
			</channel>
</rss>
