Skip to content

Instantly share code, notes, and snippets.

View BuongiornoTexas's full-sized avatar

BuongiornoTexas

View GitHub Profile
@BuongiornoTexas
BuongiornoTexas / tesla_energy_history.py
Created November 12, 2022 06:24
Rough python script for extracting arbitrary ranges of powerwall history data from the Tesla Cloud
#!/usr/bin/env python
# TO DO:
# - Manage multiple sites in TCInfo (low priority)
# cspell: ignore CACHEFILE NODEMAP teslapy powerwall WHTOKWH QUARTERHOUR mcbirse
import json
import sys
from enum import Enum
@BuongiornoTexas
BuongiornoTexas / steamlocation.py
Created January 15, 2022 21:58
Steam registry fragments - Windows python methods for getting Steam user data.
# utilities for extracting Steam parameters from the windows registry.
# Replaced in rsrtools with vdf processing routines.
# Not used. Delete in later version.
def steam_registry_users() -> List[str]:
"""Return list[str] of Steam account ids found in the registry."""
ret_val = list()
try:
with winreg.OpenKey(
@BuongiornoTexas
BuongiornoTexas / profilemerge.py
Created January 15, 2022 21:56
Rough script to merge Rocksmith profiles based on higest played count in Learn a Song
""" This is a quick and dirty tool to merge two Rocksmith Profiles.
It is very hacky and not terribly safe. Use with care.
Merging is done by choosing the arrangement with the highest "Learn a song" play count.
For a given arrangement and play count:
If both files have the same play count, nothing changes.
If the master file has a higher play count than the merge file, nothing changes.
If the merge file has a higher play count, the learn a song data, the arrangement
stats, and the score attack data are copied to the master file.
@BuongiornoTexas
BuongiornoTexas / scratch.py
Created May 6, 2019 04:10
Rocksmith arrangement checker
#! /usr/bin/env python
"""Quick and dirty arrangement finder for Rocksmith profile.
Read only function, non-desctructive.
- Loads json file specified in json file.
- Finds arrangment ids in the four locations specfied in the items list.
- Deletes the items list objects.
- Walks the dictionary looking for other places arrangement ids occur.