Posts

Showing posts with the label Smart Home

Python IoT Smart Energy Meter GUI (CTkinter + MQTT) — Live Power, kWh & Daily Cost

Image
  Demo : Click Video ðŸ‘‡ðŸ‘‡ðŸ‘‡ Slug: python-iot-smart-energy-meter-ctkinter-mqtt-live-power-cost Description : Build a Python IoT Smart Energy Meter GUI (CTkinter + MQTT) with live charts, kWh & daily cost estimate. Demo Mode included. Code & setup inside. Features : Hero image: GUI dashboard screenshot (dark glass UI + chart) Intro: what/why + 5-line value pitch Features: KPI cards, live chart, tariff → cost/day, Demo Mode, MQTT topic/broker Quick Start: install, run, default broker/topic, JSON payload example Code Embed: main.py snippet + repo link Use Cases: home audit, student projects, ESP32/RPi CTA: Subscribe to FuzzuTech; comment “BILL ₹ SAVED” for assets FAQ: MQTT not available? Use Demo Mode; change tariff? Code : # -*- coding: utf-8 -*- """ FuzzuTech — IoT Smart Energy Meter GUI Modern + Stylish + Attractive (CustomTkinter) with MQTT subscribe + live chart. - Dark theme, glassy cards, neon accents - Real-time power line-chart (las...

IoT Light Control GUI App – Python + MQTT + CTkinter | FuzzuTech Project

Image
  Demo : Click Video ðŸ‘‡ðŸ‘‡ðŸ‘‡ Description: Add YouTube video embed , short explanation of code, screenshots (from your GUI), and copy description content. Features: ✅ Full working Python code ✅ Real-time IoT demo with MQTT ✅ Beginner-friendly project with GUI Code : # gui_light.py import customtkinter as ctk import paho.mqtt.client as mqtt import json BROKER = "test.mosquitto.org" TOPIC_CMD = "fuzzutech/home/livingroom/light/cmd" TOPIC_STATE = "fuzzutech/home/livingroom/light/state" state = "OFF" def on_connect(client, userdata, flags, rc):     print("Connected:", rc)     client.subscribe(TOPIC_STATE) def on_message(client, userdata, msg):     global state     try:         payload = msg.payload.decode()         data = json.loads(payload)         state = data.get("state", "OFF")         status_label.configure(text=f"Light is {state}", text_color="green" if s...