English
This page is available in English
The whole page — instructions, buttons and results.
Switch to English風水羅盤
Stand just inside the main door, facing out, with the phone flat and its top edge pointing the way you face.
Cultural reference only.
二十四山每山 15°,子山以正北 0° 為中心(352.5°–7.5°),順時針依次為程順則《指南廣義》(1708)「二十四位順念法」所列:壬子癸丑艮寅甲卯乙辰巽巳丙午丁未坤申庚酉辛戌乾亥。八卦用後天方位(《說卦》:坎正北、離南、震東、艮東北),每卦 45°、含三山。分界線上的讀數歸順時針一側。
讀數是磁方位,和羅盤磁針一樣:iPhone 的 webkitCompassHeading 按 Apple 文件以磁北為準;其他瀏覽器只採用「絕對」方向事件。只給相對方向的瀏覽器無法當羅盤用,本工具會忽略它並切換到手動模式。本工具不做磁偏角修正;新加坡 2026 年的磁偏角約東偏 0.24°(WMM2025)。
使用方法
選擇操作模式
手機端選「📱 手機內建羅盤」(需 HTTPS + 允許感應器);桌面端選「🖥️ 手動輸入方位」,拖滑桿或直接輸入度數(可輸入負數或大於 360 的數,會自動換算)。
站好位置
站在大門內、面向門外,手機平放、頂端朝你面對的方向。讀數就是大門的「向」。
遠離金屬
手機磁力計易受鐵件、電子設備、磁性物干擾。最好戶外或開闊房間使用;讀數跳動時可繞 8 字校準。
讀取坐向與山位
右側顯示磁方位、「坐 X 向 Y」、所在山與卦,以及離最近一條分界線還有幾度。離線越近,越要用實體羅盤複核。
風水羅盤:把方位放進二十四山
羅盤(羅經)是堪輿用的磁羅盤,一圈圈刻度把同一個方位對應到不同的序列上。本工具只畫其中兩圈:二十四山與八卦方位。實體羅盤的圈數多得多,各派用法也不同。
二十四山
二十四山每山 15°,24 × 15° = 360°。名稱由十二地支、八個天干(沒有戊、己)與四個隅卦(乾、坤、艮、巽)組成。清初琉球航海針經《指南廣義》的「定四正四隅之法」寫得最清楚:北方壬子癸、南方丙午丁、東方甲卯乙、西方庚酉辛、東北丑艮寅、西南未坤申、西北戌乾亥、東南辰巽巳——每個方位三山,中間一山正對該方位。
「方家以磁石磨針鋒,則能指南,然常微偏東,不全南也。」——沈括《夢溪筆談》卷二十四
磁北與真北
羅盤的磁針指向磁北,手機羅盤也一樣,所以兩者讀的都是磁方位。磁北與真北之差叫磁偏角,隨地點和年份變化。按世界磁場模型 WMM2025(英國地質調查局 BGS 計算服務,2026 年 10 月 19 日),新加坡約東偏 0.24°,吉隆坡約 0.03°,香港約西偏 3.3°,台北約西偏 5.1°。在新加坡,磁北與真北相差不到四分之一度。
手機羅盤的局限
手機磁力計會受附近金屬、電器和磁鐵干擾,讀數可能偏移好幾度。所以本工具會告訴你讀數離最近的分界線還有幾度:離線很近時,一點誤差就會換一座山,應該用實體羅盤複核。
坐與向
向是房屋正面朝的方向,坐是背後的方向,兩者相差 180°。《指南廣義》的「正隅對向念法」列出十二組對向:子午、卯酉、寅申、巳亥、辰戌、丑未、坤艮、乾巽、甲庚、壬丙、乙辛、癸丁。
沈括早已看出磁針「常微偏東」
沈括《夢溪筆談》記「方家以磁石磨針鋒,則能指南,然常微偏東,不全南也」——磁針並不正指南北,這正是今天所說的磁偏角。
二十四山裡沒有戊、己:十二地支、八個天干、四個隅卦,正好 24 個名字。
《指南廣義》(1708)教航海者順著背誦:「壬子癸丑艮寅甲卯乙辰巽巳丙午丁未坤申庚酉辛戌乾亥」,從壬開始順時針一圈。
子山橫跨正北:從 352.5° 到 7.5°。所以 355° 和 5° 是同一座山,而壬山從 337.5° 開始,不是 345°(345° 是它的中心)。
八卦用後天方位,出自《說卦》:「坎者,水也,正北方之卦也」「離也者……南方之卦也」「震,東方也」「艮,東北之卦也」。
每卦 45°、含三山,中間一山正對方位:坎卦是壬子癸,子在正北;艮卦是丑艮寅,艮在東北 45°。
坐與向相差 180°:坐子向午就是背北面南。《指南廣義》的「正隅對向念法」把十二組對向編成口訣:子午卯酉、寅申巳亥、辰戌丑未、坤艮乾巽、甲庚壬丙、乙辛癸丁。
按 WMM2025,2026 年 10 月新加坡的磁偏角約東偏 0.24°,香港約西偏 3.3°,台北約西偏 5.1°——同一個讀數,在台北與真北差得是新加坡的二十多倍。
Apple 文件寫明 iPhone 瀏覽器的 webkitCompassHeading 是「以磁北為準」的方向,所以 iPhone 上的讀數和羅盤一樣是磁方位。
W3C 方向事件規範指出,「相對」方向的參考系是任意的——它只告訴你手機轉了多少,不告訴你朝哪裡。本工具因此只用「絕對」方向。
常見問題
常見原因:(1)方向感應器要求 HTTPS(本站已支援);(2)iOS 需要手動允許權限,啟動時會跳彈窗,選「允許」;(3)有些瀏覽器只提供相對方向,不能當羅盤用,本工具會自動切換到手動模式;(4)電腦通常沒有磁力計,請用手動模式。
手機磁力計極易受金屬物品、電子設備、磁鐵干擾。常見干擾源:冰箱、電腦、音響、手機殼的磁扣、車內、地鐵。建議戶外或開闊房間使用,並先繞 8 字校準。iPhone 會報告自己的精度(Apple 文件:數值 10 表示航向誤差正負 10°),本工具據此列出這個範圍內的每一座山;範圍跨過分界線時,讀數分不出是哪一山。
磁北,和羅盤的磁針一樣。iPhone 的 webkitCompassHeading 按 Apple 文件以磁北為準;其他手機用的「絕對」方向也來自磁力計。本工具不做磁偏角修正。新加坡的磁偏角約東偏 0.24°(WMM2025,2026 年 10 月),幾乎可以忽略;香港約西偏 3.3°,台北約西偏 5.1°。
2 層:外圈八卦方位、內圈二十四山。實體羅盤的圈數多得多,本工具只是入門參考。
沒有,這是純網頁工具。所有功能在瀏覽器內完成,不需下載、不需註冊。
不能。本工具只顯示兩圈,手機讀數又容易受干擾。真要定坐向,應該用實體羅盤在現場複核,尤其是讀數離分界線很近的時候。
不會。方向感應器只讀取方向(α/β/γ 三個旋轉角),不涉及 GPS 位置。我們也不上傳任何資料到伺服器 — 所有計算在瀏覽器內完成。
建議校準。讀數跳動時,緩慢將手機繞 8 字旋轉幾圈,讓磁力計重新適應周圍的磁場。換了地點最好再校準一次。
每卦 3 山,中間一山正對該卦方位(子/午/卯/酉/艮/巽/坤/乾)。兩側兩山用其餘 8 個地支(丑寅辰巳未申戌亥)與 8 個天干(甲乙丙丁庚辛壬癸,沒有戊己)。這是地支 + 天干 + 卦名的組合,每山一名,共 24 名。
是。RECATOOLS 所有工具完全免費(由廣告支持),無註冊、無付費牆。
方法與來源
計算方式
Mountain = floor(((bearing + 7.5) mod 360) / 15) on the ring 子癸丑艮寅甲卯乙辰巽巳丙午丁未坤申庚酉辛戌乾亥 (子 centred on 0°); trigram = floor(((bearing + 22.5) mod 360) / 45), 後天 order 坎艮震巽離坤兌乾; sitting = bearing + 180°; plus the distance to the nearest sector line. Live heading: iOS webkitCompassHeading, else alpha from an absolute orientation event only (360 − alpha); magnetic, no declination applied. The bearing is resolved to 0.1° before it is named.
本工具採用的標準
- 二十四山: 24 sectors of 15°, in the clockwise order 程順則《指南廣義》(1708) recites (二十四位順念法 「壬子癸丑艮寅甲卯乙辰巽巳丙午丁未坤申庚酉辛戌乾亥」), three to each direction with the middle one centred on it (定四正四隅之法 「北方壬子癸 … 東南辰巽巳」): 子 runs 352.5°–7.5°, 壬 337.5°–352.5°. A reading exactly on a line counts to the clockwise sector.
- 八卦: the 後天 placings of 易傳·說卦 (坎 正北, 離 南, 震 東, 艮 東北), 45° and three mountains each. 坐/向 are 180° apart; the twelve opposite pairs match 指南廣義's 正隅對向念法.
- Sensors: a heading is taken only from webkitCompassHeading (Apple: "relative to magnetic north"; refused when it is negative, which Apple calls an invalid direction, or when webkitCompassAccuracy is −1) or from an ABSOLUTE orientation event as 360 − alpha (W3C DeviceOrientation). A relative alpha — whose reference the spec calls arbitrary — is ignored, and the page switches to manual input if no heading arrives. Both sources are magnetic, as a luopan needle is; no declination is applied. WMM2025 declination on 2026-10-19: Singapore +0.24°, Kuala Lumpur +0.03°, Hong Kong −3.3°, Taipei −5.1°.
- Corrected 2026-10-19: the ring said to begin at 壬 on 345° (that is its centre; it begins at 337.5°); iOS webkitCompassHeading called a true-north heading (Apple: magnetic); "traditional feng shui uses true north" (a luopan reads magnetic); Hong Kong declination −2° (WMM2025: −3.3°); a relative orientation alpha shown as a heading; direction codes (N, NE …) printed in the Chinese readout; an unsourced pull-quote ("200 years before Europe"); 北宋《地理大成》, 36-layer, price, brand, Hall-effect and accuracy (±5-10°, ±1°, ±0.5°) claims; a Hong Kong "world's highest density" claim; 司南 "1,300/1,500 years" claims; a FAQ promising an automatic fallback the page did not make.
- When the phone reports its accuracy (iPhone's webkitCompassAccuracy, which Apple defines as plus or minus that many degrees), the page lists every mountain the bearing ± that accuracy can fall in, clockwise, and says when the whole range stays inside one. Without a reported accuracy (manual input, an absolute orientation alpha) it claims none.
- Corrected 2026-11-18: a negative webkitCompassHeading, which Apple calls an invalid direction, was wrapped into a bearing such as 359°; the phone's own accuracy was read and never shown; ?lang=zh-HK served the page copy in English under a Traditional widget.
- Corrected 2026-11-21: a heading just under 360° printed "360.0°"; a bearing within 0.05° of a line printed as the line itself (7.46° as "7.5°") while naming the mountain on the other side of it; the Chinese FAQ named the middle and flanking mountains 「正山」 and 偏山, labels no source on the page uses (cut).
資料來源
- 程順則《指南廣義》(福州, 康熙四十七年 1708), 二十四位順念法 / 定四正四隅之法 / 正隅對向念法, Wikisource: https://zh.wikisource.org/wiki/指南廣義
- 易傳·說卦 (後天八卦 directions), Wikisource: https://zh.wikisource.org/wiki/易傳/說卦
- 沈括《夢溪筆談》卷二十四 (「方家以磁石磨針鋒,則能指南,然常微偏東,不全南也」), Wikisource: https://zh.wikisource.org/wiki/夢溪筆談/卷24
- W3C. DeviceOrientation Event Specification, Candidate Recommendation Draft, 12 February 2025, re-read in the draft of 18 November 2026 with the same text (relative vs absolute orientation; compass heading = 360 − alpha): https://www.w3.org/TR/orientation-event/
- Apple Developer Documentation. DeviceOrientationEvent.webkitCompassHeading — "measured in degrees relative to magnetic north"; "A negative value indicates an invalid direction": https://developer.apple.com/documentation/webkitjs/deviceorientat…
- British Geological Survey. World Magnetic Model 2025 calculator web service, queried for 2026-10-19 (Singapore 1.3521°N 103.8198°E: declination +0.236°): https://geomag.bgs.ac.uk/web_service/GMModels/wmm/2025/
- Apple Developer Documentation. DeviceOrientationEvent.webkitCompassAccuracy — "if this property value is 10, the heading is off by plus or minus 10 degrees. A value of -1 means that the compass is not calibrated and not giving usable readings": https://developer.apple.com/documentation/webkitjs/deviceorientat…
可能使本頁過時的因素
- Browser sensor behaviour: DeviceOrientation needs HTTPS, iOS asks for permission, and whether a browser fires absolute orientation events varies; the page refuses relative ones rather than guessing.
- Magnetic declination drifts (Singapore about +1.9′ a year on WMM2025). No correction is applied, deliberately — the traditional instrument is magnetic — so the reading is never a true-north bearing.