Reliable LUX for Piston Execution


#21

I always get 0 reported back, when I edit piston and watch it evaluate it I can see it’s always a 0. If I request something else I get non zero results for example

This reported “10” just now integer($weather.conditions.current_observation.visibility_km)
but I get “0” for integer($weather.conditions.current_observation.solarradiation)

Suggests to me that it’s location specific works for some not others. I ran it for a 24hrs and it’s always been 0.


#22

I concur – my weather unerground site is
https://www.wunderground.com/personal-weather-station/dashboard?ID=KPAALBRI11

if you look I am not providing Solar from my PWS so it has nothing to collect. There are a few sorta nearby stations so i’ll take a gander @ their data and see if I can find a way to use

Is there anyway to use the WeatherAPI in WC and pass it a different PWS station code?


#23

You might be able to if you change your location.


#24

yeah - that I can do but defeats the purpose of other bits I am doing / planning … would be easier to drop $125 on a sensor for my Davis unit and start pushing the SR data now instead of waiting for May/June to buy/install it and a UV sensor


#25

Same, changing location would break other things. Shame this looked like a good script for me!

Off to find another way of getting a reliable LUX setting


#26

My apologies for those out in the stix…didn’t realize solar radiation was a local weather API.


#27

Its all good … its just given me a real reason to buy a new toy …


#28

Hi. Could someone please tell me how would I implement using this piston with a motion sensor and lighting ? Thanks


#29

Here is one of the simplest ways.
I use a variable but you can just say if lux is above a certain figure.


#30

Sorry for the simple questions but how and where would I change it to Lux?


#31

Do you have a device that measures illuminance ?
If so, click on the UV variable statement and change it from variable to physical device.
Select your device and select illuminance.
Set the condition and level to suit. Maybe “IS BELOW 20”.


#32

That makes sense. Thank you for your help. I’m just starting with Webcore so there are still a few things I’m unsure about.


#33

You can use weather station as well if you don’t have an illuminance device.
Use UV as it is more accurate.
Look at post 13 above.


#34

Hate to revive this, but how are you using $twcweather UV reporting in pistons similar to this? I’d like to turn on certain lights when it gets cloudy and the light outside is somewhat dark.


#35

Yeah I don’t use WebCore or ST anymore. Switched over to Hubitat.