Skip to content

Instantly share code, notes, and snippets.

@rk295
Created January 15, 2014 15:37
Show Gist options
  • Save rk295/8438415 to your computer and use it in GitHub Desktop.
Save rk295/8438415 to your computer and use it in GitHub Desktop.
{
"data": [
#timezone local#
#raw#
#jump -300#
#loop 100#
{
"#idx "%m/%d/%Y %H:%M"#": {
"TempOut": #temp_out "%.1f"#,
"FeelsLike": #calc "apparent_temp(data['temp_out'], data['hum_out'], data['wind_ave'])" "%.1f"#,
"HumidityOut": #hum_out "%d"#,
"DewPoint": #calc "dew_point(data['temp_out'], data['hum_out'])" "%.1f"#,
"WindDirection": " #wind_dir "%s" "-" "winddir_text(x)"# ",
"WindAvg": #wind_ave "%.0f" "" "wind_mph(x)"#,
"WindGust": #wind_gust "%.0f" "" "wind_mph(x)"#,
"WindChill": #calc "wind_chill(data['temp_out'], data['wind_ave'])" "%.1f"#,
"Rain": #calc "data['rain']-prevdata['rain']" "%0.1f"#,
"AbsPressure": #abs_pressure "%.1f"#
}
},
#jump 3#
#endloop#
#! This is needed because the above loop creates a traliing comma
#! on the last run through the loop
{}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment