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
Dashboard sensor kebun kopi (NodeMCU + DHT11 + Soil Moisture) dengan forecasting dan pencatatan ringkasan harian ke Polygon Amoy.
Translation pending
DataJavaScript · Jupyter NotebookGitHub @jejenfisika-stackOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
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.