Weather for Datafield

I think it´s not possible by now because edge devices has not 3.2 but if i wish to get weather on a data field i should be doing this?

    using Toybox.Weather;

    var makeTemp;
    var windDir;
    var windSpd;

    function compute(info) {
        if (info has :windBearing) {
            windDir = info.windBearing;
        }

        if (info has :windSpeed) {
            windSpd = info.windSpeed;
        }

        if (info has :temperature) {
            makeTemp = info.temperature;
        }
    }