Replies: 7 comments 3 replies
-
Can you explain what it is you want to achieve exactly? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your incredibly (actually unbelievably incredibly) fast response!
I would like to be notified of changes to that text file ONLY when the
words CRITICAL WEATHER occurs (and I want to set up another rule about when
the word API occurs). I am not concerned about other postings they make
concerning when different forecast models are running.
…---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 1:03 PM dgtlmoon ***@***.***> wrote:
Can you explain what it is you want to achieve exactly?
—
Reply to this email directly, view it on GitHub
<#2933 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOIIOY4YCU4CGYQHU5AQ632MZYIDAVCNFSM6AAAAABV6VGCIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJXGMZDAMY>
.
You are receiving this because you authored the thread.Message ID:
<dgtlmoon/changedetection.io/repo-discussions/2933/comments/11973203@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
That one I'm okay with. That combination of words is probably pretty
unique.
What about API, however? I'm afraid of API being caught up as part of a
larger work that includes the letters API (example: rapid, which is word
used describing storm system development).
…---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 1:18 PM dgtlmoon ***@***.***> wrote:
Just put CRITICAL WEATHER in the *Trigger/wait for text* box
You dont need any regex
—
Reply to this email directly, view it on GitHub
<#2933 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOIIO7URXJWXGBO44EZQYL2MZ2AFAVCNFSM6AAAAABV6VGCIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJXGM2DONY>
.
You are receiving this because you authored the thread.Message ID:
<dgtlmoon/changedetection.io/repo-discussions/2933/comments/11973477@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks so much! I’ll give that a try.
—-
Tom Foth
***@***.***
…On Mon, Jan 27, 2025 at 1:31 PM dgtlmoon ***@***.***> wrote:
so put in the *Trigger/wait for text* box
SOMETHING INTERESTING
/\sAPI\s/
—
Reply to this email directly, view it on GitHub
<#2933 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOIIO4JYCZO3V67NZILLST2MZ3OPAVCNFSM6AAAAABV6VGCIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJXGM3DANQ>
.
You are receiving this because you authored the thread.Message ID:
<dgtlmoon/changedetection.io/repo-discussions/2933/comments/11973606@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing this out to me. The more complex regex I offered takes
into account it being the first thing on the line or the last thing.
I suspect an easier way of doing that would be:
^API\s
\sAPI$
\sAPI\s
Given that you mention those lines are basically "ORed" together.
…---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 2:13 PM dgtlmoon ***@***.***> wrote:
image.png (view on web)
<https://github.com/user-attachments/assets/3157504e-a367-4b6d-a7c7-f6c1de2b18b4>
see here, I'm using a regex to find .gov and a space either side, it
doesnt match the other ".gov" content
—
Reply to this email directly, view it on GitHub
<#2933 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOIIO6ROQH37D7WKMGF2432M2APPAVCNFSM6AAAAABV6VGCIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJXGQZDOMY>
.
You are receiving this because you authored the thread.Message ID:
<dgtlmoon/changedetection.io/repo-discussions/2933/comments/11974273@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Actually, it appears ^ and $ are not respected.
I've tried patterns where there is a line break, like
.THURSDAY NIGHT...Partly cloudy. Near steady temperature in the
lower 20s.
to match
the lower
or
thelower
and they don't match, suggesting that the regex is seeing something there.
Likewise
the$
does not match.
…---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 2:39 PM Tom Foth ***@***.***> wrote:
Thanks for pointing this out to me. The more complex regex I offered
takes into account it being the first thing on the line or the last thing.
I suspect an easier way of doing that would be:
^API\s
\sAPI$
\sAPI\s
Given that you mention those lines are basically "ORed" together.
---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 2:13 PM dgtlmoon ***@***.***> wrote:
> image.png (view on web)
> <https://github.com/user-attachments/assets/3157504e-a367-4b6d-a7c7-f6c1de2b18b4>
>
> see here, I'm using a regex to find .gov and a space either side, it
> doesnt match the other ".gov" content
>
> —
> Reply to this email directly, view it on GitHub
> <#2933 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACOIIO6ROQH37D7WKMGF2432M2APPAVCNFSM6AAAAABV6VGCIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJXGQZDOMY>
> .
> You are receiving this because you authored the thread.Message ID:
> <dgtlmoon/changedetection.io/repo-discussions/2933/comments/11974273@
> github.com>
>
|
Beta Was this translation helpful? Give feedback.
-
Nevermind.... I see I forgot to put slashes around the regex. We can mark
this closed.
…---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 2:43 PM Tom Foth ***@***.***> wrote:
Actually, it appears ^ and $ are not respected.
---
Tom Foth
***@***.***
***@***.***
On Mon, Jan 27, 2025 at 2:39 PM Tom Foth ***@***.***> wrote:
> Thanks for pointing this out to me. The more complex regex I offered
> takes into account it being the first thing on the line or the last thing.
> I suspect an easier way of doing that would be:
> ^API\s
> \sAPI$
> \sAPI\s
>
> Given that you mention those lines are basically "ORed" together.
>
> ---
> Tom Foth
> ***@***.***
> ***@***.***
>
>
> On Mon, Jan 27, 2025 at 2:13 PM dgtlmoon ***@***.***>
> wrote:
>
>> image.png (view on web)
>> <https://github.com/user-attachments/assets/3157504e-a367-4b6d-a7c7-f6c1de2b18b4>
>>
>> see here, I'm using a regex to find .gov and a space either side, it
>> doesnt match the other ".gov" content
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#2933 (reply in thread)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ACOIIO6ROQH37D7WKMGF2432M2APPAVCNFSM6AAAAABV6VGCIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJXGQZDOMY>
>> .
>> You are receiving this because you authored the thread.Message ID:
>> <dgtlmoon/changedetection.io/repo-discussions/2933/comments/11974273@
>> github.com>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
LOVE THIS APP!!!
I'm new... but for the most part, with this ONE exception, everything is working fine!
I am monitoring the US National Weather Service for alerts. The links I'm using with ChangeDetection.io point to text only pages/files.
For example:
https://tgftp.nws.noaa.gov/data/raw/no/nous42.kwno.adm.sdm.txt
points to a page where SOMETIMES a report like the following comes in. I want to key off the words CRITICAL WEATHER. The file returned by the link appears exactly, with no HTML, as below between the $$$ lines.
$$$
NOUS42 KWNO 270853
ADMSDM
SENIOR DUTY METEOROLOGIST NWS ADMINISTRATIVE MESSAGE
NWS NCEP CENTRAL OPERATIONS COLLEGE PARK MD
0853Z MON JAN 27 2025
CRITICAL WEATHER DAY STATUS...
Critical Weather Day is not expected in the next 3 days.
CRITICAL WEATHER OUTLOOK...
Monday - None.
Tuesday - None.
Wednesday - None.
Liddick/SDM/NCO/NCEP
$$$
I am using the following regex which matches when I try it in the BBEdit editor which supports regex (I never trust myself to decode complex regex):
(?:^|\W)critical\sweather(?:$|\W)
It doesn't appear to be matching. I'm not sure what to set the CSS/JSONPath/JQ/XPath Filters field to: right now it is blank.
Am I missing something?
Thank so much for someone's support!
Beta Was this translation helpful? Give feedback.
All reactions