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.