C-8 Pro Graphing app

Hi everyone,

I wanted to share a simple graphing app AI been working on, as well as my experience using AI (Gemini/Copilot) as a coding partner.

This app is designed for users who want a simple, high-performance way to visualize device history (Power, Temperature, Humidity, etc.) locally on their hub using Google Charts.

Key Features:

  • Local Data Storage: Logged data is stored directly on your hub , keeping everything private and cloud-free.
  • Customizable Views: Supports Line Charts, Bar Charts, and Stepped Area (Solid) charts with customizable colors and point sizes.

How it works: The app subscribes to your chosen device attributes and logs changes to the hub's local file system. The built-in chart renderer then fetches this data and generates a clean, dark-themed interactive graph accessible via a local API link.

Requirements:

  • Hubitat C-8 or C-8 Pro (uses local file storage).
  • OAuth enabled for the app to generate the local graph links.

What the App Does:
Unified Multi-Sensor Charts: Create custom dashboards comparing multiple sensors (e.g., all room temperatures) on a single responsive Google Chart.

Intelligent RAM Batching: Unlike standard logging that writes to disk on every event, this app caches readings in RAM. It only commits to the hub’s file system when your custom thresholds are met (e.g., every 60 minutes or 100 events).

Storage Wear Protection: By reducing write cycles by up to 98%, it extends the life of your hub's internal storage.

Granular Retention: Set individual "Days to Keep" for every sensor. Keep 1 year of Climate data while capping Power logs at 7 days.

Automated Pruning: Background logic runs every 24 hours per file to strip out expired data, keeping your files lean and your hub fast.

Live Accuracy: The chart renderer merges "saved" data with "cached" RAM data in real-time, so your graphs are always up-to-the-second accurate.

Hubitat_Graph/user_app_C8_Pro_Graphing_C_8_Pro_Master - Copy.groovy at main · helpingusertohelp/Hubitat_Graph

3 Likes

Thanx for the work! Just an FYI, Built in webcore has a slimmed down version of Hubigraphs.

1 Like