Checking the weather


#1

this worked until the weather server went down.
I tried changing the $weather to $twcweather but still does not work
Rick


#2


Changed to this but still does not work


#3

The format is a bit different now. We can’t just change $weather to $twcweather.

The new current temp can be found with this:
$twcweather.conditions.temperature

The current conditions can be found with any of these:
$twcweather.conditions.wxPhraseLong
$twcweather.conditions.wxPhraseMedium
$twcweather.conditions.wxPhraseShort

All known data points can be found on the Wiki.


#4

…also I believe that $twcweather only reports Fahrenheit temperatures in whole numbers, so you can delete the round command & associated variable.


Edit :
Can anyone confirm if Celsius is treated the same way??
(or does it report decimals?)


#5

I tried your suggestion. Im missing something still not working what have I done wrong


#6

(Other than the triple empty IFs), everything looks ok from what I can see.
(although you could make the variable {temp} an integer now)
At 11:18, you should see the piston run, and the variables stored up top.

As far as the GET request (line 35), I cannot see anything, so can’t tell you what is wrong there.


#7


OK I cleaned it up a bit
Still cant get the $twcweather.conditions.wxPhraseLong to work


#8

Try an ‘Expression’ box with no quotes or anything. (same with your temp variable)

temp


#9


Thats what I have.


#10

Just for kicks, I tried importing your “qchpn” piston above, and I get this error:
temp

This leads me to think that your piston has corrupted somehow.

I suspect if you re-create this piston from scratch, it should work.
(although on line 27 change tempRound to just temp)


#11


Thanks for your help. I re-created the piston with the same results. The temp always reports “0” and the weather cant be found


#12

Very strange… I guess I should probably ask:
Do you have any pistons that have successfully used the new $twcweather code?

If your answer is “no”, I would guess that your webCoRE is not fully up to date.


#13

Thanks your the man you got it right on. Webcore was out of date. Not sure y that mattered but Its working now great thanks to you
Have a good day


#14

This is because the webCoRE code had to change to account for the new $twcweather.