Comments (9)
Aha - indeed... Though TTL is not the ping time, and Linux reports them the other way round...
64 bytes from 173.194.65.106: icmp_req=1 ttl=40 time=59.8 ms
so yes more thought required...
from node-red-nodes.
Just add "i" (case-insensitive) and that should work.
from node-red-nodes.
yes - but TTL is not the ping time... in your examples the ping time is the "<1" part, not the "=128" part
from node-red-nodes.
I checked all 4 types of outputs on http://regex101.com/
And it is valid (with "i"). In my examples I check the "bytes=32" and not the time.
from node-red-nodes.
I think @dceejay means that the order of the fields changes with different languages so we can't extract the correct response time with just one regex
from node-red-nodes.
Sorry, I did not notice, that the response time was extracted. I just tried
to extract positive or negative answer.
Because for Home-Automation (where I am active) it is not important how
many milliseconds. it is important if the device ON or OFF.
Can we process that with 2 steps: first one extract Yes/No (res=true) and
the second (if Yes) the response time?
2014-11-06 13:39 GMT+01:00 Ben Hardill [email protected]:
I think @dceejay https://github.com/dceejay means that the order of the
fields changes with different languages so we can't extract the correct
response time with just one regex—
Reply to this email directly or view it on GitHub
#80 (comment)
.
from node-red-nodes.
I think...
=.*[<|=]([0-9]*).*TTL|ttl..*=([0-9]*)
may do the magic...
actually then needs to handle both m[1] and m[2] but hey...
from node-red-nodes.
Ping node now updated. @GermanBluefox can you check ? Comment ? Close ?
from node-red-nodes.
Closing as I think it's fixed. please re-open if not.
from node-red-nodes.
Related Issues (20)
- node-red-node-email: authentication: none broken HOT 5
- select sqlite fail response
- Installation failed in latest node version above 18 HOT 1
- How can I disable the creation process? HOT 2
- Get datetime when qwery a date column HOT 2
- node-red-node-pi-gpio -> nrgpio.py uses ~1% CPU per IO port
- Node-red-node-email stops fetching GMail
- Gmail will soon require OAUTH credentials - "node-red-node-email" in jeopardy! HOT 4
- Node-red-node-email vulnerabilities HOT 6
- node-red-node-email unhelpful connect error HOT 4
- node-red-node-pushover support for attachment_base64 and attachment_type HOT 1
- mcp3xxx node does not seem to recognise raspberry pi on a pi4 running bookworm HOT 3
- Stomp node: error sending payload as XML
- node-red-node-serialport message duplication
- Issue with node-red-node-serialport and serial control Node: “TypeError: newline.substr is not a function” when Using Fixed Length Split Configuration HOT 3
- xmpp messages without type attribute can't be handled
- PiLCD: Startup warning "Raspberry Pi specific node set inactive" HOT 4
- node-red-node-ping always sends "false" in IPv4 Protocol setting HOT 9
- Email using long password and Authentication as TLS HOT 1
- node-red-node-pisrf needs updating to cope with replacement for RPi.GPIO
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-nodes.