SolarEnergyPrediction

부분 유료
분류별 STROMDAO | 업데이트됨 1ヶ月前 | Energy
인기

9 / 10

지연 시간

24,165ms

서비스 수준

50%

Health Check

N/A

모든 토론으로 돌아가기

Get no response

Rapid account: Abeggled
abeggled
1年前

const axios = require(“axios”);

const options = {
method: ‘GET’,
url: ‘https://solarenergyprediction.p.rapidapi.com/v2.0/solar/prediction’,
params: {
lat: ‘46.77’,
lon: ‘7.65’,
deg: ‘33’,
az: ‘3’,
wp: ‘9300’,
decoration: ‘forecast.solar’
},
headers: {
‘X-RapidAPI-Key’: ‘6cc4c00b14msh2fd52ad1b22763bp1b2a4djsn26xxxxxxxxxx’,
‘X-RapidAPI-Host’: ‘solarenergyprediction.p.rapidapi.com
}
};

axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});

and the result looks like:

{
“result”: {
“watts”: {},
“watt_hours”: {},
“watt_hours_day”: {}
},
“message”: {
“code”: 0,
“type”: “success”,
“text”: “compatibility mode from SolarPredictionAPI”,
“info”: {
“place”: “not resolved”,
“timezone”: “Europe/Berlin”
},
“ratelimit”: {
“period”: 3600,
“limit”: 0,
“remaining”: -1
}
}
}

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입