Skip to content

Instantly share code, notes, and snippets.

View e3e6's full-sized avatar

Alexander e3e6

  • Ukraine
View GitHub Profile
@e3e6
e3e6 / gist:d78d649e259e7c6b6b2ca431760416ac
Created July 18, 2025 14:40
n8n notion get all issue
{
"nodes": [
{
"parameters": {
"functionCode": "return [\n { json: { name: 'Order #12345', text: 'This is a test for order #12345' } },\n { json: { name: 'Order #12345', text: 'Adding more info for the same order' } },\n { json: { name: 'Order #67890', text: 'A completely new order' } }\n];"
},
"name": "Input Items",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
@e3e6
e3e6 / main.m5f2
Created January 7, 2025 19:29
M5Stack Atom Echo: i2c driver install error
{"version":"V2.0","versionNumber":"V2.2.0","type":"atom-echo","components":[],"resources":[{"hardware":["hardware_button","hardware_pin_button","rgb","speaker","ir","mic"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\"2Y=RySQQbfp`yn1MQS()\">color</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"rgb_init\" id=\"XK3-BI@0XeY]U*i;+T;p\"><mutation mode=\"builtin\"></mutation><field name=\"MODE\">builtin</field><next><block type=\"variables_set\" id=\"}R1^ol`LS4xE$8%N,gKR\"><field name=\"VAR\" id=\"2Y=RySQQbfp`yn1MQS()\">color</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"H@^?(G!!1Y/XQ_sH?qE_\"><field name=\"BOOL\">TRUE</field></block></value></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id
@e3e6
e3e6 / gist:4a26874951b46411b26ef6805d793b29
Created July 20, 2024 15:04
How to control APC UPS beeper from Home Assistant
Hassio Core 2024.7.2
DSM 7.2
APC UPS connected to Synology NAS via USB.
---
1. Enable UPS service in Synology
https://kb.synology.com/en-uk/DSM/help/DSM/AdminCenter/system_hardware_ups?version=7
2. Add UPS to HomeAssistant using NUT integration to get https://www.home-assistant.io/integrations/nut
- [host] Synology local IP address
- [port] 3493