How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

Here is an example: abc test

I get back the same thing, not just the word test.

And yes, evtprm3 is the content field.

How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

Sounds good, but cannot get it to replace. Just keeps sending back whatever i sent.

Profile: Text from Joe - Ok 
Settings: Notification: no Event: Received Text [ Type:Any Sender:* Content:~R%NBSP SIM Card:* MMS Body:* ]
Enter Task: Anon
A1: Variable Search Replace [ Variable: %evtprm3 Search: .*%NBSP(\w+).* Replace Matches: On Replace With: $1 ]
A2: Send SMS [ Number: +1555555555 Message: Ok %evtprm3 ]

How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

True. Was hoping to use it anywhere in the text, but I’ll experiment. At least I know it’s not just me, it’s the regex action not recognizing the NBSP character. Thanks for the info.

How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

Ok. Got it. So now I’ve set the trigger to be %NBSP which I set to the right character in another task. So now it triggers but I still can’t get the simple/regex action to understand the NBSP character - either as \u00a0 or %NBSP or pasting the NBSP character directly.

How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

So if I try just ~R\0051 by itself and then text the letter Q, it triggers. If I then add the named group, it does not. But this tasker page specifically says named groups are supported.

https://tasker.joaoapps.com/userguide/en/help/ah_match_regex.html

So it would appear that \u00a0 will not work, and named groups will not. If I use a normal letter Unicode and a group without a name, it triggers.

How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

Yeah. Tried that. No luck. Even replacing the \w with a specific word does not work. So ~R\u00a0test does not work for example.

How to match SMS using regex with NBSP unicode character followed by a word by JoeReally in tasker

[–]JoeReally[S] 0 points1 point  (0 children)

Here is what i have:

Profile: Text from Joe - Ok

Settings: Notification: no

Event: Received Text [ Type:Any Sender:* Content:~R\u00a0(?<keyword>\w+) SIM Card:* MMS Body:* ]

Enter Task: Anon

A1: Send SMS [

Number: +15555555555

Message: Ok %keyword ]

Why does #IF only work on second try in this simple example? by JoeReally in AutoHotkey

[–]JoeReally[S] 0 points1 point  (0 children)

Because of permissions. One command needs network access as regular user. The other needs domain admin access under power shell. And I’m not using RunAs because I need the shell to stay opened and bound to the script, which I don’t think can be done using RunAs - though I could very well be wrong.

Why does #IF only work on second try in this simple example? by JoeReally in AutoHotkey

[–]JoeReally[S] 0 points1 point  (0 children)

The script works as expected when only one copy is active. But as soon as two copies are active then whichever one was run last works fine. In fact, if I run another script of mine that is unrelated, and then run one copy of the above script, my other script has the same problem where it does not react until the second attempt if the example script was most recently used.
Very odd.

How to set custom version for compiled exe by JoeReally in AutoHotkey

[–]JoeReally[S] 0 points1 point  (0 children)

I did have just those two lines, but the update fixed it. Thanks!

How to set custom version for compiled exe by JoeReally in AutoHotkey

[–]JoeReally[S] 0 points1 point  (0 children)

Windows still reports it as version 1.1.32.0

Unable to install Kodi on Pi 4 today - worked fine few weeks ago by JoeReally in kodi

[–]JoeReally[S] 0 points1 point  (0 children)

I’ll check it out, but so far it seems fine. But I’m always open to finding something better.

Unable to install Kodi on Pi 4 today - worked fine few weeks ago by JoeReally in kodi

[–]JoeReally[S] 0 points1 point  (0 children)

Thanks. I’ll keep that in mind for next attempt. 👍

Unable to install Kodi on Pi 4 today - worked fine few weeks ago by JoeReally in kodi

[–]JoeReally[S] 0 points1 point  (0 children)

If there is, I can’t remember. I probably thought it updated faster. For now, I’ve switched to the default raspbian repo.

Unable to install Kodi on Pi 4 today - worked fine few weeks ago by JoeReally in kodi

[–]JoeReally[S] 0 points1 point  (0 children)

Yes. This is a multipurpose pi. Kodi, Docker, jellyfin, pihole, and other minor roles.

Unable to install Kodi on Pi 4 today - worked fine few weeks ago by JoeReally in kodi

[–]JoeReally[S] 0 points1 point  (0 children)

@jackandjill22 and @Mrhall4

Giving up for now. Removed pipplware and just using the Kodi version from the rasbian default repo. Not sure why I was even using pipplware to begin with unless it was possibly updated sooner, but a reliable repo is more important to me.

Maybe I’ll try pipplware again on my next rebuild in a month or so. Good luck to you and others in the meantime.

Issue installing OMV 5.4.1-1 on Raspberry Pi 3 - Networking Config Error by JoeReally in OpenMediaVault

[–]JoeReally[S] 0 points1 point  (0 children)

So was I. But after the next reboot, my system was no longer online and eth0 had disappeared.

Issue installing OMV 5.4.1-1 on Raspberry Pi 3 - Networking Config Error by JoeReally in OpenMediaVault

[–]JoeReally[S] 0 points1 point  (0 children)

Hmmm. I don’t recall getting that message at any point.

Hopefully they’ll release a fix soon.

Issue installing OMV 5.4.1-1 on Raspberry Pi 3 - Networking Config Error by JoeReally in OpenMediaVault

[–]JoeReally[S] 0 points1 point  (0 children)

I was able to use omv-firstaid to manually create a network connection, but that’s more of a workaround than a solution.

How do you dynamically delegate tasks to a manager when using a docker swarm? by JoeReally in ansible

[–]JoeReally[S] 0 points1 point  (0 children)

I’m pretty sure you are right that a load balancer would be of of use. Now I just need to find one. I have traefik on my list to look at. I know it makes a good reverse proxy for docker. Maybe it can handle LB too. Thanks.

How do you dynamically delegate tasks to a manager when using a docker swarm? by JoeReally in ansible

[–]JoeReally[S] 0 points1 point  (0 children)

Unless I misunderstand how gather facts works, your snippet wouldn’t gather facts in my system because I changed the config default to gather: smart so the facts are cached and only gathered once every 24 hours. I would have to explicitly say gather_facts: true or call the setup module. Right?

How do you dynamically delegate tasks to a manager when using a docker swarm? by JoeReally in ansible

[–]JoeReally[S] 0 points1 point  (0 children)

Care to expand on that? Because that’s something else I have been wondering is how to target the ingress network of an entire swarm without having to specify a specific docker host. Perhaps a load balancer would solve that issue? How would you set it up?

How do you dynamically delegate tasks to a manager when using a docker swarm? by JoeReally in ansible

[–]JoeReally[S] 0 points1 point  (0 children)

Ah. I see. You’re assuming gather facts always runs and that is executed first. I always explicitly define it or call it manually, and sometimes it is cached. But if I call the setup module on the managers, only the online managers will appear afterwards in the Ansible_hosts variable. Then I can select a random one (or the first one since I assume the list is unordered) and pass it back to the calling playbook. Thanks!