Hi Alec, The simulator driver (bin/weewx/drivers/simulator.py) is fairly basic and most obs are output as a repeating sinusoidal wave over some period. Taking windSpeed for example, the code that defines it characteristics is:
'windSpeed' : Observation(magnitude=5.0, average= 5.0, period=48.0, phase_lag=24.0, start=start_ts), This says the emited 'windSpeed wave' will have a magnitude of 5 with an average value of 5, in other words windSpeed will vary from 0 to 10 over the cycle. period=48.0 means the sinusodial wave has a full wave cycle of 48 hours. phase_lag=24.0 means the wave is offset by half a wavelength (24.0/48.0). The function used to generate the windSpeed value is based upon the cosine function so put altogether we have windSpeed starting at 0, building up to 10 over a period of 24 hours and then falling to 0 over the next 24 hours. In other words it is very slow changing, nothing like wind in nature. If you look at windSpeed values by running weeWX directly or looking at windSpeed in your database you will see it does in fact change albeit very slowly to start with and not very much over each archive period. If you look at the value on a weeWX generated page where it is rounded to (most likely) 1 decimal place then you will 0.0 for some time, I estimate that it will take a little over an hour from start before you get a displayed value above 0.0 (ie 0.1). If you have no change from 0.0 for displayed windSpeed after say 2 hours, or if you database/running weeWX directly shows windSpeed is not changing at all, then we have a problem. Otherwise you may just need to give it some time. Of course you can change some of the parameters in the code shown above, period being the main parameter, to 'hurry it up'. Gary On Saturday, 25 March 2017 06:25:21 UTC+10, Alec Bennett wrote: > > I'm trying the simulator both in "generator" and "simulator" mode, and > neither are giving any values for wind, it's always 0 mph. > > Is that normal? > > And if not, any idea what I should be looking at? > > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
