node-red-contrib-nest v0.1.6 issues with Nest Request node

495 views
Skip to first unread message

Jon Murphy

unread,
Dec 13, 2015, 5:39:51 PM12/13/15
to Node-RED
Hello!  This is my 2nd experience trying to write a Nest flow.  The first one was easy to set-up and turned out really well since I was just reading the "ambient_temperature_f" (yes F! - sorry!) and sending it to a file.  I changed the flow and I am experiencing a few odd issues with the node-red-contrib-nest v0.1.6 and the Nest Request node.  I am trying to get info from the structure area of Nest.  If I set Type = Structure and ID = blank and Streaming = false then msg.payload = [].  

And if is set Type = Structure and ID field = blank and Streaming = true then I get some of the Nest structure.  The msg.payload only returns 1008 characters.  Setting the debugMaxLength: 2000 in setting.js does not change anything.  What am I doing wrong?!?

[{"id":"fd8798e9.027868","type":"nest request","z":"99cebb52.663148","account":"","devicetype":"structures","deviceid":"","streaming":"false","name":"","x":255,"y":58,"wires":[["adef0635.5210f8","9a7d0d25.6582f"]]},{"id":"d8a6958b.275968","type":"inject","z":"99cebb52.663148","name":"","topic":"","payload":"","payloadType":"none","repeat":"","crontab":"","once":false,"x":108,"y":58,"wires":[["fd8798e9.027868"]]},{"id":"adef0635.5210f8","type":"debug","z":"99cebb52.663148","name":"","active":true,"console":"true","complete":"payload","x":417,"y":58,"wires":[]},{"id":"9a7d0d25.6582f","type":"file","z":"99cebb52.663148","name":"Nest Log","filename":"/Users/name/Desktop/nest.log.txt","appendNewline":true,"createDir":false,"overwriteFile":"false","x":405,"y":108,"wires":[]}]

Also - here are a couple of small items in the Nest Request node:
Client ID should be Product ID
Client Secret should be Product Secret

Also I have a Nest Protect and can test things if needed (I saw the TODO list on github)

Thank you!
Jon


Screen Shot 2015-12-13 at 3.46.14 PM_thumb.jpg

Nicholas O'Leary

unread,
Dec 13, 2015, 5:42:28 PM12/13/15
to Node-RED Mailing LIst
Hi Jon,

I've not tried the Nest node, but if you don't get a response on this list, you could try raising an issue against the node on github here: https://github.com/hjespers/node-red-contrib-nest

Nick

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jon Murphy

unread,
Dec 14, 2015, 2:56:54 PM12/14/15
to Node-RED
Will do!  Thank you!  Jon

Hans Jespersen

unread,
Dec 16, 2015, 8:08:06 PM12/16/15
to Node-RED
This problem was reported by another user so its a known bug that I need to find some time to get fixed. If you don't need the streaming mode there is a quick fix that I could put in place but I wanted to have both streaming and non-streaming working.

-hans

Hans Jespersen

unread,
Jan 5, 2016, 9:09:37 PM1/5/16
to Node-RED
I published a new version 0.1.7 that should fix the problem with truncated large responses and still preserve the streaming functionality as before. Let me know if if fixes the problem.

-hans

Hans Jespersen

unread,
Jan 6, 2016, 5:03:14 PM1/6/16
to Node-RED

Yet another version published today ( 0.1.8 ) that updates the GUI to use the newer "Product" terminology and I added support for Nest cameras as well since I have one and can test it. Streaming mode is helpful if you want to catch motion notifications and grab the URL for the images or live video (all of which are in the JSON)

scott milliken

unread,
Feb 2, 2017, 11:33:11 PM2/2/17
to Node-RED


On Wednesday, January 6, 2016 at 3:03:14 PM UTC-7, Hans Jespersen wrote:

Yet another version published today ( 0.1.8 ) that updates the GUI to use the newer "Product" terminology and I added support for Nest cameras as well since I have one and can test it. Streaming mode is helpful if you want to catch motion notifications and grab the URL for the images or live video (all of which are in the JSON)

Sorry this is off topic, but where does one find the ID on the screen shot post in the original post? 

I have created the dev account, have all the information required for the attached screenshot, except the info doesn't stay when I click update.

Any ideas.

Thanks

Scott
Screenshot.png

Mark Setrem

unread,
Feb 3, 2017, 4:21:50 AM2/3/17
to Node-RED
A quick google returns this:

"When registration is complete, you'll get OAuth settings (product id and product secret)"

scott milliken

unread,
Feb 3, 2017, 12:50:14 PM2/3/17
to Node-RED


On Friday, February 3, 2017 at 2:21:50 AM UTC-7, Mark Setrem wrote:
A quick google returns this:

"When registration is complete, you'll get OAuth settings (product id and product secret)"


Within the set of the nodes there are three different ID's. In the Nest Request node it asks for an ID. The Temperature node asks for the Device ID and the Nest Status node asks for the Structure ID.

I have the Product D and the Product Secret.

Where do  obtain the other 3 ID's.

Thanks

Scott
Reply all
Reply to author
Forward
0 new messages