Is that coming straight out of the mqtt node? If so then it is whatever is feeding it to mqtt that is generating Not a Number.
Colin
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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+unsubscribe@googlegroups.com.
To post to this group, send an email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/3f7dfa86-5c4f-4027-9a71-680b5cd10cdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAL%3D0gLsETUZYZi13Pq31sV7uGr%2B5Qs28OfGgTEaxxV_ZodfOzg%40mail.gmail.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/40554fbf-20e3-41a2-bdf2-a727c3ea9d46%40googlegroups.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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+unsubscribe@googlegroups.com.
To post to this group, send an email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/f8cd00b7-fdd6-46ad-820b-059b46f6a493%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
And what about doing as I suggested and running Node-RED with the -v option and sharing the Node-RED log output? Until you do that, there's not much else I can do to help.
Nick
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/dcba8be6-a474-4890-9db9-b2075d1d919e%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/dcba8be6-a474-4890-9db9-b2075d1d919e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3Dvhqeq58sQWAH8zVP61NcAHvUcNkkFew%2BL902RRhYZmizunw%40mail.gmail.com.
No. I didn't ask you to run mosquitto_sub. Please run Node-RED with the -v option.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/dcba8be6-a474-4890-9db9-b2075d1d919e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3Dvhqeq58sQWAH8zVP61NcAHvUcNkkFew%2BL902RRhYZmizunw%40mail.gmail.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpAJJZqyZQGCTCAu%3DRPX6aXqin7h1ThRpchwxpokdevby7Q%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/dcba8be6-a474-4890-9db9-b2075d1d919e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3Dvhqeq58sQWAH8zVP61NcAHvUcNkkFew%2BL902RRhYZmizunw%40mail.gmail.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpAJJZqyZQGCTCAu%3DRPX6aXqin7h1ThRpchwxpokdevby7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3DvhqfGoQ8aq7Fy-611c4Eop3kCZ_-ieD6PfdwzdV%2B8fSDjpw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/dcba8be6-a474-4890-9db9-b2075d1d919e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3Dvhqeq58sQWAH8zVP61NcAHvUcNkkFew%2BL902RRhYZmizunw%40mail.gmail.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpAJJZqyZQGCTCAu%3DRPX6aXqin7h1ThRpchwxpokdevby7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3DvhqfGoQ8aq7Fy-611c4Eop3kCZ_-ieD6PfdwzdV%2B8fSDjpw%40mail.gmail.com.
How are you running Node-RED?
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/dcba8be6-a474-4890-9db9-b2075d1d919e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3Dvhqeq58sQWAH8zVP61NcAHvUcNkkFew%2BL902RRhYZmizunw%40mail.gmail.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpAJJZqyZQGCTCAu%3DRPX6aXqin7h1ThRpchwxpokdevby7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAF%3DvhqfGoQ8aq7Fy-611c4Eop3kCZ_-ieD6PfdwzdV%2B8fSDjpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpALRf6nXZGcE36Jvn35sVAYJQ8PQvcM1Z-Ah-jbpbgJCRg%40mail.gmail.com.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFwKhF3O7b21Em2UCNF6cLRjFJZ%3Dxj-oTbtCkKKWY-HaJeQ%40mail.gmail.com.
Welcome to Node-RED
===================
22 Oct 10:46:20 - [info] Node-RED version: v0.15.1
22 Oct 10:46:20 - [info] Node.js version: v0.10.29
22 Oct 10:46:20 - [info] Linux 4.4.21-v7+ arm LE
pi@iotmaker:~ $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://169.254.170.40:1880
On Pi Node-RED works better with the Firefox browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
You may also need to install and upgrade npm
sudo apt-get install npm
sudo npm i -g npm@2.x
Started Node-RED graphical event wiring tool..
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA NaN 0
1 :::
22 Oct 11:48:37 - [error] [json:6e99e5cd.1d5cac] Unexpected token N
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
DATA 1 1 :::
DATA 0 0 :::
===================================================
Ohter result:
===================================================
pi@iotmaker:~ $ mosquitto_sub -v -t 'topic/gasValve'
topic/gasValve 0
topic/gasValve 1
topic/gasValve 1
topic/gasValve 0
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 0
topic/gasValve 1
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve NaN
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 1
topic/gasValve 0
topic/gasValve 0
===================================================
Please wait just second!
I want to test other pi.
Lee, Stephen
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFw%2BB843PGJ4aFQfE6ukWchO3AR23u8AGmRFyUVQXn0VEyg%40mail.gmail.com.
Other thought is... the gas sensor input. Do you know what sort of signal it produces ? Is it an active high or low signal or is it actually a set of switched contacts ? in which case are they normally open or closed - and can we perhaps use either the pull up or pull down setting to make the signal more stable. (Obviously this needs to be correct before applying or you could be trying to force a signal high (or low) when it doesn't want to and could damage the input.)
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFwKiN77D5RK4q%2Bb8orNKTAVujNbokVxidbc6_qeUin_nsQ%40mail.gmail.com.
DATA NaN 0
1 :::
aargh... apologies.. that should be \n in there not /nvar d = data.toString().trim().split("\n");
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFw%2Bt%3DQDLL5pqYUD4Jz6ju6isT-Sv7BEDqkXt6uQeshqUHw%40mail.gmail.com.
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+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpAJZmzHfu5KYoQYM2nNEPHgah8fGemnhNnbR1JED7U7QuQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAL%3D0gLsCL5MD0Wv6BW%3D%2BwhvAkJJTJDbjLN5iQcjK-R8hu7bOGQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAL%3D0gLsCL5MD0Wv6BW%3D%2BwhvAkJJTJDbjLN5iQcjK-R8hu7bOGQ%40mail.gmail.com.
Dear Colin LawI just used your value without using a pull-up& down resistor but it never works. Pleas help me draw yours with calculation on paper like me.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpA%2B46w2QgmUHz5uAfT010dGYg%3D6p1dSy_q5F_9eTX08TrQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpA%2B46w2QgmUHz5uAfT010dGYg%3D6p1dSy_q5F_9eTX08TrQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAAZtpAK_5uRowjeFVa-x%2B5xyAOP8qSC8n4svHYHv5DvXgZCkGA%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CAL%3D0gLvmJznMF7vFV4JRiBZJNNyAWtWAN3fpfmK2pc3Ddg6P0A%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/2a9bbe47-e75a-4834-8e68-0563276708c2%40googlegroups.com.
Dear Dave C-J, Nick, and Ben Hardill
I'm writing to get your feedback in my result of PID control experiment. There are some overshoots and undershoots.
You can see more details here. http://www.instructables.com/id/PID-Control-for-CPU-Temperature-of-Raspberry-Pi/
Thank you for giving your precious time.
Lee, Stephen
You can have a look in my instructable.
http://www.instructables.com/id/PID-Control-for-CPU-Temperature-of-Raspberry-Pi/
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YG_0nSRhWao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/a153f9f4-529d-4389-aacb-a522440f7330%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.