option_dict availability

21 views
Skip to first unread message

enu...@gmail.com

unread,
Jul 27, 2023, 11:01:58 AM7/27/23
to weewx-development
I am trying to make a graph with the belchertown skin using the max_ge aggregation but I have errors. It also happened with the skin seasons
Tom Keller sent me a modified version of xtypes.py which now allows me to graph in seasons but not in belchertown.
To use max_ge in the graph, you have to put the val variable, which is a tuple with the temperature, units and group, and that val variable is what I suppose is passed in option_dict.
So I looked at the code for belchertown.py and modified all the calls to xtypes.get_series by adding **option_dict to each one. It was still not working. It gave me the same non-existent column error and before the query I looked at the content of option_dict and it was None
So I modified get_observation_data which is where you call xtypes.get_series and added **option_dict to it and from where get_observations is called I also added option_dict and it gives me the error name option_dict is not defined.
I thought option_dict was a globally accessible global variable.
How can I access option_dict or what should I do?
Reply all
Reply to author
Forward
0 new messages