oklahomer/go-sarah

View on GitHub
testdata/examples/simple/plugins/worldweather/weather.json

Summary

Maintainability
Test Coverage
{
   "data":{
      "request":[
         {
            "type":"City",
            "query":"Tokyo, Japan"
         }
      ],
      "current_condition":[
         {
            "observation_time":"12:24 AM",
            "temp_C":"10",
            "temp_F":"50",
            "weatherCode":"113",
            "weatherIconUrl":[
               {
                  "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
               }
            ],
            "weatherDesc":[
               {
                  "value":"Sunny"
               }
            ],
            "windspeedMiles":"3",
            "windspeedKmph":"5",
            "winddirDegree":"250",
            "winddir16Point":"WSW",
            "precipMM":"0.0",
            "humidity":"70",
            "visibility":"20",
            "pressure":"1012",
            "cloudcover":"0",
            "FeelsLikeC":"11",
            "FeelsLikeF":"52"
         }
      ],
      "weather":[
         {
            "date":"2017-04-30",
            "astronomy":[
               {
                  "sunrise":"04:51 AM",
                  "sunset":"06:26 PM",
                  "moonrise":"08:05 AM",
                  "moonset":"10:33 PM"
               }
            ],
            "maxtempC":"21",
            "maxtempF":"70",
            "mintempC":"12",
            "mintempF":"54",
            "uvIndex":"8",
            "hourly":[
               {
                  "time":"0",
                  "tempC":"11",
                  "tempF":"52",
                  "windspeedMiles":"1",
                  "windspeedKmph":"1",
                  "winddirDegree":"342",
                  "winddir16Point":"NNW",
                  "weatherCode":"116",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0004_black_low_cloud.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Partly cloudy"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"71",
                  "visibility":"20",
                  "pressure":"1010",
                  "cloudcover":"100",
                  "HeatIndexC":"12",
                  "HeatIndexF":"54",
                  "DewPointC":"7",
                  "DewPointF":"45",
                  "WindChillC":"12",
                  "WindChillF":"54",
                  "WindGustMiles":"5",
                  "WindGustKmph":"9",
                  "FeelsLikeC":"12",
                  "FeelsLikeF":"54",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"99",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"300",
                  "tempC":"10",
                  "tempF":"50",
                  "windspeedMiles":"1",
                  "windspeedKmph":"1",
                  "winddirDegree":"301",
                  "winddir16Point":"WNW",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0008_clear_sky_night.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Clear"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"72",
                  "visibility":"20",
                  "pressure":"1010",
                  "cloudcover":"0",
                  "HeatIndexC":"11",
                  "HeatIndexF":"52",
                  "DewPointC":"6",
                  "DewPointF":"43",
                  "WindChillC":"11",
                  "WindChillF":"52",
                  "WindGustMiles":"6",
                  "WindGustKmph":"9",
                  "FeelsLikeC":"11",
                  "FeelsLikeF":"52",
                  "chanceofrain":"6",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"600",
                  "tempC":"10",
                  "tempF":"50",
                  "windspeedMiles":"3",
                  "windspeedKmph":"5",
                  "winddirDegree":"250",
                  "winddir16Point":"WSW",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Sunny"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"70",
                  "visibility":"20",
                  "pressure":"1012",
                  "cloudcover":"0",
                  "HeatIndexC":"11",
                  "HeatIndexF":"52",
                  "DewPointC":"6",
                  "DewPointF":"43",
                  "WindChillC":"11",
                  "WindChillF":"52",
                  "WindGustMiles":"4",
                  "WindGustKmph":"6",
                  "FeelsLikeC":"11",
                  "FeelsLikeF":"52",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"900",
                  "tempC":"17",
                  "tempF":"63",
                  "windspeedMiles":"5",
                  "windspeedKmph":"8",
                  "winddirDegree":"185",
                  "winddir16Point":"S",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Sunny"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"50",
                  "visibility":"20",
                  "pressure":"1013",
                  "cloudcover":"0",
                  "HeatIndexC":"18",
                  "HeatIndexF":"64",
                  "DewPointC":"7",
                  "DewPointF":"45",
                  "WindChillC":"18",
                  "WindChillF":"64",
                  "WindGustMiles":"7",
                  "WindGustKmph":"12",
                  "FeelsLikeC":"18",
                  "FeelsLikeF":"64",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"1200",
                  "tempC":"20",
                  "tempF":"68",
                  "windspeedMiles":"10",
                  "windspeedKmph":"16",
                  "winddirDegree":"178",
                  "winddir16Point":"S",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Sunny"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"38",
                  "visibility":"20",
                  "pressure":"1011",
                  "cloudcover":"0",
                  "HeatIndexC":"21",
                  "HeatIndexF":"70",
                  "DewPointC":"6",
                  "DewPointF":"43",
                  "WindChillC":"21",
                  "WindChillF":"70",
                  "WindGustMiles":"17",
                  "WindGustKmph":"28",
                  "FeelsLikeC":"21",
                  "FeelsLikeF":"70",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"1500",
                  "tempC":"21",
                  "tempF":"70",
                  "windspeedMiles":"15",
                  "windspeedKmph":"24",
                  "winddirDegree":"181",
                  "winddir16Point":"S",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Sunny"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"41",
                  "visibility":"20",
                  "pressure":"1008",
                  "cloudcover":"0",
                  "HeatIndexC":"22",
                  "HeatIndexF":"72",
                  "DewPointC":"8",
                  "DewPointF":"46",
                  "WindChillC":"22",
                  "WindChillF":"72",
                  "WindGustMiles":"19",
                  "WindGustKmph":"30",
                  "FeelsLikeC":"22",
                  "FeelsLikeF":"72",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"1800",
                  "tempC":"18",
                  "tempF":"65",
                  "windspeedMiles":"13",
                  "windspeedKmph":"21",
                  "winddirDegree":"193",
                  "winddir16Point":"SSW",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Sunny"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"61",
                  "visibility":"20",
                  "pressure":"1011",
                  "cloudcover":"0",
                  "HeatIndexC":"19",
                  "HeatIndexF":"66",
                  "DewPointC":"11",
                  "DewPointF":"52",
                  "WindChillC":"19",
                  "WindChillF":"66",
                  "WindGustMiles":"27",
                  "WindGustKmph":"44",
                  "FeelsLikeC":"19",
                  "FeelsLikeF":"66",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               },
               {
                  "time":"2100",
                  "tempC":"15",
                  "tempF":"59",
                  "windspeedMiles":"8",
                  "windspeedKmph":"13",
                  "winddirDegree":"248",
                  "winddir16Point":"WSW",
                  "weatherCode":"113",
                  "weatherIconUrl":[
                     {
                        "value":"http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0008_clear_sky_night.png"
                     }
                  ],
                  "weatherDesc":[
                     {
                        "value":"Clear"
                     }
                  ],
                  "precipMM":"0.0",
                  "humidity":"65",
                  "visibility":"20",
                  "pressure":"1012",
                  "cloudcover":"0",
                  "HeatIndexC":"16",
                  "HeatIndexF":"61",
                  "DewPointC":"9",
                  "DewPointF":"48",
                  "WindChillC":"16",
                  "WindChillF":"61",
                  "WindGustMiles":"17",
                  "WindGustKmph":"28",
                  "FeelsLikeC":"16",
                  "FeelsLikeF":"61",
                  "chanceofrain":"0",
                  "chanceofremdry":"0",
                  "chanceofwindy":"0",
                  "chanceofovercast":"0",
                  "chanceofsunshine":"90",
                  "chanceoffrost":"0",
                  "chanceofhightemp":"0",
                  "chanceoffog":"0",
                  "chanceofsnow":"0",
                  "chanceofthunder":"0"
               }
            ]
         }
      ]
   }
}