tverilytt / node-red Goto Github PK
View Code? Open in Web Editor NEWJo's Node-RED nodes
Jo's Node-RED nodes
When using data from geonames (search place)node directly into weather info node (yr) as suggsted in the "Node-RED Geonames-Yr sample flow" example it returns unknown data.
Are these yr-nodes working correctly?
After upgrading to latest version 0.1.15 from some earlier version (not sure which) I get the warning below, which results in the node not loading in the Node-RED UI.
node-red-dev | 3 Sep 07:50:34 - [warn] [node-red-contrib-yr/weather-info] Error: Cannot find module 'haversine-distance'
node-red-dev | Require stack:
node-red-dev | - /data/node_modules/node-red-contrib-yr/yr.js
node-red-dev | - /data/node_modules/node-red-contrib-yr/weather-info/weather-info.js
node-red-dev | - /usr/src/node-red/node_modules/@node-red/registry/lib/loader.js
node-red-dev | - /usr/src/node-red/node_modules/@node-red/registry/lib/index.js
node-red-dev | - /usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
node-red-dev | - /usr/src/node-red/node_modules/@node-red/runtime/lib/index.js
node-red-dev | - /usr/src/node-red/node_modules/node-red/lib/red.js
node-red-dev | - /usr/src/node-red/node_modules/node-red/red.js
Uninstalling > Re-installing the module solved the problem.
I do use these nodes to reverse geocode coordinates.
Recently it started to crash my node red instance as it seems geonames returns unparseable data from time to time.
The syslog shows:
Aug 13 13:56:58 raspberry Node-RED[11696]: 13 Aug 13:56:58 - [red] Uncaught Exception:
Aug 13 13:56:58 raspberry Node-RED[11696]: 13 Aug 13:56:58 - [error] SyntaxError: Unexpected token < in JSON at position 0
Aug 13 13:56:58 raspberry Node-RED[11696]: at JSON.parse (<anonymous>)
Aug 13 13:56:58 raspberry Node-RED[11696]: at IncomingMessage.<anonymous> (/home/pi/.node-red/node_modules/node-red-contrib-geonames/lookup-place/lookup-place.js:68:33)
Aug 13 13:56:58 raspberry Node-RED[11696]: at IncomingMessage.emit (node:events:525:35)
Aug 13 13:56:58 raspberry Node-RED[11696]: at IncomingMessage.emit (node:domain:489:12)
Aug 13 13:56:58 raspberry Node-RED[11696]: at endReadableNT (node:internal/streams/readable:1358:12)
Aug 13 13:56:58 raspberry Node-RED[11696]: at processTicksAndRejections (node:internal/process/task_queues:83:21)
Aug 13 13:56:59 raspberry systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 13:56:59 raspberry systemd[1]: nodered.service: Failed with result 'exit-code'.
Aug 13 13:56:59 raspberry systemd[1]: nodered.service: Consumed 19.779s CPU time.
Any chance to gracefully swallow such error in case of crashing the whole thing?
Feel free to ask if more data is needed to debug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.