Commit 30820ee1 authored by marecek1337's avatar marecek1337
Browse files

weathermap

parent fb1c907c
......@@ -391,5 +391,26 @@
"file": "/usr/src/node-red/node_modules/node-red-node-tail/28-tail.js"
}
}
},
"node-red-contrib-web-worldmap": {
"name": "node-red-contrib-web-worldmap",
"version": "2.13.3",
"local": false,
"nodes": {
"worldmap": {
"name": "worldmap",
"types": [
"worldmap",
"ui_worldmap",
"worldmap in",
"worldmap-tracks",
"worldmap-hull"
],
"enabled": true,
"local": true,
"module": "node-red-contrib-web-worldmap",
"file": "/data/node_modules/node-red-contrib-web-worldmap/worldmap.js"
}
}
}
}
\ No newline at end of file
{
"_credentialSecret": "6983bec1d6414347bee83d272606a9064ce9a7f2927a60f16b1174df52684d9f"
"_credentialSecret": "90e4829528a66e571f44ae527e45440a73bbcedb308893f55bcef30c953d8b7f"
}
\ No newline at end of file
[{"id":"e2795ac7.83585","type":"tab","label":"Wells","disabled":false,"info":""},{"id":"91318a63.5bd71","type":"function","z":"e2795ac7.83585","name":"","func":"\nreturn \"miro ma maly pipik\";","outputs":1,"noerr":0,"initialize":"","finalize":"","x":290,"y":160,"wires":[["b91ff504.3e55b"]]},{"id":"79bab478.de4e94","type":"debug","z":"e2795ac7.83585","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":950,"y":220,"wires":[]},{"id":"fa88ab7b.af3bc","type":"inject","z":"e2795ac7.83585","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":280,"wires":[["91318a63.5bd71"]]},{"id":"b91ff504.3e55b","type":"change","z":"e2795ac7.83585","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":340,"wires":[["79bab478.de4e94"]]}]
\ No newline at end of file
[{"id":"e2795ac7.83585","type":"tab","label":"Wells","disabled":false,"info":""},{"id":"91318a63.5bd71","type":"function","z":"e2795ac7.83585","name":"","func":"\nreturn \"miro ma maly pipik\";","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":280,"wires":[[]]},{"id":"fa88ab7b.af3bc","type":"inject","z":"e2795ac7.83585","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":210,"y":280,"wires":[["91318a63.5bd71"]]}]
\ No newline at end of file
[{"id":"bb15f018.5b67e8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"1deb784e.f7ee9","type":"tab","label":"Weather","disabled":false,"info":""},{"id":"4fec3f18.b8d84","type":"inject","z":"1deb784e.f7ee9","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":190,"y":840,"wires":[["3b6526a2.7b13aa","54302661.8d17c8","628ca995.a8b6d8","a99d5ab0.f7133","65d43691.2f31c","fe3f6d5c.6ed2e8","9d3ab0e.410bad","961918f6.ce6e98","c0911ff8.989b4","29065e51.d74aca"]]},{"id":"3b6526a2.7b13aa","type":"http request","z":"1deb784e.f7ee9","name":"Kosice weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=kosice,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":510,"y":560,"wires":[["4af679b7.6159c"]]},{"id":"4af679b7.6159c","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":560,"wires":[["22041c3e.6e43ec"]]},{"id":"22041c3e.6e43ec","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Kosice\",\n \"lat\": 48.6667,\n \"lon\": 21.3333,\n \"icon\": \"leaf\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":560,"wires":[["3d996059.b19a2"]]},{"id":"54302661.8d17c8","type":"http request","z":"1deb784e.f7ee9","name":"Michalovce weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=michalovce,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":510,"y":640,"wires":[["51f2cf04.da0e48"]]},{"id":"51f2cf04.da0e48","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":640,"wires":[["1fd8efd7.811bf"]]},{"id":"1fd8efd7.811bf","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Michalovce\",\n \"lat\": 48.7543,\n \"lon\": 21.9195,\n \"icon\": \"pagelines\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":640,"wires":[["3d996059.b19a2"]]},{"id":"628ca995.a8b6d8","type":"http request","z":"1deb784e.f7ee9","name":"Secovce weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=secovce,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":720,"wires":[["14731a83.ea019d"]]},{"id":"14731a83.ea019d","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":720,"wires":[["fc50639f.d26d78"]]},{"id":"fc50639f.d26d78","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Secovce\",\n \"lat\": \t48.7007,\n \"lon\": 21.661,\n \"icon\": \"tint\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":720,"wires":[["3d996059.b19a2"]]},{"id":"a99d5ab0.f7133","type":"http request","z":"1deb784e.f7ee9","name":"Presov weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=presov,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":780,"wires":[["5deafbab.cdf824"]]},{"id":"5deafbab.cdf824","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":780,"wires":[["8fd441f8.312f7"]]},{"id":"8fd441f8.312f7","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Presov\",\n \"lat\": 49.0151,\n \"lon\": 21.2371,\n \"icon\": \"leaf\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":780,"wires":[["3d996059.b19a2"]]},{"id":"65d43691.2f31c","type":"http request","z":"1deb784e.f7ee9","name":"Gelnica weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=gelnica,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":860,"wires":[["e57efcf3.a4596"]]},{"id":"e57efcf3.a4596","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":860,"wires":[["f9f9492e.c1af08"]]},{"id":"f9f9492e.c1af08","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Gelnica\",\n \"lat\": 48.8558,\n \"lon\": 20.9371,\n \"icon\": \"pagelines\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":860,"wires":[["3d996059.b19a2"]]},{"id":"fe3f6d5c.6ed2e8","type":"http request","z":"1deb784e.f7ee9","name":"Humenne weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=humenne,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":920,"wires":[["ad731996.aa4448"]]},{"id":"ad731996.aa4448","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":920,"wires":[["1c7dfa1f.e20c5e"]]},{"id":"1c7dfa1f.e20c5e","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Humenne\",\n \"lat\": 48.9371,\n \"lon\": 21.9163,\n \"icon\": \"tint\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":920,"wires":[["3d996059.b19a2"]]},{"id":"29065e51.d74aca","type":"http request","z":"1deb784e.f7ee9","name":"Sobrance weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=sobrance,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":980,"wires":[["efff4a89.f61b78"]]},{"id":"efff4a89.f61b78","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":980,"wires":[["bf5c17c5.71af68"]]},{"id":"bf5c17c5.71af68","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Sobrance\",\n \"lat\": 48.7445,\n \"lon\": 22.1814,\n \"icon\": \"leaf\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":980,"wires":[["3d996059.b19a2"]]},{"id":"9d3ab0e.410bad","type":"http request","z":"1deb784e.f7ee9","name":"Sabinov weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=sabinov,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":1040,"wires":[["6552b068.f849f"]]},{"id":"6552b068.f849f","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":1040,"wires":[["e3afd5e4.cf8168"]]},{"id":"e3afd5e4.cf8168","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Sabinov\",\n \"lat\": 49.0988,\n \"lon\": 21.1031,\n \"icon\": \"pagelines\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":1040,"wires":[["3d996059.b19a2"]]},{"id":"961918f6.ce6e98","type":"http request","z":"1deb784e.f7ee9","name":"Trebisov weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=trebisov,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":1080,"wires":[["23cec70c.e6a9c"]]},{"id":"23cec70c.e6a9c","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":1080,"wires":[["121b26d1.e19999"]]},{"id":"121b26d1.e19999","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Trebisov\",\n \"lat\": 48.6286,\n \"lon\": 21.7195,\n \"icon\": \"tint\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":1080,"wires":[["3d996059.b19a2"]]},{"id":"c0911ff8.989b4","type":"http request","z":"1deb784e.f7ee9","name":"Roznava weathermap","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://api.openweathermap.org/data/2.5/weather?units=metric&q=roznava,sk&appid=08f5d8fd385c443eeff6608c643e0bc5","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":1140,"wires":[["8a95327a.b8aca8"]]},{"id":"8a95327a.b8aca8","type":"json","z":"1deb784e.f7ee9","name":"","property":"payload","action":"","pretty":false,"x":690,"y":1140,"wires":[["d7a2f426.d40a"]]},{"id":"d7a2f426.d40a","type":"function","z":"1deb784e.f7ee9","name":"","func":"let data = {};\ndata.topic = msg.topic;\ndata.payload = \n {\n \"name\": \"Zahrada Roznava\",\n \"lat\": 48.6601,\n \"lon\": 20.5376,\n \"icon\": \"leaf\",\n \"photourl\": \"https://upload.wikimedia.org/wikipedia/commons/e/e8/Botanical_garden_Ko%C5%A1ice.jpg\",\n \"temperature\": `${msg.payload.main.temp}°C`,\n \"humidity\": `${msg.payload.main.humidity}%`,\n \"pressure\": `${msg.payload.main.pressure}hPa`\n };\n\nreturn data;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":1140,"wires":[["3d996059.b19a2"]]},{"id":"3d996059.b19a2","type":"worldmap","z":"1deb784e.f7ee9","name":"","lat":"48.730512","lon":"21.242766","zoom":"10","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","allowFileDrop":"false","path":"/worldmap","x":1200,"y":880,"wires":[]}]
\ No newline at end of file
{"$":"c4ba9fdc48c177cd5a2a544be19696f8UZs="}
\ No newline at end of file
{"$":"2fdd68ea8a55721c2ba6c56f9637556f8Jw="}
\ No newline at end of file
......@@ -2,5 +2,8 @@
"name": "node-red-project",
"description": "A Node-RED Project",
"version": "0.0.1",
"private": true
}
\ No newline at end of file
"private": true,
"dependencies": {
"node-red-contrib-web-worldmap": "~2.13.3"
}
}
2021.4.6
\ No newline at end of file
2021.4.4
\ No newline at end of file
......@@ -12,15 +12,15 @@
"user_id": "e1c1de7135b9419386f3b38ae8cdeb07",
"friendly_name": "Hackathon-2021"
},
"last_changed": "2021-04-26T11:26:59.406413+00:00",
"last_updated": "2021-04-26T11:27:00.237291+00:00",
"last_changed": "2021-04-26T13:07:05.360616+00:00",
"last_updated": "2021-04-26T13:07:06.889434+00:00",
"context": {
"id": "b0d4dc8b75d8c9e44b64984cee87d17b",
"id": "c88ba5394e00119f4fb94d7ffa3a4d1a",
"parent_id": null,
"user_id": null
}
},
"last_seen": "2021-04-26T11:30:23.832900+00:00"
"last_seen": "2021-04-26T13:09:42.080790+00:00"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"version": 1,
"key": "http",
"data": {
"login_attempts_threshold": -1,
"cors_allowed_origins": [
"https://cast.home-assistant.io"
],
"ssl_profile": "modern",
"ip_ban_enabled": true,
"server_port": 8123,
"ip_ban_enabled": true
"login_attempts_threshold": -1,
"ssl_profile": "modern"
}
}
\ No newline at end of file
2021-04-26 11:12:24 ERROR (Recorder) [homeassistant.components.recorder.util] The database at //config/home-assistant_v2.db is corrupt or malformed
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 175, in validate_sqlite_database
run_checks_on_open_db(dbpath, conn.cursor(), db_integrity_check)
File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 186, in run_checks_on_open_db
sanity_check_passed = basic_sanity_check(cursor)
File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 164, in basic_sanity_check
cursor.execute(f"SELECT * FROM {table} LIMIT 1;") # nosec # not injection
sqlite3.OperationalError: no such table: states
2021-04-26 11:12:24 ERROR (Recorder) [homeassistant.components.recorder.util] The system will rename the corrupt database file //config/home-assistant_v2.db to //config/home-assistant_v2.db.corrupt.2021-04-26T11:12:24.839719+00:00 in order to allow startup to proceed
2021-04-26 15:07:04 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2021-04-26 15:07:04 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=7 from 2021-04-26 12:18:42.959094)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment