Busabase
Busabase is an open-source (MIT) database and workspace for AI agents — data, docs, skills, and apps in one place. Run it locally, self-host it inside your network, or use Busabase Cloud, and turn age
翻訳待ち
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗Dashboard Web3 untuk sensor kebun kopi (NodeMCU + DHT11 + Soil Moisture):
100% gratis: ThingSpeak (gratis) + Vercel (gratis) + Polygon Amoy testnet (gratis via faucet). Tidak menyimpan data mentah ke blockchain — hanya ringkasan & sidik jari (hash) agar hemat dan anti-palsu.
| Bagian | Teknologi |
|---|---|
| Frontend | Next.js 14 (App Router) + Tailwind CSS |
| Blockchain | Polygon Amoy Testnet, ethers v6, MetaMask |
| Smart contract | contracts/KopiIoTForecast.sol (Solidity ^0.8.20) |
| Sumber data | ThingSpeak channel 1848413 (publik) |
npm install
npm run dev
Buka http://localhost:3000 — monitoring & forecasting langsung jalan tanpa konfigurasi apa pun. Fitur simpan ke blockchain baru aktif setelah langkah 2–3.
KopiIoTForecast.sol, salin isi dari contracts/KopiIoTForecast.sol.0.8.20+ → Compile.Ambil di faucet (gratis):
Polygon Amoy Testnethttps://rpc-amoy.polygon.technology80002POLhttps://amoy.polygonscan.comBuka app/lib/config.js, isi alamat hasil deploy:
export const CONTRACT_ADDRESS = '0x....' // alamat kontrak Anda
Simpan, refresh halaman. Peringatan kuning hilang dan tombol blockchain aktif.
Penting: hanya wallet deployer (owner) yang boleh mencatat data. Connect dengan wallet yang sama saat deploy.
Saat mencatat, metadata lengkap (statistik + data mentah harian / detail forecast) di-upload ke IPFS via Pinata, lalu CID-nya disimpan di blockchain. Pola hibrida ini hemat gas tapi metadata tetap kaya.
pinJSONToIPFS → buat → salin API Key & API Secret..env.local.example menjadi .env.local dan isi:
PINATA_API_KEY=...
PINATA_API_SECRET=...
PINATA_GATEWAY=gateway.pinata.cloud
npm run dev. (Di Vercel: isi 3 variabel ini di Settings → Environment Variables.)Jika
PINATA_*belum diisi, tombol simpan akan menampilkan error upload IPFS — isi dulu key-nya.
| Aksi | Frekuensi |
|---|---|
| Ringkasan harian | 1× / hari |
| Snapshot forecast | 1× / minggu |
| Hitung forecast | otomatis tiap buka halaman (gratis) |
Forecast mulai berarti setelah ±14 hari data, ideal ≥30 hari.
contracts/KopiIoTForecast.sol Smart contract (deploy via Remix)
app/lib/config.js Konfigurasi: ThingSpeak, Amoy, alamat & ABI kontrak
app/lib/thingspeak.js Ambil & agregasi data sensor harian
app/lib/forecast.js Mesin forecasting (regresi linear + damping)
app/lib/chain.js Helper ethers (wallet, baca/tulis kontrak)
app/components/MetricChart.js Grafik garis SVG (riwayat + prediksi)
app/page.js Dashboard utama
readApiKey di config.js.