207 lines
4.5 KiB
JSON
207 lines
4.5 KiB
JSON
|
|
{
|
|||
|
|
"id": 6,
|
|||
|
|
"name": "Погода в Microsoft to do",
|
|||
|
|
"active": true,
|
|||
|
|
"nodes": [
|
|||
|
|
{
|
|||
|
|
"parameters": {},
|
|||
|
|
"name": "Start",
|
|||
|
|
"type": "n8n-nodes-base.start",
|
|||
|
|
"typeVersion": 1,
|
|||
|
|
"position": [
|
|||
|
|
240,
|
|||
|
|
300
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"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"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"parameters": {
|
|||
|
|
"triggerTimes": {
|
|||
|
|
"item": [
|
|||
|
|
{
|
|||
|
|
"mode": "everyHour"
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"name": "Cron",
|
|||
|
|
"type": "n8n-nodes-base.cron",
|
|||
|
|
"typeVersion": 1,
|
|||
|
|
"position": [
|
|||
|
|
300,
|
|||
|
|
540
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"parameters": {
|
|||
|
|
"operation": "update",
|
|||
|
|
"taskListId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgAuAAADIyRvDrjkMkCmTApWtV1lbAEAodXeAPq8WUqqkl0jol24wwAE9x75IQAAAA==",
|
|||
|
|
"taskId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgBGAAADIyRvDrjkMkCmTApWtV1lbAcAodXeAPq8WUqqkl0jol24wwAE9x75IQAAAKHV3gD6vFlKqpJdI6JduMMABTfY0mUAAAA=",
|
|||
|
|
"updateFields": {
|
|||
|
|
"content": "=Температура {{$json[\"main\"][\"temp\"]}}, но ощущается {{$json[\"main\"][\"feels_like\"]}},\nа в квартире {{$json[\"state\"]}}",
|
|||
|
|
"dueDateTime": "={{$today.toString()}}",
|
|||
|
|
"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"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"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"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"parameters": {
|
|||
|
|
"mode": "multiplex"
|
|||
|
|
},
|
|||
|
|
"name": "Merge",
|
|||
|
|
"type": "n8n-nodes-base.merge",
|
|||
|
|
"typeVersion": 1,
|
|||
|
|
"position": [
|
|||
|
|
980,
|
|||
|
|
240
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"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"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"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
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"createdAt": "2022-04-24T08:26:47.162Z",
|
|||
|
|
"updatedAt": "2022-05-19T16:04:03.624Z",
|
|||
|
|
"settings": {},
|
|||
|
|
"staticData": null
|
|||
|
|
}
|