1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
Commit Graph

1122 Commits

Author SHA1 Message Date
Dave Conway-Jones
0b65cd8652
sqlite - better handle extensions timing 2018-08-22 23:47:03 +01:00
Dave Conway-Jones
665a8666ab
Merge branch 'master' of https://github.com/node-red/node-red-nodes 2018-08-22 13:58:58 +01:00
Dave Conway-Jones
1b0f573f4e
let sqlite add extensions 2018-08-22 13:58:55 +01:00
Schreck1985
45e4c6d9d4 Node red mail usetls (#480)
* Default value for tls, checking if tls is set to false
2018-08-22 13:57:42 +01:00
Nick O'Leary
35cbcb3345
Reset since_id if twitter tells us its invalid 2018-08-17 09:18:53 +01:00
Nick O'Leary
903a123049
Reset twitter polling on any api errors 2018-08-16 14:45:54 +01:00
Dave Conway-Jones
85ddffb98f
Ensure stomp retconnect retry default
to close #478
2018-08-15 22:17:32 +01:00
Dave Conway-Jones
d1eaec49c8
and finally 2018-08-15 22:01:52 +01:00
Dave Conway-Jones
68ea7f0ff2
slight reorder 2018-08-15 21:50:59 +01:00
Dave Conway-Jones
94d18836c9
really tidy that .jshintrc 2018-08-15 21:40:59 +01:00
Dave Conway-Jones
5394991e80
and fix comma 2018-08-15 21:35:09 +01:00
Dave Conway-Jones
5cf3725b66
Merge branch 'master' of https://github.com/node-red/node-red-nodes 2018-08-15 21:33:53 +01:00
Dave Conway-Jones
6fd3a1b11d
Allow es6 2018-08-15 21:33:40 +01:00
Nick O'Leary
42cd6131b2
big twitter node update for api changes 2018-08-15 15:23:12 +01:00
Dave Conway-Jones
6613513d64
bump unicornhat package 2018-08-15 14:28:50 +01:00
cclauss
e57223f1a8 Run flake8 linter on python code (#474)
* Run-flake8-linter-on-Python-code

* Remove hardware/unicorn/scripts/checklib.js
2018-08-15 14:18:33 +01:00
Dave Conway-Jones
6793fd2596
Don't allow node10 to fail 2018-08-15 13:59:17 +01:00
Dave Conway-Jones
120f88ef92
add lock file 2018-08-15 13:54:19 +01:00
Dave Conway-Jones
8aa4e49399
ensure npm up to date 2018-08-15 13:37:28 +01:00
Dave Conway-Jones
4c555db31e
Add node10 to travis but allow fail for now 2018-08-15 13:22:24 +01:00
Dave Conway-Jones
88574c71c9
bump pushover node version 2018-08-14 11:40:49 +01:00
Dave Conway-Jones
493061e6f0
bump mysql lib version 2018-08-13 12:30:52 +01:00
tmdoit
9c9af2952c Update to the latest mysql package (#476)
Updating from mysql 2.13 to 2.16 fixed for me a problem with error msg "Error: pool is closed" produced every few seconds in NR debug window.
2018-08-13 12:29:42 +01:00
cowchimp
771a49a8b0 support HTML-mode in Pushover node #467 (#468)
* support HTML-mode in Pushover node #467

* drop option to set whether Pushover uses HTML mode based on incoming node msg
2018-08-13 11:17:51 +01:00
Dave Conway-Jones
b94e3eb5fd
bump packages with python 2/3 fix 2018-08-12 22:23:19 +01:00
cclauss
8fe2478a0b Define raw_input() in Python 3 (#473)
Many thanks
2018-08-12 18:58:11 +01:00
Dave Conway-Jones
335c46ac06
remove node10 test for now 2018-08-12 16:17:19 +01:00
Dave Conway-Jones
ee2dc00ca6
update package.json deps 2018-08-12 16:15:04 +01:00
Dave Conway-Jones
ff02114c67
add multilang-sentiment to dev deps for test 2018-08-12 16:10:22 +01:00
Dave Conway-Jones
73a7b2bc41
bump serialport version 2018-08-11 14:06:25 +01:00
Dave Conway-Jones
211988017f
Let sqlite open RO as well as RW
Also better reuse of connection object
2018-08-11 14:03:16 +01:00
Dave Conway-Jones
f3b0e2277d
update blinkstick links to colors
To close #427
2018-08-11 14:00:26 +01:00
Dave Conway-Jones
50fc196c6f
Add multilingual sentiment node
(but not publish - yet)
2018-07-19 12:39:07 +01:00
Dave Conway-Jones
93584d8071
Bump sqlite package 2018-07-19 12:38:16 +01:00
tmdoit
e308b0c1f9 Add support for batch of SQL statements (#466)
* Add support for batch of SQL statements
2018-07-19 12:33:43 +01:00
Dave Conway-Jones
911f739005
fix suncalc not handling summer nights.
to Close #463
2018-07-17 10:24:40 +01:00
Dave Conway-Jones
8f83e471b8
let snmp nodes specify optional :port
to close #462
2018-07-17 09:41:52 +01:00
iurly
27a1038993 Serial request (#426)
* serial: simplify serialPool.get

serialPool.get() has a lot of arguments.
Just pass the whole serialConfig object instead.
Also introduce early termination to remove one level of indentation.
(Just set your diff tool to ignore all whitespace changes to see
how very little this patch changes)

* serial: move splitting logic onto serialPool

All SerialIn and SerialOut nodes for a given port
share the same splitting logic as it is indeed
set by the common configuration node.

Move the code from SerialIn into serialPool so that
it can be reused by the serial request node.
Notice how the 'data' event will no longer carry
single bytes, but the whole payload instead.

Also move the output encoding logic into serialPool.

* serial: add serial request node

Add a "serial request" node to handle simple request/response
protocols. This node allows for multiple instances, all
sharing the same underlying device.
Responses coming from the serial line will only be propagated
to the output of the node where the request was originally received
(contrary to the "serial in" nodes which all emit the data
received from the serial line).

Every request received as an input to the node, is transmitted
to the serial line, and a matching response must be received
before the next one can be transmitted.
Any input message received in the meantime is internally enqueued.

The node is essentially a merge of serial in and serial out.
It shares the same configuration with serial in and serial out
for any given port and will not affect the behavior of the
existing nodes.
This means you can use, alongside with the request node:
- as many serial in nodes as you want -- e.g. to "sniff"
- serial out to inject mailicious/tampering data onto the serial
  line, skipping the queueing mechanism

* serial request: provide some visual feedback on the node

add status indication:
- yellow "waiting" when a message is enqueued for sending
- green "OK" after an answer is received
- red "timeout" after a timeout occurs

More sofisticated output would include an indication of the number of messages
enqueued and the actual timeout remaining after sending.

* serial request: make default response timeout configurable

Notice it's a global setting (i.e. stored in the configuration node)
as opposed to per-node, but it can be overridden by setting msg.timeout.

* serial request: cosmetic changes

- added documentation about msg.port
- timeout field made wider so to accommodate default value of 10000ms
- replaced harcoded text with localizable strings for
  "waiting" and "timeout" messages

* serial: cleanup: remove node.tout

this was probably some leftover code from previous implementations.
Now all timeouts are handled within the connection objects.

* serial: cleanup: set obj.tout to null after clearing it

clearing a Timeout without setting it back to null *might* have
adverse effects on later code which would check its null-ity.
Let's just do it.

* serial: cosmetic: add some comments

* serial request: fix "split on timeout" case

In the case of "split on timeout" case, we're reusing the same
.tout for two different purposes:
1) to send a timeout message, in case no answer is received at all [request]
2) to split messages, after receiving the first character [in+request]

So in the case of serial request, checking whether .tout is already
set is no longer a valid condition for 2).
Let's just check whether i === 1, and clear the timeout set up by 1)
if it's already there.

* serial: add "split on silence" behavior

add a fourth logic to split incoming data into messages.
The existing "split on timeout" logic starts the timeout upon
reception of the first character.
This might lead to unwanted behavior if for instance Node-RED is
restarted, as data might accumulate into OS buffers (see #410).
A different logic might be to only emit a message when enough time
has passed, without any new data being received (line silent), a.k.a.
interbyte timeout.
2018-07-09 11:14:08 +01:00
Dave Conway-Jones
b4fca36ab6
let python sub processes use python3 2018-07-07 19:24:35 +01:00
Dave Conway-Jones
88f7f52f99
Add pullup option to Arduino digital input
to Close #455
2018-06-27 21:36:06 +01:00
Dave Conway-Jones
76a221919a
Update Readme to remove NMA node
and add 2018 to serialport copyright
2018-06-13 22:13:22 +01:00
Dave Conway-Jones
044d008e65
bump neopixel node version for npm
to go with pr #453
2018-06-13 22:12:33 +01:00
cymplecy
c511cf6ae7 Change DMA from 5 to 10 (#453)
I mentioned this a while ago
Following changes to Pi firmware/kernel, the DMA channel 5 is not reliable for use anymore.  Other repositories have changed to use channel 10.  https://github.com/jgarff/rpi_ws281x/pull/266/commits

 I've been running 3 of my Pi on DMA 10 (1 new Pi3B+ and 2 older PiZeros running Jessie) for 2 months now without any issues so I'm making this pull request now
2018-06-13 22:09:55 +01:00
Nick O'Leary
1c1b53425f
Fix tweet with image 2018-06-08 12:55:19 +01:00
Nick O'Leary
aaf93ab587
Handle upgrade from old to new twitter node better 2018-06-07 12:07:01 +01:00
Nick O'Leary
235831b464
Major update to twitter node for auth changes 2018-06-07 11:25:25 +01:00
Andrew Allen
e91f3704fc fix twilio global credentials (#288) 2018-06-02 13:44:04 +01:00
Dave Conway-Jones
a21e952d93
Deprecate NMA node prior to deletion 2018-06-02 13:41:22 +01:00
Dave Conway-Jones
997458c78e
Fix serial port add char logic
to close #450
2018-06-02 13:24:57 +01:00
Dave Conway-Jones
4d0360d94a
add done to sqlite close 2018-05-30 11:17:15 +01:00