This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- document https://www.highcharts.com/docs/getting-started/installation --> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://code.highcharts.com/highcharts.js"></script> | |
</head> | |
<body> | |
<div id="container" style="width:100%; height:400px;"></div> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
คู่มือ API ของกรมอุตุฯ มีอยู่ 11 API ให้เลือกใช้ | |
http://data.tmd.go.th/api/doc/reference/WeatherToday.pdf | |
อย่าลืมลงทะเบียนเพื่อขอ uid กับ demokey | |
http://data.tmd.go.th/api/index1.php | |
*/ | |
// must intall this package | |
// npm install request | |
var request = require('request'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
//อ้างอิงคู่มือ ตามลิงค์นี้ https://iapi.bot.or.th/Developer?lang=th | |
// ตัวอย่างดู อัตราแลกเปลี่ยนถัวเฉลี่ยถ่วงน้ำหนักระหว่างธนาคาร (รายวัน) | |
$("button").click(function(){ | |
$.ajax({ |