Weather Undergroundからのデータ取得に問題があります(私の現在の観測結果は)。昨日の例:だから、Weather Underground "history" APIからデータを取得するJavascript
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script>
heute=new Date();
jahr=heute.getFullYear();
monat=heute.getMonth()+1;
tag = heute.getDate()-1;
jQuery(document).ready(function($) {
$.ajax({
url : "http://api.wunderground.com/api/ea1cb0c0f1995212/history_'+jahr+monat+tag+'/q/pws:INORDRHE156.json",
dataType : "jsonp",
success : function(parsed_json) {
var minhumidity = parsed_json.history.dailysummary[0].minhumidity;
var day = parsed_json.history.dailysummary[0].date.pretty;
document.getElementById("z8").innerHTML = minhumidity;
document.getElementById("z9").innerHTML = date;
}
});
});
</script>
"日は" 私の作品は、出力は次のとおりです。2017年11月13日
しかし、 "minhumidityは" '' BEIなければならない(または一部他の値)がありますが、の空白はです。
私は同じように、問題がある時に両方の値(日とminhumidity)を取得?
私の英語のために残念です。
あなたは – ScoobyDrew18
これは私の最初の投稿だったので、plsは私を許してくれた;-) – TornadoS