Page 1 of 1

documentation for "seq????" name-value pairs

Posted: Sat Apr 23, 2011 3:12 am
by philip
I would like to generate my own monthly, daily and hourly graphs using JavaScript.

I think the easiest way to get the data is to use the seq name-value pairs documented in section 4.4.

I have made a template that returns data in JSON format and would like to know more about the list values being returned.

Please let me know what values to expect for the following name-value pairs.

1. Are the values in order from oldest to newest?
2. Are the values based on UTC?
3. What is the full list of "seq????" name-value pairs I can use?

Code: Select all

{
"seqday1_th0_temp_c": "[seqday1_th0_temp_c]",
"seqday1_th0_temp_f": "[seqday1_th0_temp_f]",
"seqday1_t1_temp_c": "[seqday1_t1_temp_c]",
"seqday1_t1_temp_c": "[seqday1_t1_temp_c]",
"seqday1_uv0_index": "[seqday1_uv0_index]",
"seqday1_sol0_radiation_wqm": "[seqday1_sol0_radiation_wqm]",
"seqday1_wind0_gustspeed_kn": "[seqday1_wind0_gustspeed_kn]",
"seqday1_wind0_speed_kn": "[seqday1_wind0_speed_kn]",
"seqday1_wind0_maindir_deg": "[seqday1_wind0_maindir_deg]",
"seqday1_wind0_chill_c": "[seqday1_wind0_chill_c]",
"seqday1_rain1_rate_mm": "[seqday1_rain1_rate_mm]",
"seqday1_rain1_total_mm": "[seqday1_rain1_total_mm]"
}

Re: documentation for "seq????" name-value pairs

Posted: Sat Apr 23, 2011 10:07 am
by admin
when you request data via "http://ip-of-your-meteohub/meteograph.cgi?text=all" you see all variables available for your individual station setup.

Re: documentation for "seq????" name-value pairs

Posted: Sat Apr 23, 2011 9:28 pm
by philip
Good info. Thank you.

As a follow up, I am currently getting the following output from a template:

"seqday1_th0_temp_c": 7.9_7.0_7.0_6.6_17.5_21.7_23.0_23.1_,

I got this using:

"seqday1_th0_temp_c": [seqday1_th0_temp_c&],

What I would like to get is this valid JSON array:

"seqday1_th0_temp_c": [7.9,7.0,7.0,6.6,17.5,21.7,23.0,23.1],

1. How do I escape the brackets [] and substitute either the space or the _ in the array to be a comma?

2. Also, is there a way to get the array in F instead of C?