This code gets the data from the database as it is. The skin requires you 
to tell it to use Metric. Since highcharts is it's own skin, you need to 
define this twice (once for belchertown, once for highcharts_belchertown). Did 
this suggestion to do that not work for you? 
<https://github.com/poblabs/weewx-belchertown/issues/8#issuecomment-420112304>

I think it worked for Colin who's using metric... 
<https://github.com/poblabs/weewx-belchertown/issues/8#issuecomment-420116858>

If I diff the file you sent me, to the file in the master branch, yours is 
almost 100% changed. Please apply your changes you think will work to the 
current 
file (which is 0.8rc1) 
<https://github.com/poblabs/weewx-belchertown/blob/master/bin/user/belchertown_highchartsSearchX.py>
. 

I'm sure you can appreciate that I do this in my spare time, so maybe it's 
easier to explain the changes?

On Wednesday, September 12, 2018 at 9:28:15 PM UTC-4, Praveen 
Chandrasekaran wrote:
>
> And this code needs metric conversion :)
>
> On Wed, 12 Sep 2018, 23:22 Pat, <[email protected] <javascript:>> 
> wrote:
>
> Dave, 
>
> The "Rainfall" in your graph is a really a bucket tip as I understand it. 
> So if it's only showing 0.01 or 0.02 then that's how many tips per archive 
> interval. The code that generates that graph is here 
> <https://github.com/poblabs/weewx-belchertown/blob/master/bin/user/belchertown_highchartsSearchX.py#L140>
> . 
>
> The wunderground page shows the precip rate. 
>
> So I think you're looking for the weewx observation rainRate and not rain 
> (which 
> shows the 'bucket tips')...?
>
> For giggles, and since today is a rainy day for me it's easy to test this, 
> I changed the SQL to rainRate instead of rain and it gave me the graph 
> attached - which is slightly different than wunderground. Not sure why to 
> be honest...
>
>
>
> On Tuesday, September 11, 2018 at 11:00:54 AM UTC-4, David Hathaway wrote:
>
> Pat,
>
> How do I get a reasonable "Rainfall" value on the chart.  The Rainfall 
> Total graph looks fine, but the amount looks factored down.  I have changed 
> my interval to 5 minutes last week, so I am not sure that is the issue. 
>
> ...

-- 
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.

Reply via email to