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

Moderator: Mattk

Post Reply
philip
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Sat Apr 16, 2011 2:22 am

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

Post 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]"
}
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7877
Joined: Mon Oct 01, 2007 10:51 pm

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

Post 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.
philip
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Sat Apr 16, 2011 2:22 am

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

Post 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?
Post Reply