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
// Name: Find JIRA ticket | |
// Shortcode: j | |
import "@johnlindquist/kit" | |
const JIRA_URL = await env("JIRA_URL"); | |
const JIRA_USERNAME = await env("JIRA_USERNAME"); | |
const JIRA_PASSWORD = await env("JIRA_PASSWORD"); | |
const JIRA_PROJECT_KEY = await env("JIRA_PROJECT_KEY"); |
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
// Name: Get Departures | |
import "@johnlindquist/kit" | |
type Station = { id: string, name: string, type: string }; | |
async function departuresDom(station: Station): Promise<string> { | |
const now = new Date(); | |
const body = { | |
"version": 47, |
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
theme = "onedark" | |
[editor] | |
line-number = "relative" | |
color-modes = true | |
[editor.file-picker] | |
hidden = false | |
[editor.indent-guides] |
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 HvvDeparturesCard extends HTMLElement { | |
set hass (hass) { | |
const entityId = this.config.entity | |
const state = hass.states[entityId] | |
const name = this.config.name || state.attributes['friendly_name'] | |
if (!this.content) { | |
const card = document.createElement('ha-card') | |
card.header = name | |
this.content = document.createElement('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
button_card_templates: | |
homekit: | |
aspect_ratio: 1/1 | |
hold_action: | |
action: more-info | |
show_label: true | |
show_state: true | |
color_type: card | |
color: '#232321' | |
size: 28px |
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
[{"id":"6e393969.673f5","type":"server-state-changed","z":"974a0bef.a0e068","name":"Someone comes 🏠","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person\\..*","entityidfiltertype":"regex","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":110,"y":620,"wires":[["49d067bc.f7f448"],[]]},{"id":"49d067bc.f7f448","type":"delay","z":"974a0bef.a0e068","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":235,"y":620,"wires":[["e01bf48d.d8b98"]],"l":false},{"id":"e01bf48d.d8b98","type":"function","z":"974a0bef.a0e068","name":"Filter family","func":"let family = ['person.alice', 'person.bob', 'person.celine', 'person.dylan'];\n\nif(family.includes(msg.topic)) {\n node.status({fill:\" |
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
# Main colors | |
primary-color: '#ffb430' #322a65 | |
accent-color: '#ffb430' #312868 | |
#dark-primary-color: '#2980b9' | |
light-primary-color: '#fff6e6' | |
#mdc-theme-primary: '#e971ae' | |
# Backgrounds | |
lovelace-background: 'center / cover no-repeat url("/local/background.jpg?v=1") fixed' |
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
[ | |
{ | |
"id": "1a171a83.11dfdd", | |
"type": "api-call-service", | |
"z": "25e52f9c.ae111", | |
"name": "save state", | |
"server": "e02cc9b7.16ead8", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "scene", |
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
[{"id":"7dd9b949.241c5","type":"server-state-changed","z":"888ff54.01d0f08","name":"Echo Input is playing","server":"e02cc9b7.16ead8","entityidfilter":"media_player.echo_input","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"playing","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"x":130,"y":120,"wires":[[],["94457b00.b5f5a8"]]},{"id":"cac76f36.abacc8","type":"api-call-service","z":"888ff54.01d0f08","name":"Select line3","server":"e02cc9b7.16ead8","service_domain":"media_player","service":"select_source","data":"{\"entity_id\":\"media_player.receiver\",\"source\":\"line3\"}","mergecontext":"","output_location":"","output_location_type":"none","x":810,"y":120,"wires":[[]]},{"id":"1f5384a.3c845fb","type":"api-call-service","z":"888ff54.01d0f08","name":"Turn Receiver on","server":"e02cc9b7.16ead8","service_domain":"media_player","service":"turn_on","data":"{\"entity_id\":\"media_player.receiver\"}","mergecontext":"","output_locat |
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 bpy, os | |
result = "" | |
obdata = bpy.context.object.data | |
result += 'Vertices: \n' | |
for v in obdata.vertices: | |
result += ('{}, {}, {}, '.format(v.co.x, v.co.z, v.co.y)) + '\n' |
NewerOlder