Skip to content

Instantly share code, notes, and snippets.

@sean6541
sean6541 / cwop_upload.yaml
Last active August 1, 2026 05:34
Upload data from Home Assistant to the CWOP.
blueprint:
name: 'CWOP Upload'
description: >
Upload data from Home Assistant to the CWOP.
Config:
The sensor_* variables are the sensors whos data will be uploaded.
The trigger_entities variable specifies the entries to trigger state changes on (this could be a list).
The script "/config/blueprints/automation/sean6541/send_tcp.sh" must be executable and contain the following:
@sean6541
sean6541 / Code.gs
Created January 24, 2020 00:58
Get list of users Gmail messages Google Apps Script
function getMessages(includeSpamTrash, labelIds, query, callback) {
var pageToken;
var messages = [];
do {
var resp = Gmail.Users.Messages.list('me', {
includeSpamTrash: includeSpamTrash,
labelIds: labelIds,
q: query,
pageToken: pageToken
});
@sean6541
sean6541 / README.md
Last active October 22, 2018 01:09
Easily install Hass.IO on an existing Raspbian install

Hass.IO On Raspbian

Easily install Hass.IO on an existing Raspbian install

Steps

  1. Run the following commands line-by-line in bash
sudo apt-get update
sudo apt-get -y install apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common