juggledad
b284f86520
Removed status msgs, added a tmp variable, kept parseInt to prevent rounding error when high value has a decimal value
2020-11-13 17:16:43 -05:00
juggledad
3cbbd1b21a
added validation to 'low' and 'high' to prevent anything but a number from being entered.
2020-11-12 16:04:49 -05:00
juggledad
0dacd78252
added a bunch of tests
2020-11-12 08:08:02 -05:00
juggledad
e68d012bf2
added better validation of inputs, added node status
2020-11-12 08:03:23 -05:00
juggledad
175dc4c422
In test 1 changed low and high from numbers to "" which is the new default
2020-10-28 03:24:43 -04:00
juggledad
85a74b2e78
Had to IF statements broken on two lines, changed it so it's all on one line
2020-10-26 16:49:01 -04:00
juggledad
056429a745
Added note about passing in msg.to and msg.from dynamicly
2020-10-26 04:11:15 -04:00
juggledad
572f1fab5d
added explaination for passing 'To' amd 'From' dynamically
2020-10-26 04:07:09 -04:00
juggledad
970afa760a
Set initial values of 'From' and 'To to "" to allow dynamic overiding them
2020-10-26 04:03:35 -04:00
juggledad
eaa1acf83a
Add option to dynamically pass in 'From' and 'To' - fixed bug when 'From' was greater than 'To' by flipping the two
2020-10-26 04:00:57 -04:00
Dave Conway-Jones
3b7fb0aa95
tidy up xmpp node
2020-10-24 15:02:45 +01:00
Kazuhito Yokoi
770ad94e95
Add Japanese translations for Sense HAT node ( #704 )
2020-10-23 16:12:49 +01:00
Dave Conway-Jones
eddeef9630
Update .travis.yml
2020-10-19 22:42:25 +01:00
Dave Conway-Jones
ae75e7f7a8
Update .travis.yml
2020-10-19 22:38:31 +01:00
Dave Conway-Jones
789abedd96
Update .travis.yml
2020-10-19 22:30:36 +01:00
Dave Conway-Jones
43f7326c12
try nyc instead of instanbul
2020-10-19 21:33:50 +01:00
Dave Conway-Jones
6f351943cb
email node - remove promises for node8
...
and fixup tests
2020-10-19 21:33:32 +01:00
Dave Conway-Jones
ffa5761756
add smtp-package for tests
2020-10-19 14:44:09 +01:00
Dave Conway-Jones
ef1ebe7b44
Fix email tests and add one for MTA node
2020-10-19 14:32:09 +01:00
Dave Conway-Jones
14087a9f77
Add MTA node to email
2020-10-19 12:24:18 +01:00
Nick O'Leary
8f2c631410
Bump pushbullet node version
2020-10-13 22:38:18 +01:00
Nick O'Leary
1253e7b6be
Merge pull request #701 from guzba/patch-1
...
Attempt to mitigate stream server connect feedback loop
2020-10-13 22:36:19 +01:00
guzba
ff9d21827d
Attempt to mitigate stream server connect feedback loop
...
Pushbullet dev here. Around 36 hours ago we started receiving around 750 additional requests per second to connect to our stream server. I blocked around 50 - 100 IP addresses to mitigate the spam. This spam traffic has continued unchanged since then.
I don't know for sure what caused this, but one user came forward reporting issues with their Node-Red setup after I banned the IPs (status code is my banned IP status code which is pretty compelling evidence). I can't be sure what is causing the issue since no User-Agent is included in the requests, but it for sure is at least partly Node-Red API users. I'd like to work on mitigating this since mitigating the spam traffic costs money.
My first theory here is in this PR. I am not aware of any guarantees that you'll never get multiple 'error' events, so it makes sense to clear the timeout before setting a new one to reconnect. Even if it is just defensive, it may not have much cost? If you do get multiple error events without this change, it is possible to trigger many connect() requests which can error out and then trigger many more connect() requests with lots of timeouts, which is not good.
Another thing to consider is that this library's dependency for PB (https://github.com/alexwhitman/node-pushbullet-api ) already has code to reconnect if a websocket connection is lost without having been properly closed. I think an even better solution is verifying this works and then deleting the reconnect logic from here.
I'm not an expert on Node-Red though so I am only trying to offer suggestions to ensure everyone is a good citizen when using our API :) Thanks!
2020-10-13 16:27:30 -05:00
Dave Conway-Jones
f599797144
bump for latest PRs
2020-10-05 09:45:38 +01:00
Ross Cruickshank
9cc61cb0f1
mongdb - move projection into find pipeline ( #697 )
...
new node.js client API moved projection into options object - switched to pipeline stage instead #695
2020-10-05 09:28:58 +01:00
Ross Cruickshank
4ae0818a4b
mongodb - dereference aggregateCursor ( #696 )
...
new node.js client library moved aggregate response - using toArray to return result-set in msg.payload #693
2020-10-05 09:28:39 +01:00
Dave Conway-Jones
aa45796a98
bump pushbullet package for PR
2020-09-27 12:59:02 +01:00
Frakke0
e980c8c04d
Fix not shown error ( #692 )
...
Fixed response to shown as string and not object
2020-09-27 12:57:09 +01:00
Dave Conway-Jones
d3a3bc158c
email - show valid folders in error if fetch fails
2020-09-23 23:54:09 +01:00
Dave Conway-Jones
973fd8c6ec
bump email package version
2020-09-23 10:20:58 +01:00
Vincent Hou
606f9c71e7
Update 61-email.js ( #689 )
...
Fixed disposition issue caused by `this`.
2020-09-23 08:35:08 +01:00
Dave Conway-Jones
fbad6e4c2d
clarify linting confusion
2020-09-17 10:02:54 +01:00
Dave Conway-Jones
c21fb22918
Linting and bump package for new clustered PR.
2020-09-17 09:21:50 +01:00
Ross Cruickshank
cde422f34a
mongodb: update to add support replicaset clusters (ICD4Mongo) ( #688 )
2020-09-17 09:17:43 +01:00
Dave Conway-Jones
d26cb057f9
add host property to outgoing msg
...
to close #687
2020-09-15 16:12:03 +01:00
Ross Cruickshank
4becf68848
use mongodb 3.6.1 client, add clustering support ( #685 )
2020-09-14 17:21:41 +01:00
Dave Conway-Jones
7e8571af42
update lib versions for grunt
2020-09-11 22:21:52 +01:00
Dave Conway-Jones
f95f0639f4
bump sqlite lib
2020-09-11 12:44:05 +01:00
Dave Conway-Jones
2625022fbc
bump pigpio package for env variable pin setting pr
2020-08-31 10:48:48 +01:00
Pablo Acosta-Serafini
0b4c1ff977
Enable the use of environment variables to define GPIO pin number ( #676 )
...
* Enable the use of environment variables to define GPIO pin number
* Pin field moved below table. Field width made the same as table. Restored
fa-icon and "Pin" label. Closed validation escapes.
2020-08-31 10:45:41 +01:00
Dave Conway-Jones
46f3dfc382
email don't retry connection while still busy.
2020-08-28 09:36:06 +01:00
Dave Conway-Jones
53ad00f165
bump serialport dependency, add ja translation for baudrate message, fix linting, bump package
2020-08-27 13:00:10 +01:00
Orfait
53f32ec521
[serialport] Allow baudrate change at run time ( #675 )
...
* Added baudrate change in serialport
* Added baudrate change to "serial request" (not only "serial out")
* Added doc
2020-08-27 09:20:09 +01:00
Dave Conway-Jones
ea729546d4
add sms_changed to pushbullet handler
2020-08-24 12:12:32 +01:00
Ben Hardill
34262e2fb0
Adding extra error checking for response from devices ( #672 )
2020-08-17 21:43:12 +01:00
Dave Conway-Jones
4ed0cb84d9
add some words to snmp info/readme
...
to close #667
2020-08-06 18:10:09 +01:00
Dave Conway-Jones
81039eacbc
bump markdown node package version
2020-07-16 10:16:03 +01:00
Dave Conway-Jones
4cabe5ea30
bump xmpp node package version
2020-07-16 10:15:49 +01:00
Andreas Martens
e334040dd7
replace xmpp-simple with @xmpp/client ( #664 )
...
* replace xmpp-simple with @xmpp/client
* indent at 4
* remove trailing commas
2020-07-16 10:00:27 +01:00
Dave Conway-Jones
2d0c8f0fb0
fix esversion for lint
2020-07-16 09:15:01 +01:00