Weather temperature incorrect


#1

I’ve got a piston that turns on my water fountain, and part of the if statement is the temperature to prevent it turning on whilst icy.

For some reason, it’s evaluating the temperature at 4c when in fact it is currently -2c.

Any suggestions? My location is setup correctly


#2

The weather temperature is a measurement near you but not at your location. It will not always match exactly a temperature reading you take yourself or even another source you use to check. I suggest you put a buffer on the weather temperature like 3-5C. I.e., don’t run if weather says < 5C just to be safe.


#3

The -3 reading came from my phone using the Google weather app.

They all get their data from likely a similar source so should be quite accurate


#4

It is accurate…but your phone isn’t taking the temperature from your location. It’s getting it from a thermometer somewhere in your area that may or may not be exactly the same as it is at your house.

Think of it this way…Alexa may tell me it’s raining in my area, but I step outside my door and don’t see any rain. The rain could be falling on the weather station in my local area, but not necessarily on my house. If you want to know what the exact temperature at your house is, you will need to put up a thermostat at your house (which is something I intend to do soon as well, since my house is far north of the center of my town, and is generally colder.)


#5

Yes, but WebCore doesnt get the temperature from my location either. It likely gets it from the same API as Google.

Anyway, I fixed it by using integer($twcweather.conditions.temperature)


#6

I think what @Mebejedi was trying to say is, no matter where the weather data comes from, it covers many square miles. This means at any given moment, you can expect the temperature at your house to be a couple of degrees off…


#7

I understand that. What I’m saying though is that Google, on my phone, will do exactly the same. It’s not pinpoint for my house.

They will get their weather data from someone, and it all likely comes from the met office. So regardless, something is a miss.

I don’t know where the dates from using the Weather expression I was originally using comes from, but it’s not accurate at all

Anyway, as I said above, I switched the expression to use twc and it’s correct and matches my phone (which is pretty accurate)


#8

Check your ST app settings for where it thinks your location is at. Or set it somewhere far, save it then change it back to the proper location.


#9

The code:
[Weather : temperature]
is not a “built-in” feature.

If you have a device called “Weather”, then it should show the temp of that device.


In other words, that command does nothing to 99% of users.

pic