Я могу получить эти данные о погоде в сценариях Excel, но не совсем уверен, как программно поместить их в первый столбец «Столбец A».
Любой идеи?
function main(workbook: ExcelScript.Workbook) {
fetch('https://api.weather.gov/gridpoints/ILN/44,38/forecast')
.then(response => {
if (!response.ok) {
throw new Error('Network response error');
}
return response.json();
})
.then(data => {
for (i in data.properties.periods) {
console.log(data.properties.periods.name);
}
})
.catch(error => {
console.error('Fetch error:', error);
});
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... e-to-cells