
Testing here with SDS011 and ESPeasy on a Wemos D1.
I was hoping to get some graphs during newyear, but now I only can graph the PM2.5.
Moderators: leecollings, remb0
Code: Select all
SendToHTTP 192.168.1.45,8888,/json.htm?type=command¶m=udevice&idx=201&nvalue=0&svalue=[SDS011#PM25]
SendToHTTP 192.168.1.45,8888,/json.htm?type=command¶m=udevice&idx=202&nvalue=0&svalue=[SDS011#PM10]
Can you please share the entire Rule? I am not sure how to make the execution of the request every xx seconds.thorian wrote: ↑Sunday 14 January 2018 21:07 Untill it arrvies I'm using the rules in ESP Easy for ESP8266 to send both PM 2,5 and PM10 to Domoticz:
Where 201 and 202 are Custom sensors.Code: Select all
SendToHTTP 192.168.1.45,8888,/json.htm?type=command¶m=udevice&idx=201&nvalue=0&svalue=[SDS011#PM25] SendToHTTP 192.168.1.45,8888,/json.htm?type=command¶m=udevice&idx=202&nvalue=0&svalue=[SDS011#PM10]
Code: Select all
On System#Boot do
timerSet,1,10
endon
On Rules#Timer=1 do
GPIO,12,0
timerSet,2,60
endon
On Rules#Timer=2 do
SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command¶m=udevice&idx=130&nvalue=0&svalue=[dust#PM10]
SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command¶m=udevice&idx=133&nvalue=0&svalue=[dust#PM1]
SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command¶m=udevice&idx=132&nvalue=0&svalue=[dust#PM25]
GPIO,12,1
timerSet,1,1800
endon
Code: Select all
On System#Boot do
timerSet,1,10
endon
Code: Select all
On Rules#Timer=1 do
GPIO,12,0
timerSet,2,60
endon
Code: Select all
On Rules#Timer=2 do
SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command¶m=udevice&idx=130&nvalue=0&svalue=[dust#PM10]
SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command¶m=udevice&idx=133&nvalue=0&svalue=[dust#PM1]
SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command¶m=udevice&idx=132&nvalue=0&svalue=[dust#PM25]
GPIO,12,1
Code: Select all
timerSet,1,1800
endon
Users browsing this forum: No registered users and 1 guest