Http get request
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Http get request
And your rule?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Http get request
Is the one I have write before.
- Attachments
-
- sss.PNG (26.51 KiB) Viewed 18879 times
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Http get request
Have you really studied the wiki?
Especially this section :
https://www.letscontrolit.com/wiki/inde ... rial_Rules
Especially this section :
https://www.letscontrolit.com/wiki/inde ... rial_Rules
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Http get request
I try tom re read all the guide and try to understand...
Re: Http get request
I have partialy solved, but I still have one problem, on the dummy device I'am not able to assign name to the 3 an 4 value. Why??
- Attachments
-
- dddd.PNG (60.94 KiB) Viewed 18849 times
Re: Http get request
There are different types of dummy device. You must chose something with quadruple value.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: Http get request
I have tried also with quad or triple bus the last two is no way to name it... Also if I create a new Dummy no one of the 4 value is nominable...
Re: Http get request
I have solve the issue with the firmware update.
Re: Http get request
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: Http get request
Dear all, sorry for the delay but I not have received the notification for the new post....
By the way, now all working correctly and this is my complete situation: And this is the two rules I use to converting the value and send all to wu:
Rule 1
on T6H#Temperature do
TaskValueSet 4,1,[T6H#Temperature]*1.8+32
TaskValueSet,4,3,[T6H#Temperature]-(100-[T6H#Humidity])/5
TaskValueSet,4,4,([T6H#Temperature]-(100-[T6H#Humidity])/5)*1.8+32
endon
Rule2
on PR#Pressure do
if [PR#Pressure]>800
if [PR#Pressure]<1100
Publish %sysname%/PR/Pressure,[PR#Pressure]
TaskValueSet 4,2,[PR#Pressure]*0.0295301
SendToHTTP weatherstation.wunderground.com,80,/weatherstation/updateweatherstation.php?ID=XXXXX&PASSWORD=XXXXX&dateutc=now&tempf=[TF#TemperatureF]&humidity=[T6H#Humidity]&baromin=[TF#PressureI]&dewptf=[TF#Dewptf]&action=updateraw
endif
endif
endon
Now I have another problem, but I have to made a new post for this.... See you in next post...
By the way, now all working correctly and this is my complete situation: And this is the two rules I use to converting the value and send all to wu:
Rule 1
on T6H#Temperature do
TaskValueSet 4,1,[T6H#Temperature]*1.8+32
TaskValueSet,4,3,[T6H#Temperature]-(100-[T6H#Humidity])/5
TaskValueSet,4,4,([T6H#Temperature]-(100-[T6H#Humidity])/5)*1.8+32
endon
Rule2
on PR#Pressure do
if [PR#Pressure]>800
if [PR#Pressure]<1100
Publish %sysname%/PR/Pressure,[PR#Pressure]
TaskValueSet 4,2,[PR#Pressure]*0.0295301
SendToHTTP weatherstation.wunderground.com,80,/weatherstation/updateweatherstation.php?ID=XXXXX&PASSWORD=XXXXX&dateutc=now&tempf=[TF#TemperatureF]&humidity=[T6H#Humidity]&baromin=[TF#PressureI]&dewptf=[TF#Dewptf]&action=updateraw
endif
endif
endon
Now I have another problem, but I have to made a new post for this.... See you in next post...
Re: Http get request
No dummy or conversion required , just use the formula ( %value%*1.8+32 )on value to convert from C to F.
Next just post the value of device as is.
Regards,
Who is online
Users browsing this forum: No registered users and 22 guests