Add telemetry simulator and regenerate sample data#9
Merged
Conversation
Copilot created this pull request from a session on behalf of
AUREX-ML
June 30, 2026 18:57
View session
|
AUREX-ML
approved these changes
Jun 30, 2026
AUREX-ML
marked this pull request as ready for review
June 30, 2026 18:59
There was a problem hiding this comment.
Pull request overview
This PR adds a small Python-based telemetry simulator to generate a realistic 24-hour sample dataset for the demo energy site, and updates the checked-in data/sample-telemetry.json accordingly.
Changes:
- Added
services/simulator/simulate.pyto generate 24 hourly telemetry records (solar/load/battery/gen/grid + derivedsite_status). - Replaced the placeholder sample telemetry JSON with a full 24-record day generated by the simulator.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| services/simulator/simulate.py | New script to generate hourly demo-site telemetry and write data/sample-telemetry.json. |
| data/sample-telemetry.json | Updated sample dataset intended to reflect the simulator’s generated output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+29
to
+30
| if solar > 30: | ||
| return "solar_export" if grid < 0 else "solar_charging" |
Comment on lines
+33
to
+34
| if grid > 10: | ||
| return "grid_import" |
Comment on lines
+8
to
+10
| "generator_kw": 0.0, | ||
| "grid_kw": -10.01, | ||
| "site_status": "normal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Introduces
services/simulator/simulate.pyto programmatically generate the demo site's sample telemetry, replacing the placeholder single-record JSON with a realistic 24-hour dataset.Changes
services/simulator/simulate.py(new)demo-site-001using stdlib only (json,math,os,datetime)site_status: derived enum —solar_export,solar_charging,low_battery,grid_import,normaldata/sample-telemetry.jsonrelative to repo rootdata/sample-telemetry.json(updated)