Tools ยท Header widget
Kathmandu in one line
A tiny header widget that shows Nepal time and the temperature, written as a snippet you can drop into any page.
In the header
The line above is the real widget. If the data service does not answer within 8 seconds, it quietly drops to just "22:58 in Kathmandu".
Use it
One small file; it reads the temperature through widgets/data-base.js. Copy ktm-clock.js next to the page, add the lines below where the clock should appear, and style .ktm-clock to fit the header. The element stays hidden until the script has a time to show.
<span id="ktm-clock" class="ktm-clock" hidden></span>
<script src="/widgets/data-base.js"></script>
<script src="ktm-clock.js"></script>
<script>ktmClock(document.getElementById('ktm-clock'));</script>
What it does: the time is formatted in your browser for the Asia/Kathmandu zone (UTC+5:45, no daylight saving). The temperature is fetched once at load and every 15 minutes, rounded to a whole degree, and validated as a plain number in a sane range before it is shown. It only ever writes with textContent.
Data sources & privacy
The time is computed in your browser. The temperature comes from Open-Meteo (CC BY 4.0). This site fetches it on a schedule and serves a copy, so your browser never contacts Open-Meteo. Nothing is sent to this site's servers or stored.