MCPcopy Create free account
hub / github.com/Semporia/Scripts / modifyWeatherResp

Function modifyWeatherResp

backUp/iOS_Weather_AQI_Standard.js:50–55  ·  view source on GitHub ↗
(weatherRespBody, aqicnRespBody)

Source from the content-addressed store, hash-verified

48}
49
50function modifyWeatherResp(weatherRespBody, aqicnRespBody) {
51 let weatherRespJson = JSON.parse(weatherRespBody)
52 let aqicnRespJson = JSON.parse(aqicnRespBody).data
53 weatherRespJson.air_quality = constructAirQuailityNode(aqicnRespJson)
54 return JSON.stringify(weatherRespJson)
55}
56
57function getPrimaryPollutant(pollutant) {
58 switch (pollutant) {

Callers 1

Calls 1

constructAirQuailityNodeFunction · 0.85

Tested by

no test coverage detected