Comments (3)
For multiple messages, this description isn't what we discussed. I know there was some confusion over what we meant by multiple messages versus multiple results in a single message. And it is entirely possible the implementation in PR is more up to date than this... but need to clarify this first.
Here's what I would expect for the combinations of 'requested num of results' and 'single/multiple messages'
requested num of results=1 , single message
- The node sends a single message:
node.send(msg)
msg.payload
set to the JSON representation of the venuemsg.lat/lon/etc
set to the relevant values for the venuemsg.title
set to something sensible
requested num of results=1 , multiple messages
- The node sends a single message:
node.send(msg)
msg.payload
set to the JSON representation of the venuemsg.location.lat/lon/etc
set to the relevant values for the venuemsg.title
set to something sensible
requested num of results>1 , single message
- The node sends a single message:
node.send(msg)
msg.payload
set to an array of objects, each of which has the properties:payload
set to the JSON rep of the venulocation.lat/long/etc
etc set to the relevant valuestitle
set to something sensible
msg.lat/lon/etc
left unset
requested num of results>1 , multiple messages
- The node sends a message for each result.
This can either be achieved by callingnode.send(msg)
for each result in turn, or callingnode.send([[result1,result2,result3,...]])
- note the double level of array for this to work.
For each of the messages sent... result1.payload
set to the JSON representation of the venueresult1.location.lat/lon/etc
set to the relevant values for the venueresult1.title
set to something sensible
from node-red-web-nodes.
In which case I "still" don't completely understand the multiple msgs thing as I thought I'd implemented/written down what we'd discussed :-) I'll look at it some more and see where my confusion lies.
BTW the info here is the same as in the PR so that needs updating too....
from node-red-web-nodes.
Implemented as per @knolleary comment. Pull request merged and closed. Therefore closing this issue.
from node-red-web-nodes.
Related Issues (20)
- Calendar - all day events are not triggered by calendar in
- Openweathermap fails to install HOT 1
- openweathermap catchable errors HOT 2
- Openweathermap Dewpoint? HOT 2
- Auth times out every few days. HOT 1
- S3 on node-red-node-aws will not upload if account cannot access root directory of bucket HOT 2
- Calendar events with links (Google Meet) HOT 1
- Take input as msg parameter
- Google Calendar HOT 2
- Google contacts HOT 1
- node-red-node-google - Conference data HOT 1
- Dropbox refresh token HOT 19
- OpenWeatherMap Incomplete Pressure Data? HOT 1
- Darksky no longer supported HOT 1
- OpenWeather - 5 day data missing, current day data ok HOT 2
- Migration from One Call 2.5 to One Call 3.0 HOT 7
- node-red-node-openweathermap update to 1.0.0 -> error HOT 16
- Wrong structure output somoetimes.
- mention Onecall 3.0 option in the documentation HOT 2
- How can I read the directory listing of a Dropbox folder?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-web-nodes.