正式釋出
台灣即時空氣品質(AQI),有相關空氣資料的監測點如下(儘量已編號為主,較為準確):
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1651
1654
1596
1597
1598
1599
1600
1601
1648
1602
1603
1604
1605
1606
1652
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1653
1656
1622
1623
1626
1661
1624
1625
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1655
1643
1644
1645
1649
1650
1646
1660
1647
1658
1659
1657
8768
$city='tainan'; //欲更改城市位置,可至 https://www.tad0616.net/modules/tad_modules/index.php?module_sn=100 查看縣市鄉鎮的英文名稱,並於上方填入英文名稱即可。 //以下請勿變動 echo " <script type=\"text/javascript\" charset=\"utf-8\" defer=\"defer\"> (function (w, d, t, f) { w[f] = w[f] || function (c, k, n) { s = w[f], k = s['k'] = (s['k'] || (k ? ('&k=' + k) : '')); s['c'] = c = (c instanceof Array) ? c : [c]; s['n'] = n = n || 0; L = d.createElement(t), e = d.getElementsByTagName(t)[0]; L.async = 1; L.src = '//feed.aqicn.org/feed/' + (c[n].city) + '/' + (c[n].lang || '') + '/feed.v1.js?n=' + n + k; e.parentNode.insertBefore(L, e); }; })(window, document, 'script', '_aqiFeed'); </script>"; echo ' <span id="city-aqi-container"></span> <script type="text/javascript" charset="utf-8" defer="defer"> _aqiFeed({ display: "%details", container: "city-aqi-container", city: "'.$city.'", lang: "hk" }); </script> ';
PHP腳本
左邊
正式釋出