220 lines
5.0 KiB
JSON
Executable File
220 lines
5.0 KiB
JSON
Executable File
{
|
||
"createdAt": "2022-04-24T08:26:47.162Z",
|
||
"updatedAt": "2022-12-23T17:42:31.096Z",
|
||
"id": 6,
|
||
"name": "Погода в Microsoft to do",
|
||
"active": true,
|
||
"nodes": [
|
||
{
|
||
"parameters": {},
|
||
"name": "Start",
|
||
"type": "n8n-nodes-base.start",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
240,
|
||
300
|
||
],
|
||
"id": "2ac945b3-cebf-4079-b130-e496af23d44b"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"cityName": "chernihiv,ua",
|
||
"language": "ru"
|
||
},
|
||
"name": "OpenWeatherMap",
|
||
"type": "n8n-nodes-base.openWeatherMap",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
540,
|
||
380
|
||
],
|
||
"credentials": {
|
||
"openWeatherMapApi": {
|
||
"id": "2",
|
||
"name": "OpenWeatherMap account"
|
||
}
|
||
},
|
||
"id": "e0274ab8-806f-43c3-a46a-fb7f322fc7c3"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"triggerTimes": {
|
||
"item": [
|
||
{
|
||
"mode": "everyHour"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "Cron",
|
||
"type": "n8n-nodes-base.cron",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
300,
|
||
540
|
||
],
|
||
"id": "26e09211-a6ca-4a6c-b4a9-b5be35792c97"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"taskListId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgAuAAADIyRvDrjkMkCmTApWtV1lbAEAodXeAPq8WUqqkl0jol24wwAE9x75IQAAAA==",
|
||
"taskId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgBGAAADIyRvDrjkMkCmTApWtV1lbAcAodXeAPq8WUqqkl0jol24wwAE9x75IQAAAKHV3gD6vFlKqpJdI6JduMMABTfY0mUAAAA=",
|
||
"updateFields": {
|
||
"content": "=Температура {{$json[\"main\"][\"temp\"]}}, но ощущается {{$json[\"main\"][\"feels_like\"]}},\nа в квартире {{$json[\"state\"]}}",
|
||
"dueDateTime": "={{$today.plus({days: 1}).toString()}}",
|
||
"importance": "low",
|
||
"status": "notStarted",
|
||
"title": "=Прямо сейчас {{$json[\"weather\"][0][\"description\"]}}"
|
||
}
|
||
},
|
||
"name": "Microsoft To Do1",
|
||
"type": "n8n-nodes-base.microsoftToDo",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1220,
|
||
240
|
||
],
|
||
"credentials": {
|
||
"microsoftToDoOAuth2Api": {
|
||
"id": "4",
|
||
"name": "Microsoft To Do account"
|
||
}
|
||
},
|
||
"id": "5da33f31-2928-4191-b4c8-ac39cf6faa94"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resource": "state",
|
||
"entityId": "sensor.lumi_lumi_weather_e9d0c902_temperature"
|
||
},
|
||
"name": "Home Assistant",
|
||
"type": "n8n-nodes-base.homeAssistant",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
540,
|
||
200
|
||
],
|
||
"credentials": {
|
||
"homeAssistantApi": {
|
||
"id": "5",
|
||
"name": "ha.cynic.club"
|
||
}
|
||
},
|
||
"id": "e0826c32-4c12-4e1b-8e49-43bff40dca2e"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"mode": "multiplex"
|
||
},
|
||
"name": "Merge",
|
||
"type": "n8n-nodes-base.merge",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
980,
|
||
240
|
||
],
|
||
"id": "854474d3-dc0c-4b16-843c-bad994729c74"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "create",
|
||
"docId": "4mmygEDcPEhS3ZLXbZGLQL",
|
||
"tableId": "Temperature",
|
||
"fieldsToSend": {
|
||
"properties": [
|
||
{
|
||
"fieldId": "date",
|
||
"fieldValue": "={{$now.toString()}}"
|
||
},
|
||
{
|
||
"fieldId": "living_room_temperature",
|
||
"fieldValue": "={{$json[\"state\"]}}"
|
||
},
|
||
{
|
||
"fieldId": "outdoor_temperaure",
|
||
"fieldValue": "={{$json[\"main\"][\"temp\"]}}"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"name": "Grist",
|
||
"type": "n8n-nodes-base.grist",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1280,
|
||
460
|
||
],
|
||
"credentials": {
|
||
"gristApi": {
|
||
"id": "21",
|
||
"name": "Grist account"
|
||
}
|
||
},
|
||
"id": "90588bbb-7449-4784-9278-b26f88fe7fc0"
|
||
}
|
||
],
|
||
"connections": {
|
||
"OpenWeatherMap": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge",
|
||
"type": "main",
|
||
"index": 1
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Cron": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "OpenWeatherMap",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "Home Assistant",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Home Assistant": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Merge",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Merge": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Microsoft To Do1",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "Grist",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"settings": {},
|
||
"staticData": null,
|
||
"dataLoaded": true,
|
||
"pinData": null,
|
||
"versionId": "1495fe55-2880-4d6d-82da-f979d6b95e4d",
|
||
"triggerCount": 1,
|
||
"tags": []
|
||
} |