Http get request

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mr-varga
Normal user
Posts: 22
Joined: 29 Jan 2018, 18:41

Re: Http get request

#21 Post by mr-varga » 18 Apr 2018, 19:18

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:
meteo.PNG
meteo.PNG (64.6 KiB) Viewed 18411 times
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...

danmero
Normal user
Posts: 64
Joined: 11 May 2017, 01:19

Re: Http get request

#22 Post by danmero » 06 May 2018, 01:09

mr-varga wrote: 29 Jan 2018, 19:53 The firs think I have to do, is to create a Dummy Device who convert a °C in Fahrenheit, because the wu strung need Fahrenheit.
I create a Single DummyDevice with value called TemperatureF. In the rules I wrote this:
TaskValueSet 4,1,[T6H#Temperature]*9+32
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,

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 72 guests