Skip to content

bladerunner2020/node-red-contrib-isonline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-red-contrib-isonline

Install

Run command on Node-RED installation directory

npm install node-red-contrib-isonline

Config

A Node-RED node to check if the Internet connection is up. A node that check Internet connection on receiving a message.

URL: Check the general Internet connection if blank or check if the specific server is online.
msg.url: if set overrides URL in the configuration box.
msg.timeout: if set overrides default timeout value (1000 ms).


Action:

  • True or false: returns true or false as msg.payload
  • Pass through if online: returns msg if Internet connection is online and null otherwise. msg.payload is unchanged.
  • Pass through if offline: returns msg if Internet connection is offline and null otherwise. msg.payload is unchanged.
  • Always pass through: returns original msg (msg.payload and msg.topic is unchanged. msg.online contains the status of request.

msg.online always contains the connection status
msg.timestamp contains the timestamp
msg.online_error contains the error string. Typically timeout

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published