Analysis updated 2026-05-18
Bet on tomorrow's temperature in a chosen city using stablecoins.
Learn how to build an oracle settled smart contract on Tempo.
Study Tempo native features like fee sponsorship and scheduled transactions.
Deploy a self locking prediction market that needs no external cron job.
| pplmaverick/tempo-weather-market | 0xradioac7iv/tempfs | abboskhonov/hermium | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 4/5 | 3/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an OpenWeather API key, a funded Tempo wallet, and setting up a separate oracle server plus an n8n workflow.
Tempo Weather Market is a decentralized prediction market built on the Tempo blockchain. A prediction market is an application where people bet on the outcome of a real world event. In this project, users bet on weather outcomes, such as tomorrow's high temperature in a given city, using stablecoins, which are digital currencies whose value is pegged to something stable like the US dollar. Once a market closes, an oracle server fetches the actual weather data and settles the contract on its own, paying out winners automatically without anyone stepping in manually. The project is built specifically to demonstrate four features unique to the Tempo network rather than a generic blockchain. MPP lets the oracle collect its settlement fee in the same transaction as the result submission, instead of requiring a separate side payment and manual check. Payment Memo writes a short, structured record of each settlement directly onto the blockchain, so anyone can later see which city, prediction type, final temperature, and outcome a market settled with. Fee Sponsorship uses a pre funded gas tank so ordinary users can place bets without holding the network's native token at all, needing only the stablecoin they are betting with. Scheduled Transactions let the contract call a built in scheduler when a market is created, so the market locks itself automatically at the right time with no external cron job required. Markets work through a bucket system: the market creator sets a series of temperature ranges, bettors put money into the bucket they think will match the real outcome, and once the oracle reports the actual temperature, everyone in the correct bucket splits the total pool after a two percent fee. If nobody bet in the winning bucket, every bet is refunded in full instead of the fee being collected. The smart contract is written in Solidity using OpenZeppelin's library, developed and tested with Hardhat, and paired with a Node.js and Express oracle server written in TypeScript that pulls real weather data from the OpenWeather API. An n8n workflow automates calling the oracle server after each market's lock time. The project is released under the MIT license.
A decentralized weather betting market on the Tempo blockchain that settles bets automatically using live weather data.
Mainly TypeScript. The stack also includes Solidity, TypeScript, Node.js.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.