Belchertown Solar Radiation Graph and High Chart Questions

142 views
Skip to first unread message

Patrick Mendiuk

unread,
Jun 21, 2019, 5:24:45 PM6/21/19
to weewx-user
I added the Solar Radiation and UV Index to my graphs.conf and have my first plot:

solar.PNG


Where is the pyephem calculation for theoretical max radiation observation being done?  I would like to get the plot data to agree.

Is possible to add illuminance to the same plot and add another Y axis scale?

I would also like to adjust the resolution for looking at data points in High Chart plots:

battery.PNG

-Patrick

Pat

unread,
Jun 22, 2019, 9:04:07 AM6/22/19
to weewx-user
> Where is the pyephem calculation for theoretical max radiation observation being done?  I would like to get the plot data to agree.

I'm not 100% familiar with pyephem. Perhaps someone else can answer this? I know it's based on your lat/lon inside weewx.conf to make those calculations

> Is possible to add illuminance to the same plot and add another Y axis scale?

Right now you can add as many y axis as you want. Only 2 will show and if it's yaxis 1 (on the right side) it's the last one in the graph group that will show. The stacked y axis groups isn't working currently. 

> I would also like to adjust the resolution for looking at data points in High Chart plots:

By resolution do you mean the y axis numbers being in a finer detail? Like 0.01, 0.02, etc? Or 0.1, 0.2, etc? 
If so that's called tick interval. You can set that with the yaxis_tickinterval graphs.conf option

gjr80

unread,
Jun 22, 2019, 9:54:54 AM6/22/19
to weewx-user
On Saturday, 22 June 2019 23:04:07 UTC+10, Pat wrote:
> Where is the pyephem calculation for theoretical max radiation observation being done?  I would like to get the plot data to agree.

I'm not 100% familiar with pyephem. Perhaps someone else can answer this? I know it's based on your lat/lon inside weewx.conf to make those calculations

Unless you have done something extra Pat the StdWXCalculate service takes care of calculating maxSolarRad and adding it to packets/records.

Gary
Message has been deleted

Patrick Mendiuk

unread,
Jun 23, 2019, 1:46:45 AM6/23/19
to weewx-user
Looking at StdWXCalculate is what I needed.  I see there are few other functions for calculating solar radiation.  I might try running them in parallel for comparison.

The resolution I am speaking about with High Charts is the when looking at specific data points with the cursor.  I would like to to be able set the float format to %.2f instead of %.1f for the cursor when hovering over the chart.

-Patrick
Message has been deleted

Pat

unread,
Jun 23, 2019, 6:52:45 AM6/23/19
to weewx-user
To change the floating point, look what you have set for group_pressure, then set the floating point for that setting under StringFormats. Restart weewx when done and wait for the archive period to make new charts. 

Patrick Mendiuk

unread,
Jun 23, 2019, 1:36:22 PM6/23/19
to weewx-user
There are multiple [[[[String Formats]]]] in weewx.conf and skin.conf.  The values in skin.conf don't have any effect on the generated html files that I can see.  The values in weewx.conf are used.


-Patrick

Pat

unread,
Jun 23, 2019, 1:39:03 PM6/23/19
to weewx-user
I should have been more clear. weewx.conf will always override skin.conf if there are duplicate settings between the two. Please modify the float point to your preference in weewx.conf - that's the correct spot. 

Patrick Mendiuk

unread,
Jun 24, 2019, 2:47:02 PM6/24/19
to weewx-user
I see string formatting in many files throughout weewx.
Reply all
Reply to author
Forward
0 new messages