Files
my-vault/01_Projects/Home-Automation/WAQI.md
T
windyboy a3ee8c09cf security: scrub live credentials from tracked notes; point values at Vaultwarden
- replace real keys/passwords/tokens/connection strings with {{SECRET_*}}
  placeholders across 24 files (review-named 12 + noise-audit finds:
  WAQI/Dovecot/GPS/VPN subscriptions/Work runbooks/Plane API key)
- widen verifier: OPENSSH/RSA key headers, hyphenated sk-/prefixed sk-,
  credential assignments & table cells, telegram bot tokens, conn strings
- placeholder/default-value/config-name exemptions to kill doc FPs
- skip .obsidian plugin code and frozen Inbox-Clippings from value scan
- GIT_WORKFLOW: no git add ., verifier before commit, force-push exception
- final regression: 0 flagged in tracked scope (was 43)
2026-09-26 12:26:57 +08:00

7.6 KiB

created
created
2026-01-05

Congratulation, your registration already validated.

Your token is

{{SECRET_WAQI_TOKEN}}

You can now try, for instance, to get the beijing feed using:
https://api.waqi.info/feed/here/?token={{SECRET_WAQI_TOKEN}}

And you will get this result:

{
    "status": "ok",
    "data": {
        "aqi": 38,
        "idx": 1451,
        "attributions": [
            {
                "url": "http://www.bjmemc.com.cn/",
                "name": "Beijing Environmental Protection Monitoring Center (北京市环境保护监测中心)"
            },
            {
                "url": "https://waqi.info/",
                "name": "World Air Quality Index Project"
            }
        ],
        "city": {
            "geo": [
                39.954592,
                116.468117
            ],
            "name": "Beijing (北京)",
            "url": "https://aqicn.org/city/beijing",
            "location": ""
        },
        "dominentpol": "pm25",
        "iaqi": {
            "co": {
                "v": 3.7
            },
            "h": {
                "v": 33
            },
            "no2": {
                "v": 9.2
            },
            "o3": {
                "v": 19.9
            },
            "p": {
                "v": 1035
            },
            "pm10": {
                "v": 21
            },
            "pm25": {
                "v": 38
            },
            "so2": {
                "v": 1.6
            },
            "t": {
                "v": -1
            },
            "w": {
                "v": 4.6
            }
        },
        "time": {
            "s": "2024-12-13 23:00:00",
            "tz": "+08:00",
            "v": 1734130800,
            "iso": "2024-12-13T23:00:00+08:00"
        },
        "forecast": {
            "daily": {
                "o3": [
                    {
                        "avg": 1,
                        "day": "2024-12-12",
                        "max": 1,
                        "min": 1
                    },
                    {
                        "avg": 7,
                        "day": "2024-12-13",
                        "max": 14,
                        "min": 1
                    },
                    {
                        "avg": 2,
                        "day": "2024-12-14",
                        "max": 10,
                        "min": 1
                    },
                    {
                        "avg": 4,
                        "day": "2024-12-15",
                        "max": 13,
                        "min": 1
                    },
                    {
                        "avg": 1,
                        "day": "2024-12-16",
                        "max": 6,
                        "min": 1
                    },
                    {
                        "avg": 1,
                        "day": "2024-12-17",
                        "max": 5,
                        "min": 1
                    },
                    {
                        "avg": 1,
                        "day": "2024-12-18",
                        "max": 1,
                        "min": 1
                    }
                ],
                "pm10": [
                    {
                        "avg": 67,
                        "day": "2024-12-12",
                        "max": 73,
                        "min": 58
                    },
                    {
                        "avg": 27,
                        "day": "2024-12-13",
                        "max": 72,
                        "min": 7
                    },
                    {
                        "avg": 29,
                        "day": "2024-12-14",
                        "max": 46,
                        "min": 11
                    },
                    {
                        "avg": 39,
                        "day": "2024-12-15",
                        "max": 58,
                        "min": 19
                    },
                    {
                        "avg": 45,
                        "day": "2024-12-16",
                        "max": 58,
                        "min": 24
                    },
                    {
                        "avg": 41,
                        "day": "2024-12-17",
                        "max": 57,
                        "min": 16
                    },
                    {
                        "avg": 69,
                        "day": "2024-12-18",
                        "max": 73,
                        "min": 57
                    },
                    {
                        "avg": 95,
                        "day": "2024-12-19",
                        "max": 116,
                        "min": 72
                    }
                ],
                "pm25": [
                    {
                        "avg": 168,
                        "day": "2024-12-12",
                        "max": 174,
                        "min": 159
                    },
                    {
                        "avg": 86,
                        "day": "2024-12-13",
                        "max": 173,
                        "min": 30
                    },
                    {
                        "avg": 91,
                        "day": "2024-12-14",
                        "max": 138,
                        "min": 42
                    },
                    {
                        "avg": 116,
                        "day": "2024-12-15",
                        "max": 158,
                        "min": 68
                    },
                    {
                        "avg": 130,
                        "day": "2024-12-16",
                        "max": 158,
                        "min": 80
                    },
                    {
                        "avg": 122,
                        "day": "2024-12-17",
                        "max": 158,
                        "min": 60
                    },
                    {
                        "avg": 170,
                        "day": "2024-12-18",
                        "max": 174,
                        "min": 158
                    },
                    {
                        "avg": 203,
                        "day": "2024-12-19",
                        "max": 238,
                        "min": 172
                    }
                ],
                "uvi": [
                    {
                        "avg": 0,
                        "day": "2024-12-13",
                        "max": 1,
                        "min": 0
                    },
                    {
                        "avg": 0,
                        "day": "2024-12-14",
                        "max": 1,
                        "min": 0
                    },
                    {
                        "avg": 0,
                        "day": "2024-12-15",
                        "max": 1,
                        "min": 0
                    },
                    {
                        "avg": 0,
                        "day": "2024-12-16",
                        "max": 1,
                        "min": 0
                    },
                    {
                        "avg": 0,
                        "day": "2024-12-17",
                        "max": 1,
                        "min": 0
                    },
                    {
                        "avg": 0,
                        "day": "2024-12-18",
                        "max": 0,
                        "min": 0
                    }
                ]
            }
        },
        "debug": {
            "sync": "2024-12-14T01:26:38+09:00"
        }
    }
}