Commit Graph

532 Commits

Author SHA1 Message Date
Mark Hindess 5073cf8dd7 Reduce scope of variable declaration to be consistent with MQTTInNode code. 2014-07-16 21:45:02 +01:00
Mark Hindess 77f6652fa9 Remove spurious variable declaration. 2014-07-16 21:45:02 +01:00
Dave Conway-Jones debd5c4496 Spelling correctin http node info, close #266 2014-07-14 09:26:09 +01:00
Dave C-J 62496d80d5 tray/catch error in Websocket node to close #264 2014-07-13 17:39:56 +01:00
Dave C-J bc53d302ff and add fa icons to websocket 2014-07-11 21:32:51 +01:00
Dave C-J 1a1c6a73b6 Update icon to fa icons for parser nodes and sentiment 2014-07-11 21:01:16 +01:00
Dave Conway-Jones b84aba5c98 minor spelling correction 2014-07-11 08:20:47 +01:00
Dave C-J de352dcdc2 Change template node to allow templating of any property of msg 2014-07-10 08:23:44 +01:00
Nick O'Leary 3db84d5bf1 HTTP Out payload: relax null checking 2014-07-09 09:51:43 +01:00
Nick O'Leary 4d031891e5 Http Out: remove excess debug 2014-07-09 09:48:09 +01:00
Nick O'Leary a7e7254317 Handle null response payloads 2014-07-09 09:46:10 +01:00
Nick O'Leary 8e24a958b7 HTTP Out - stringed the wrong bit 2014-07-09 09:43:02 +01:00
Nick O'Leary bd80cf4f83 HTTP Out - header properties must be strings 2014-07-09 09:08:43 +01:00
Dave C-J c10c687653 Add TCP request node to TCP node "family" 2014-07-08 13:45:00 +01:00
Dave C-J 2c5d5148b8 tweak tail node to use -F (thanks to tip from Mike Smerekov)
pending other changes
2014-07-08 12:28:02 +01:00
Dave C-J 6fb9739245 Add strict to function node 2014-07-08 12:27:09 +01:00
Dave C-J 35965e55b5 Add on error method to exec node... (should have been there before :-) 2014-07-08 08:48:46 +01:00
Nick O'Leary c18119f26e Debug pane should use local timezone 2014-07-01 23:14:44 +01:00
Dave C-J 045f658ef9 More defensive handling of missing filename in file node.
(in line with jshint)
2014-06-30 23:23:01 +01:00
Dave C-J c7f0f9639a tidy up jsHint errors in exec and trigger nodes
Add "use strict" to the sample node
2014-06-30 20:44:35 +01:00
Dave C-J 52779ac518 Tidy up jsHinst errors in parser nodes 2014-06-30 20:44:01 +01:00
Dave C-J 790ad8eb68 Tidy up jsHint errors in parser nodes 2014-06-30 20:43:31 +01:00
Nick O'Leary 3fcc1b5680 Missing variable declaration in tail node 2014-06-27 12:29:13 +01:00
Dave C-J 6d54050b4f Tweak colour of new trigger node to match delay node. 2014-06-26 13:05:34 +01:00
Nick O'Leary 1602d9496f Add trigger node 2014-06-25 21:36:28 +01:00
Dave C-J 7c7f030aa8 Tweak serial to outpur correct number of chars from buffer.
Having counted the correct number into the buffer it seems a shame
not to send them all out to the next node...
(Also allow separator char to be specified as hex (eg  0x0a))
2014-06-24 22:27:02 +01:00
Dave C-J cf70fee8c7 Add new HTML (cheerio/jquery like) parser node ... 2014-06-24 13:22:16 +01:00
Dave C-J ed3be7f82e Add italic style to name for exec function...
been missing for ages... who knows why :-)
2014-06-17 20:07:29 +01:00
Dave C-J 6f6ecfc7a8 Make sure buffers are nulled to ensure cleanup. 2014-06-17 20:06:54 +01:00
Dave C-J c61d4d3209 revert logging of every url request from http reg node. 2014-06-12 21:16:41 +01:00
Dave C-J fc94429266 Add missing name field to file (in) node
(and tweak icons to new style)
2014-06-08 22:54:21 +01:00
Dave C-J 2d9e72816f Update comment node to fa icons - plus matching node icon. 2014-06-08 22:13:12 +01:00
Dave C-J fe1b7c54ff Update serial info to match new capabilities. 2014-06-08 15:39:38 +01:00
Dave C-J 7d6f70545a and honour text (utf8) mode in single char mode. aaargh. 2014-06-08 15:27:15 +01:00
Dave C-J 12b8fa36dc Serial port - missed no split char option. If no split char then send every
character in char mode.
2014-06-08 15:21:02 +01:00
Dave C-J 00f87cbcd6 Add strict mode and latest icons to http node(s) 2014-06-08 15:05:08 +01:00
Dave C-J 0cbc277a2c Add binary capabilities to Serial node - along with timeout, fixed
buffer size and binary output options. Also updated icons and added strict
checking.
2014-06-08 14:58:19 +01:00
Dave C-J c10ed13322 Add flash of status to exec node 2014-06-08 14:58:19 +01:00
Dave C-J 346ca21803 Make sure file name gets passed on in file node 2014-06-08 14:58:19 +01:00
Nick O'Leary 72476cc8a7 Set content-length in HTTP response node
Fixes #233
2014-06-07 23:18:50 +01:00
tjkoury 785d4a66f0 Added error handling to 50-file.js 2014-06-02 15:25:48 -04:00
Dave C-J 4e1d45b508 Tweak to Watch Node info to close #236 2014-06-01 18:02:25 +01:00
Dave C-J 8c8f75df69 Catch more errors in file watcher node. 2014-05-31 19:44:02 +01:00
Nick O'Leary 70147d0b6b Remove 'retined' property from node.status calls 2014-05-30 20:30:26 +01:00
Dave C-J 2cdaed1325 Add "use strict" to most core nodes.
(skipping ones that may have other work in progress)
2014-05-29 22:13:21 +01:00
Dave C-J 7ad28de52a Add use strict to mqtt node, allow will parm to be passed. 2014-05-29 09:00:28 +01:00
Dave C-J b67e70e09f Fix Delay node milliseconds label to read ms.
(and add use strict)
2014-05-23 23:15:28 +01:00
Dave C-J dcc0adf2f7 Update Arduino to a better supported npm, that supports callbacks
for inputs... (less processor load). Also adds connected status to
visualisation.
2014-05-23 15:35:55 +01:00
Dave C-J db125974c0 Tidy up inject tabs/spaces one more time. 2014-05-19 22:08:50 +01:00
TJKoury 21a72336fd Update 20-inject.html
Tabs got wonky, fixed it.
2014-05-19 16:43:30 -04:00
tjkoury 57e5f52d02 Fixed spinner issue in inject node with non-hardcoded offset 2014-05-19 16:42:36 -04:00
tjkoury 804dd67b4a Fixed spinner issue in inject node with non-hardcoded offset 2014-05-19 16:40:37 -04:00
tjkoury 4f56f36cde Fixed spinner issue in inject node 2014-05-19 15:38:07 -04:00
Nick O'Leary 8f1dd62515 Allow Serial nodes to close asynchonously 2014-05-14 21:34:17 +01:00
Dave C-J 1bbd6297ba Actually make xml2js and json2xml deprecated
as well as just moving them
2014-05-14 14:32:44 +01:00
Dave C-J 0e35b65afd Deprecate xml2js and jsn2xml nodes
Replaced by single XML node
2014-05-14 14:18:11 +01:00
Dave C-J 6f981d29ec Patch to suppoer use strict
Fixes Issue #205
Manual merge due to other changes
2014-05-14 11:44:19 +01:00
Dave C-J 55245610dd Patch to Support use strict
Fixes Issue #206
(manual merge due ot other changes)
2014-05-14 11:43:51 +01:00
Dave C-J 6f0e619611 add Status to email, http nodes (update copyright on tcp) 2014-05-13 11:39:59 +01:00
Nick O'Leary 59eccb116a Add RED._debug 2014-05-13 00:00:17 +01:00
Dave C-J 7e71a118eb Add status indicators to serial and tcp (client) nodes 2014-05-12 16:32:19 +01:00
Nick O'Leary 7e85eb297d Make status display toggleable and add to MQTT nodes 2014-05-10 23:33:02 +01:00
Dave C-J 69873bacb6 Tiny EFL tweaks to IRC. Thanks again Belphemur 2014-05-09 15:03:41 +01:00
Antoine Aflalo 0ea2c92d23 Adding a listener to "names" and improve documentation
Being able to get the list of connected user when join the channel can be interesting, that why I added the listener.
I improved the documentation by adding all the possible status and their description.
2014-05-09 11:48:41 +03:00
Nick O'Leary 8e7fc011f0 File In node loses message properties 2014-05-08 11:13:35 +01:00
Nick O'Leary ba126e90d9 TypeError on debug node
Fixes #223
2014-05-08 11:12:13 +01:00
Nick O'Leary 16f8673ec0 Add comms module 2014-05-07 20:47:25 +01:00
Nick O'Leary e6794a0c75 Twitter: add rate limit warning 2014-05-07 20:45:59 +01:00
Dave C-J fb0cae0935 Reduce GPIO setup on Pi node to try to make it play nice with other peripherals 2014-05-06 20:58:36 +01:00
Nick O'Leary 4b160dc3a9 Function error not recognised as TypeError 2014-05-06 13:49:22 +01:00
Dave C-J e47839b7e7 Tweaks to shorten Serialport html names.
and remove redundant code.
2014-05-06 11:12:56 +01:00
Nick O'Leary baaf8167d3 Delay node dropping intermediate messages incorrectly 2014-05-06 10:07:57 +01:00
Nick O'Leary 14e882f250 Remove rogue console.log 2014-05-05 21:44:04 +01:00
Nick O'Leary b64b1f2956 Serial port select combo-box 2014-05-05 21:42:01 +01:00
Dave C-J 671723374d Allow serial port to be manual entry or pick from list. 2014-05-05 11:39:59 +01:00
Dave C-J b806854867 Revert serial port config to a text box - while we look at how best to
provide a list - but allow free input. (for Pi that doesn't enumerate tyAMA0)
2014-05-05 09:02:01 +01:00
Dave C-J bc1fb3b404 Tiny formatting tidy ups. 2014-05-05 09:02:01 +01:00
Nick O'Leary ff49d2b217 Migrate to new node function style 2014-05-03 23:32:04 +01:00
Nick O'Leary 7eed375111 Split up nodes.js into components 2014-05-03 22:28:17 +01:00
Dave C-J df9744084c Tweaks to email error rmessages 2014-05-02 15:16:11 +01:00
Dave C-J 1309b9a72d Add new/updated Email node including credentials per node.
Deprecating old IMAP node as now part of this general Email node
2014-05-02 14:37:41 +01:00
Nick O'Leary 4dda4aeef2 Remove sentiment tip to be consistent 2014-05-01 23:12:19 +01:00
Nick O'Leary d0b6fd078c Add File In node 2014-04-30 22:48:30 +01:00
Nick O'Leary 1df963e0ed Generate content-length on HTTP Request node 2014-04-30 22:05:27 +01:00
Dave C-J e49eb3c685 Tweak layout of serial port config (Thanks Frank) 2014-04-30 14:09:08 +01:00
Dave Conway-Jones f60430305e Merge pull request #207 from fvdpol/master
Add configuration of serial protocol settings (25-serial node)
2014-04-30 13:53:36 +01:00
Dave C-J 0b49b2cdda Add parser function nodes for XML, JSON and CSV.
Each is dual function - pass in (for example) and get out a js object, pass in a js object and get back out the xml string.
The CSV node must be configured with a column template that specifys the required property names for that column (csv->js), or the properties of the object that should be made into the csv (js->csv)
2014-04-29 17:01:30 +01:00
Dave C-J f2e9b43866 Functional Fix for Inject node
addresses Issue #209
Interval is now wholly timeout based.
Now works on Sundays
2014-04-29 16:20:45 +01:00
Nick O'Leary 13deef189d Add ws heartbeat to keep connection alive through firewall 2014-04-24 23:42:44 +01:00
Frank van de Pol c62a42169f Typo 2014-04-21 23:42:07 +02:00
Frank van de Pol 9d1bb39018 Add configuration of serial protocol settings
- Add support for configuration of protocol parameters (data bits,
party, stop bits)
- Set serial device/port using select list (discovered ports)
- Provide default settings for existing flows that do not yet have
serial protocol settings
2014-04-21 23:35:28 +02:00
Nick O'Leary c20128b80f MQTT Client - missing null check 2014-04-21 21:14:03 +01:00
Nick O'Leary 0b7fa1ab5c Fix MQTT client reconnect logic 2014-04-21 20:40:56 +01:00
Nick O'Leary 729036ec0b Fix HTTTP Request url template 2014-04-20 20:50:20 +01:00
Nick O'Leary eee8f89146 Clear MQTT Connection watchdog on error 2014-04-19 22:19:06 +01:00
Nick O'Leary 4ae5f34d2e Make Template node help clearer 2014-04-18 15:33:29 +01:00
Nick O'Leary 0a2dab67c7 Remove deprecated nodes
As announced here https://groups.google.com/forum/#!topic/node-red/-2nG6nKaxFI
2014-04-16 22:21:50 +01:00
Nick O'Leary 4219681cfa Single-click on debug message reveals node
Closes #192
2014-04-16 12:59:23 +01:00
Nick O'Leary a386c028b0 Handle null debug messages
Fixes #200
2014-04-16 11:37:41 +01:00
Nick O'Leary 9ad4d50442 Merge pull request #187 from monteslu/sentiment
Add support for word overrides feature in sentiment node
2014-04-16 11:07:29 +01:00
Nick O'Leary 653c02bb15 Add drop-intermediate option to Delay rate node 2014-04-15 23:08:02 +01:00
Nick O'Leary d5b36fcadc Add mustache template support to the HTTP Request url 2014-04-15 22:49:39 +01:00
Dave C-J 7290512794 Allow File out node to handle objects more usefully. 2014-04-14 15:49:49 +01:00
Dave C-J be5f6762f7 Add Array detection to Debug node output 2014-04-14 15:49:17 +01:00
Nick O'Leary de9ee37b42 Fix 'cannot set property boolean of undefined' 2014-04-12 23:09:47 +01:00
Dave C-J ae02cf8d71 Make 0's appear in switch node dialog (were seen as nulls) 2014-04-11 10:56:59 +01:00
Dave C-J df0ecbaf3a Disable unselectable option in Raspberry Pi node 2014-04-11 10:56:20 +01:00
Dave C-J 96ed3055bf tweak sample nodes - slightly 2014-04-11 10:55:14 +01:00
Nick O'Leary 10d9dee4aa Escape html chars in Inject/Debug and Info pane 2014-04-09 14:50:53 +01:00
Dave C-J a08789a086 Change parseXML node to no longer have special debug options
(as can now be done in the debug node... so more consistent)
2014-04-08 16:06:58 +01:00
Dave C-J e38b321c33 Tweak to Pi GPIO node to throw exceptions more in line with latest thinking 2014-04-08 16:06:58 +01:00
Dave C-J 069f42f0c5 Add console.log option to debug node
Fixes #194
2014-04-08 11:31:35 +01:00
Dave C-J 61285a0ee8 Fixes to spawn behaviour - (well more to catching bad behaviour)
It needs a redo - but patched so it doesn't die horribly.
2014-04-06 23:25:40 +01:00
Nick O'Leary 214338eb62 Fix Function node
accidental leakage of in-progress work
2014-04-02 23:56:46 +01:00
Nick O'Leary bcefa6c9ef Properly deprecate httpget node 2014-04-02 21:21:51 +01:00
Nick O'Leary c52db897b3 Remove boilerplate help from Function node
Fixes #180
2014-04-02 21:20:58 +01:00
Nick O'Leary fa2d2771a7 Add websocket error handlers
Fixes #190
2014-04-01 23:18:34 +01:00
Nick O'Leary e7dcdb075a Update udp node bind local options 2014-03-31 13:06:57 +01:00
Dave C-J 1d23cdad9f Improve labels for Pi GPIO pins 2014-03-31 11:18:37 +01:00
Dave C-J 1f6155f118 Fix to allow blank password for Basic Auth in httprequest node 2014-03-31 10:28:37 +01:00
Nick O'Leary a3fa6dada5 Rework local port UI in udp node 2014-03-30 23:05:59 +01:00
Nick O'Leary e2bac40b17 Update range node ui 2014-03-29 23:05:46 +00:00
Nick O'Leary 99ab6eaafd Tidy-up language in change node 2014-03-29 21:57:20 +00:00
Luis Montes 8b138ff2c8 add support for word overrides in sentiment node 2014-03-29 14:27:09 -07:00
Dave C-J 79f8d057a1 tweak "leave blank for random" text for outgoing port
as per Nick's suggestion
2014-03-28 08:53:25 +00:00
Dave C-J e5e457a410 UDP node fixes. Allow fixing of outbound port.
Fixes #178
Also fixed multicast binding to work more correctly.
Note: - if you fix the outbound port it will then be unvailable for input - as we are not setting up a pool.
2014-03-27 23:27:43 +00:00
Ben Hardill 4e00ab3b2d fix delay node name when using random setting 2014-03-25 11:09:38 +00:00
Dave C-J 2a0491542d Fix for IMAP node - inbox 0 error. 2014-03-23 11:43:34 +00:00
Nick O'Leary f666b0e6f9 TCP Node port in use not caught properly 2014-03-17 16:09:07 +00:00
Dave C-J d87cc471a0 Tiny change to presets for range node - more useful example irl. 2014-03-11 16:38:52 +00:00
Nick O'Leary 15002f6872 Add headless mode
closes #2

httpAdminRoot / httpNodeRoot can be set to false to disable their respective bits. If both are set to false, (or httpRoot is set to false), and httpStatic is not defined, then it will not start the http server.
2014-03-08 22:35:35 +00:00
Nick O'Leary 5e58cc9fc1 HTTP In help text should use httpNodeRoot 2014-03-08 21:54:13 +00:00
Nick O'Leary f81ebf0e64 Fix too specific wildcard matching in MQTT node 2014-02-23 20:14:27 +00:00
Nick O'Leary f7a72a48ea Improve socket error handling in MQTT client
Fixes #155
2014-02-20 21:56:29 +00:00
Dave C-J 58774c366d Add .delete property to File output node
Fix to close #162
2014-02-20 21:00:54 +00:00
Dave C-J 0bc4a3bbb1 update UDP node to not bind output port if not required to do so.
Fix to Close #165
2014-02-20 20:59:05 +00:00
Dave C-J 46765d5737 Turn down console.log-ing in udp node 2014-02-20 18:11:08 +00:00
Nick O'Leary d97e23947d Add uid to mqtt client log messages
This is a semi-temporary change to help debug the multiple-connection issue seen with the MQTT client
2014-02-19 22:17:20 +00:00
Nick O'Leary b4ef1d354d Catch mqtt socket write error after disconnect
Part of #155
2014-02-19 21:30:46 +00:00
Nick O'Leary d8f2f24b44 Add optional basic-auth to HTTP Request node
Closes #160
2014-02-19 20:31:42 +00:00
Ben Hardill da167c8607 remove un needed commented out line 2014-02-18 10:28:46 +00:00
Ben Hardill 560d106ba2 Merge remote-tracking branch 'upstream/master' 2014-02-18 10:25:21 +00:00
Ben Hardill 7af88f63f5 Fix delay node singleton issue
Fixes #154
2014-02-18 10:23:44 +00:00
Nick O'Leary b8953abb28 Add clientid to mqtt-broker label
Fixes #161
2014-02-17 22:42:31 +00:00
Nick O'Leary 6b278fdceb Add httpNodeCors setting
Adds a dependency on the 'cors' npm module
2014-02-17 22:32:53 +00:00
Nick O'Leary 09f162d933 Fix overriding method in HTTP Req node 2014-02-17 22:16:42 +00:00
Nick O'Leary b7e3e2d739 Add username/password to Mongo nodes
Fixes #159
2014-02-16 23:17:15 +00:00
Nick O'Leary 7c24d4d760 Separate out httpAdmin and httpNode 2014-02-16 00:39:30 +00:00
Nick O'Leary e6cf783d52 HTTP In GET error handler fix 2014-02-15 22:36:01 +00:00
Nick O'Leary 35fb4bb47a Add rawBody middleware
Fixes #151
2014-02-12 21:30:49 +00:00
Nick O'Leary 7c24c7465a HTTP Request: allow message to override https
Fixes #147
2014-02-06 22:14:27 +00:00
Nick O'Leary 20de0c7c89 Move to twitter-ng module
Fixes #136

This will require an `npm update` to keep things working
2014-02-05 20:26:56 +00:00
Nick O'Leary cef652eef7 File node: allow filename to be overridden 2014-02-05 10:26:17 +00:00
Dave C-J ae03562f86 Slight UI tweak to Inject node - move fire once below options 2014-02-05 08:09:16 +00:00
Dave C-J f3f52fa586 Inject - cleanup messing with crontab... just don't do it. 2014-02-04 22:31:51 +00:00
Dave C-J 40232f95ed Clear inject once flag properly. Issue #145 2014-02-04 22:19:55 +00:00
Dave C-J b1de42b297 Tweak Inject Fire at Once options as per Issue #145 2014-02-04 21:50:35 +00:00
Dave C-J bdd9d901ec inject node - Remove couple of lines of excess console.log 2014-02-03 19:06:49 +00:00
Ben Hardill ad1f967a8d Fix random wait in delay node
Fixes #143
2014-02-03 13:08:20 +00:00
Dave C-J e19f2956a8 tiny tweak to inject to fix name and hide un-needed text box.
tweak exec node text to be less alarmist
2014-02-02 18:12:28 +00:00
Dave C-J b882846516 Quick fix for serial hangs (with serialport1.3.1)
While we investigate further.
2014-02-02 16:52:32 +00:00
Nick O'Leary c47c72cf48 Improve inject node payload options 2014-02-02 15:37:34 +00:00
Dave C-J 3dee0f1e20 Add small bit of extra node.log to exec node to make it obvious what it is doing. 2014-01-27 19:24:15 +00:00
Dave C-J 3a2ed39b51 Add new Range Node 2014-01-27 19:23:35 +00:00
Dave C-J aa044970c9 Add extra labels to extra Pi GPIO pins 2014-01-14 19:23:50 +00:00
Dave C-J ad675c00d8 enhance fs.notify help text
windows paths need double slashes \\
2014-01-13 20:25:58 +00:00
Dave C-J 82f58393c7 enhance labels for Pi GPIO pins 2014-01-13 20:24:57 +00:00
Dave Conway-Jones 08559838cc Merge pull request #133 from cpswan/master
Enable Pi to use of all 17 WiringPi pins
2014-01-13 12:04:31 -08:00
Nick O'Leary 79aeeea640 Handle duplicate PUBREL
Fixes #138

If the connection to a broker is lost mid qos 2 flow, there is a window where we have processed the PUBREL, released the message and deleted it from our store, but not sent the PUBCOMP. When the connection is re-established, and the PUBREL is resent by the broker, we assume the message still exists - and hit the error reported.

The fix is to check the message is valid before trying to process it. We send the PUBCOMP to complete the flow regardless.
2014-01-13 11:32:16 +00:00
Nick O'Leary 6b3010f95b Guard against null client in MQTT nodes
Fixes #130

There was a timing window where a client could connect to a broker just as new flows were deployed that would cause the on-connect callback to be called after client has been set to null. This caused an NPE.

The fix is to check client isn't null in the event handler.
2014-01-13 11:27:09 +00:00
Dave C-J 10b7f402c3 Update MQTT node Icon color to be different from Twitter one
Fixes #132
2014-01-08 16:44:47 +00:00
Dave C-J cbad188be8 Update to fs.watch node to use new fs.notify API
requires npm update fs.notify
2014-01-08 16:44:05 +00:00
Dave C-J b652d26b6b Add invite event to irc node 2014-01-03 10:57:49 +00:00
Dave C-J e5536b848a Changes to IRC node
addresses fix for #106
moved channel to node properties (won't break but will flag as undeployed changes)
changed defaults to be irc.freenode.net
allow input of a msg.raw as an array of a raw irc command (undocumented)
2014-01-02 11:15:03 +00:00
Chris Swan 9839e87580 pintable + tablepin maps for all 17 WiringPi pins 2013-12-31 08:54:06 +00:00
Chris Swan 982ad91581 Drop down options for all 17 pins in WiringPi 2013-12-31 08:50:24 +00:00
Nick O'Leary 1c010c568d Fix keepalive handling in MQTT client
Fixes #124
2013-12-29 20:16:27 +00:00
Nick O'Leary 24c373ecc2 Tidying up the Change node after a lot of churn 2013-12-24 23:16:36 +00:00
Frank van de Pol 44e920fde2 Disable the notification for the Change node editor
Disable the notification on the Change node.
Once the infrastructure for validation error messages is implemented
this can be re-enabled and retrofitted to the
new structure.
2013-12-24 23:29:40 +01:00
Frank van de Pol 1ebc5979aa Add validation to Change node editor for invalid regex
This change adds input validation to the gui of Change Nodes to prevent
the user from unintentionally entering an invalid regular expression
(in case the ‘use regular expressions’  option is enabled).

The user will be notified (using the RED notification mechanism) on the
specific error code to help resolve the issue.
2013-12-24 20:28:08 +01:00
Frank van de Pol b411d59d43 Make log message in invalid regular expressions more verbose
Make logging of erratic regular expressions more verbose to help
identification and resolving of the configuration issue:

eg.:
old: 24 Dec 18:40:09 - [error] [change:Strip kW] Invalid regex: *kW
new: 24 Dec 18:40:09 - [error] [change:Strip kW] Invalid regular
expression: /*kW/: Nothing to repeat

old: 24 Dec 20:15:57 - [error] [change:Strip kW] Invalid regex: *kW
new: 24 Dec 20:15:57 - [error] [change:Strip kW] Invalid regular
expression: /[kW/: Unterminated character class
2013-12-24 20:17:42 +01:00
Frank van de Pol 231f8b6a4d undo my changes to the Change node; revert to original
undo the local changes to the Change node to get back aligned with the
master tree
2013-12-24 20:02:30 +01:00
Frank van de Pol b81f251023 merge from upstream 2013-12-24 18:53:38 +01:00
Dave C-J 00202a3930 wrong syntax for checking check box... in change node 2013-12-24 17:07:07 +00:00
Dave C-J e0921f84c4 still flattening wrinkles in change node...
(I blame the Xmas "spirit" ;-)
2013-12-24 17:01:53 +00:00
Dave C-J dafb2f1d38 Removed excess debugging from change node (sorry) 2013-12-24 16:54:19 +00:00
Dave C-J 6b2e666600 Make sure old flows with change node - work as-is/was.
Signed-off-by: Dave C-J <dave@conway-jones.co.uk>
2013-12-24 16:24:31 +00:00
Dave C-J b7531bae4d Added proper choice for regex support to change node
(and better error catching)
Addresses Issue #121
2013-12-24 16:18:18 +00:00
Dave C-J 2ba5e0fe3e Add socketTimeout to settings.js for TCP server sockets
Fixes #125
adds an optional socketTimeout param to settings.js file to add a TCP server
socket timeout. Default is no timeout.
2013-12-24 13:12:17 +00:00
Nick O'Leary a9668a1999 Better error message if twitter auth flow fails
Closes #123
2013-12-23 14:44:35 +00:00
Nick O'Leary c6264e8040 Add newline when wrapping function to allow comments
Fixes #122
2013-12-22 22:22:47 +00:00
Frank van de Pol a03b4e4dd4 Added validation logic to Change editor for validity of regular expressions
This change adds input validation to the gui of Change Nodes to prevent
the user from unintentionally entering an invalid regular expression.
The user will be notified on the specific error code to help resolve
the issue.
2013-12-22 17:46:25 +01:00
Frank van de Pol 655e777a3e Add exception handing to Change node
Adding exception handling to the change node to prevent node-RED from
crashing on invalid regular expressions eg. “*kW” (missing escape
before the asterix)
2013-12-22 14:00:25 +01:00
Dave C-J 15669b7f1f Only declare node variables inside node declaration.
Fix for Issue #119
(also reformatted with spaces hence what looks like massive changes...)
2013-12-21 17:31:05 +00:00
Nick O'Leary 95b8600da7 Automatically follow 301-redirects in HTTP request node
Fixes #30
2013-12-20 11:11:50 +00:00
Nick O'Leary 73f3ea52a5 Add session awareness to TCP nodes
Closes #63,#65
2013-12-19 21:16:25 +00:00
Nick O'Leary 751ac7b9ee Handle Buffer objects properly in Serial out node
Fixes #115
The serial out node does a JSON.stringify if the payload is an object. This was incorrectly being applied to Buffer objects, causing the output seen in issue #115.

The Buffer is now passed through as-is (with the newline appended if so configured).
2013-12-13 10:27:52 +00:00
Nick O'Leary 344660dfee Refinements to Unknown-node handling
Refinement to #113
2013-12-12 15:51:15 +00:00
Dave C-J ac884bfdf3 Add "Unknown node" type to core.
Relates to Issue #5
not the best/complete solution - but a start.
2013-12-08 21:55:34 +00:00
Nicholas O'Leary 3984b6b702 Add websocket node docs
Part of #105
2013-12-08 20:41:57 +00:00