This file contains 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
import "https://unpkg.com/wired-card@0.8.1/wired-card.js?module"; | |
import "https://unpkg.com/wired-toggle@0.8.0/wired-toggle.js?module"; | |
import { LitElement, html, css } from "https://unpkg.com/lit-element@2.0.1/lit-element.js?module"; | |
class TripsCard extends LitElement { | |
static get properties() { | |
return { | |
person: { type: String }, | |
homeZone: { type: String }, | |
hours: { type: Number }, |
This file contains 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
class StateDurationCard extends HTMLElement { | |
set hass(hass) { | |
this._hass = hass; | |
if (!this.content) { | |
const cardTitle = this.config.title || 'State Duration Totals'; | |
this.innerHTML = ` | |
<ha-card> | |
<div class="card-header"> | |
<div class="name" style="cursor: pointer;">${cardTitle}</div> |
This file contains 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
class SimpleLogCard extends HTMLElement { | |
set hass(hass) { | |
this._hass = hass; | |
if (!this.content) { | |
const title = this.config.title || 'Sensor Log'; | |
this.innerHTML = ` | |
<ha-card header="${title}"> | |
<div class="card-content"></div> | |
</ha-card> | |
`; |
This file contains 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
import os | |
import pwd | |
import grp | |
import hashlib | |
from collections import defaultdict | |
# Trusted users | |
TRUSTED_USERS = ['root'] | |
# Base system directories |
This file contains 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
#render html file with table of Image, Dates in rows, from the espcam_history folder with filenames lik livingroom-2024-04-23_20-36.jpg | |
import os | |
import sys | |
import datetime | |
import re | |
import subprocess | |
import argparse | |
import jinja2 | |
import logging |
This file contains 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
setTimeout(function(){ | |
function getAllHaCards(root = document) { | |
const haCards = []; | |
const elements = root.querySelectorAll('*'); | |
elements.forEach(element => { | |
if (element.shadowRoot) { | |
haCards.push(...element.shadowRoot.querySelectorAll('ha-card')); | |
haCards.push(...getAllHaCards(element.shadowRoot)); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
// ==UserScript== | |
// @name Highlight 404 links in red background | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-07-01 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.ingham.org/* | |
// @match https://cms3.revize.com/revize/inghamcounty/* | |
// @exclude https://itsm.ingham.org/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=ingham.org |
This file contains 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
# Description: This script converts a json file to a csv file | |
# Author: Lily Rudloff | |
# Date: 05-23-2024 | |
# Version: 1.0 | |
# Usage: python convert_to_csv.py input.json output.csv | |
# Notes: This script requires the json file to be a list of dictionaries | |
# where each dictionary represents a row in the csv file. | |
# The keys of the first dictionary will be used as the headers | |
# for the csv file. |
NewerOlder