Alternative to veribale split? - Tasker Tips & Tricks

Hi guys,
To start things off I know there is a veribale search replace and FOR functions in tasker.
Im trying to create a task that stores all the body content of an email. The task will then pull the relevant information, to compose another email and send to a different email address each time (Which is not included in the body of the email).
I have successfully created the variables that capture the information from the email that I need, with veribale split.
However the problem is the task is quite lengthy, as I'm doing two veribale splits to get the information I need Into a variable. The information I'm pulling is not constant. Such as a time range and name of the person who booked the time slot.
What is the most efficient way to do this?

One thing that comes into mind, won't regex works better for that?
I think javascriptlet should di that fine, or you could use a plug in to give regex capability (eg: Auto tools regex)

shaqman89 said:
One thing that comes into mind, won't regex works better for that?
I think javascriptlet should di that fine, or you could use a plug in to give regex capability (eg: Auto tools regex)
Click to expand...
Click to collapse
Thanks I did have thoughts about regex, but I'm not sure if it works for what I want. However I have done a bit of regex for if statements, so I will look into auto tools.

shaqman89 said:
One thing that comes into mind, won't regex works better for that?
I think javascriptlet should di that fine, or you could use a plug in to give regex capability (eg: Auto tools regex)
Click to expand...
Click to collapse
I have had a look at Regex on autotools, I have succsesfully used it is some cases, however I was going to ask you, are there any good places where I could learn and debug regex?

HatchetEgg said:
I have had a look at Regex on autotools, I have succsesfully used it is some cases, however I was going to ask you, are there any good places where I could learn and debug regex?
Click to expand...
Click to collapse
Not that I know of.
I tend to learn by doing, so this site: https://regex101.com is enough for my companion so far.

Related

IT Pros Needed to Test Mobile Monitor Application

I have a new project I'm working on for an application that allows me to do quick checks on server availability from my AT&T Tilt. This is the first version of the software and I'm looking for suggestions on improvements, bugs, etc. The software has been tested on Windows Mobile 5, 6, and 6.1. More information available at http://www.liquidcaffeine.net/downloads/am2008f.htm
The application is available in a PC Installer version as well as a CAB file and is posted at:
http://www.liquidcaffeine.net/downloads/AlertMe2008FWE.zip (PC Installer)
and
http://www.liquidcaffeine.net/downloads/AlertMe2008FWE.CAB (The CAB installer also requires the OpenNETCF to be installed as well (http://www.opennetcf.com)
Point release update includes:
o Log Viewer Tab (see new screen capture)
o Option to email log (note - this requires Pocket Outlook to be configured with an account)
Please post any suggestions you may have.
Looks good I'll have a look at it and test it our servers.
Thanks
G
Yea looks really promising I'll give it a shot too. Something to do in my meetings.
its nice to see apps that cater to webmasters.. something ppc's lack. im *trying* to cook some sftp+ssh app myself.
i think a cool feature in your app would be to schedule automatic checks on the site ever X minute with status/log info. perhaps even an audio/visual alert option that notifies you when it's offline.
i see this checks for http, but does it check for the right http 200 code? reason i ask, is sometimes a website http can be "online" but throwing out http error, which should report back as "offline/problem"
tft said:
its nice to see apps that cater to webmasters.. something ppc's lack. im *trying* to cook some sftp+ssh app myself.
i think a cool feature in your app would be to schedule automatic checks on the site ever X minute with status/log info. perhaps even an audio/visual alert option that notifies you when it's offline.
i see this checks for http, but does it check for the right http 200 code? reason i ask, is sometimes a website http can be "online" but throwing out http error, which should report back as "offline/problem"
Click to expand...
Click to collapse
Initially this was meant to be a scheduled application. This release was to test viability. As soon as I can dig up the details on how to schedule the application, I'll release the point release with this feature.
I'll look at adding the parsing of the response to check for the 200 code. There is a log file that gets generated, and I will be adding a menu function to both view and email the log.
Download
The download link is asking for username and password...
Thanks,
Scott
Sorry about that
ZeroData said:
The download link is asking for username and password...
Thanks,
Scott
Click to expand...
Click to collapse
Gotta love Windows Permission settings - ugh. The downloads shoudl be working now.
Point release Available
The new version allows for viewing of the log file more than anything else. Also, both the CAB and PC installers include the required OpenNETCF CAB, so things are cleaner on the install.
The emailing of the log file requires a Pocket Outlook account to be setup. I have only tested this with an Exchange server setup, so anyone running IMAP/POP/etc, let me know if it works. It should default to the first email setting in POutlook.
Next version should hopefully have the scheduling ability.
You said you're working on implementing a periodical checker.
Good. Better yet is SMS on error, or E-Mail on error (or both.) and option to play audible alert.
That way you could SMS yourself to grab your attention, or just use the built-in feature to play a sound. You could also have it E-Mail someone in your organization or perhaps your data center (with a predefinable template no doubt!) that the server is off line.
I work at a datacenter as a sysadmin, and I do think these features could go to good use.
jon_k said:
You said you're working on implementing a periodical checker.
Good. Better yet is SMS on error, or E-Mail on error (or both.) and option to play audible alert.
That way you could SMS yourself to grab your attention, or just use the built-in feature to play a sound. You could also have it E-Mail someone in your organization or perhaps your data center (with a predefinable template no doubt!) that the server is off line.
I work at a datacenter as a sysadmin, and I do think these features could go to good use.
Click to expand...
Click to collapse
Yep. As soon as I get the scheduling piece down, then the fun begins. At that point, failures will be alerted via a choice of alarms (siren type MP3s requested <G>), vibration & SMS/MMS/Email.
I also want to do as the poster above suggested and actually parse the results for other, discrete errors (ie: Web server is online, but a 404 is received).
Also, if possible, color coding the log as well.
SQL Server CE or XML?
Got the scheduling portion down and now have a question for folks who would use the app.
Which would you prefer, the use of SQL Server CF or just a local XML file to store the list of servers and ports to scan?
I can see benefits of both, but would like your feedback.
I'm downloading it right now and will give it a try. As a Linux system administrator, I would urge you to avoid using a vendor specific file format for anything. Go with xml. Any administrator who can't deal with that should seek a new line of work, anyway.
"This application requires a newer version of the Microsoft .NET Compact Framework than the version installed on this device."
ogremagi said:
I'm downloading it right now and will give it a try. As a Linux system administrator, I would urge you to avoid using a vendor specific file format for anything. Go with xml. Any administrator who can't deal with that should seek a new line of work, anyway.
Click to expand...
Click to collapse
ogremagi said:
"This application requires a newer version of the Microsoft .NET Compact Framework than the version installed on this device."
Click to expand...
Click to collapse
Ah-hem, What ROM are you using, You might try to update to the newest NetCF
Apparently, The CAB installer also requires the OpenNETCF to be installed as well (http://www.opennetcf.com)
I tracked down the package I needed from Microsoft and now AlertMe is working. It seems a small but useful tool, though definitely not a replacement for Nagios.
The immediate thing I noticed is it doesn't remember the checkboxes selected when you pick the domain/ip from the history. That would be a nice little feature.
Looks nice. I haven't downloaded it yet, but on the second screenshot tab can you add a "custom" option to put in a port that isn't listed?
ogremagi said:
I tracked down the package I needed from Microsoft and now AlertMe is working. It seems a small but useful tool, though definitely not a replacement for Nagios.
The immediate thing I noticed is it doesn't remember the checkboxes selected when you pick the domain/ip from the history. That would be a nice little feature.
Click to expand...
Click to collapse
I'm adding a scheduling feature at the moment that will allow for the system to run at defined to monitor selected ports.
bengalih said:
Looks nice. I haven't downloaded it yet, but on the second screenshot tab can you add a "custom" option to put in a port that isn't listed?
Click to expand...
Click to collapse
Duh - don't know why I didn't think of that. It will be added to the next release. I'm fighting off a bout of bronchitis at the moment, but hopefully the next release will be in a week or so and include this along with the scheduling.
ogremagi said:
I'm downloading it right now and will give it a try. As a Linux system administrator, I would urge you to avoid using a vendor specific file format for anything. Go with xml. Any administrator who can't deal with that should seek a new line of work, anyway.
Click to expand...
Click to collapse
XML is the easier way to go. This should also allow you to bull the "jobs.xml" over to a PC for easier editing. Then push it back to the device.
did you foillow up with more developements such scheduling and alerts?
I looked at the website but it didn't seem to have een updated...

Locale Variables? Anyone using this?

I am curious about this plug-in for the Locale app. I think it has a lot of potential but am failing to understand how to use it. If anyone has successfully configured this plugin to work for a situation I would like to hear about the details of the configuration. Thanks
Locale Variables Android
I just downloaded this yesterday.
Check out this site droidmunkey.com/localeVariables/" to see one example of how it is used.
Basically, you can assign one condition a variable and then use the variable to activate another action. The possibilities are endless. There was one instance where I created one condition that referred to another and back again which caused my phone to crash over and over but I beat it by quickly (upon phone startup) disabling Locale.
I feel that this only scratches the surface on the usage of this Locale Plug-In but with the lack of support on the web for the variables plug-in specifically, hopefully people will land here and leave some info. Let me know how you have used it.
I am a Personal Trainer not a programmer.
uppereastsidepersonaltraining.com

[APP] Crumbs (looking for a fellow developer!)

So I recently got very interested in Windows Phone 7 (mango) and I had been thinking about starting to create my own apps for a while. The result is the idea for an app that is as follows:
Name: Crumbs
Possible abbreviation: to send somebody a "crumb"
In short: An app that capable of: writing/creating, organising, sharing and following instructions, AKA crumbs.
What I want to achieve with this is a new option into social networking, but this time it's also very useful and not just fun to show off. What could these crumbs be? Well, I've thought of some categories already:
Routinely task:
like the stuff you do every morning, shouldn't forget, etc.
Work/study task:
some sort of study schedule, with certain points you should handle to complete the whole task.
Preparation/cooking task:
doesn't need any explanation.
Scavenger hunt/adventure:
wouldn't it be great if you can give a list of instructions to someone with some reward at the end?
Travelling:
similar to your adventure, but could contain various flight data or a couple of options (so you don't "finish" an item, but finish 1 item in a dillema.
Other: always have some other category..
User defined: if a user wants to make his/her own category.​So these are the categories, but as you've already seen, each category has different types of commands/operations one has to perform to complete the whole task. So when writing a new one, you could filter the entry-options by the ones most important for that category and give the users a seperate option to add another operation than the ones listed by default. Some possible operations and their integration ideas are as stated below:
Action: very straightforward, do something and when executing the crumb you simply check the box when done. Maybe some option with a timer that alerts you that you should be done with the operation soon (for example: cooking).
Navigate: go to a specific location and then you check the operation. Possible GPS integration/maps?
Input: give certain input to go on. For example useful when creating an adventure (go there, look for the church and read what's on it) or something else that should need a password or any other input.
Alert: to alert yourself/the executor OR (and this is important) some other user that you've arrived at a certain operation in your crumb.​
Yeah, you read it right, another user. Because one other important aspect of almost every app nowadays is SHARING. So ofcourse, there will have to be the option to share crumbs. People will be able to manage their crumbs on a phone ofcourse, but if there's a lot, wouldn't it be easy to have them stored online too? A place where you can rapidly type, organise and share your crumbs. So there should be a format to save them in (.crumb looks fantastic ). So, you simply send someone the crumb using a public link you create for your privately stored crumb. But what about something called instructors/friends? Wouldn't it be awesome if you can allow certain people to GIVE you crumbs straightaway, so you'll get alerted and know you have to do something (OK, "your mom" wouldn't be awesome, but useful nonetheless). To make things easier for this, the users will have to be able to manage these friends/instructors too and have their own cookie jar/cake box to receive their crumbs directly in (on the website and in the app). I sense some Facebook/social integration, don't you?
Then there's this weird habit of people: they've got calendars and tasks on them. Wouldn't it be great if the crumbs are linked to calendar and/or outlook-task items?
Sooo... This is my (already quite complex) idea. To conclude things once again: the outlook task system isn't capable of managing real tasks. You can give certain progress percentages, but that's just something that could be managed by this app, since it's much more in depth.
Problem is, I'm not that good at developing (yet)! So if any developer out there is willing to take this thing on with me (I just feel this could turn out great), please let me know. Meanwhile, I'll keep dreaming on and I'm a quick learner, so I hope to show a mockup of some sorts soon . I've already thought out some sort of menu structure/frame everything should be hung up in and that's what I'll be working on the time to come.
And keep in mind:
This idea is NOT for sharing by anyone but me right now. That it may be very clear that this idea is not for your own use!

To all developers: Simple video sender tutorial?

The hello world from https://github.com/pjjanak/chromecast-hello-world was good, I was wondering if anyone know of any similar thing for video. I am trying to understand Fling (the receiver HTML part, I sort of get). However his Java and the Ramp protocol is a bit beyond me in the Sender portion. Anyone know of any simple HTML sender/reciever app that I could take a look at?
I realized that it is a lot to ask, but if anyone could help me I would appreciate it. I just want to learn on how to send a simple URL of video to the chromecast, no server hosting, no transcoding. Simple so my little brain could understand and learn.
I am getting my WhiteList, so I am looking for the official way.
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Thank you, Unholyfire, looking forward to your next post. And thank you for your help on the other post as well. I now have somewhere to host my file online. Just waiting on Google. And yep Sender is harder. I played around with the original sender from google (which doesn't work now), I used mongoose and whitelisted Localhost already so I am familiar with the hosting concept.
Unholyfire said:
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Click to expand...
Click to collapse
Try to Keep the post visible, I hope you have a good holiday weekend and please post the sender part whenever you can. Thank you.
Unholyfire said:
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Click to expand...
Click to collapse

[HELP-Win10] PC automation sequence

Hey all,
I've owned Tasker for quite some time but I'm trying to get back into it lately. I like the idea of hitting a task widget button on my phone and it creating an automation sequence of sorts. Recently I synchronized Tasker, Google Assistant, Join, EventGhost, & IFTTT as I hear it's a start to PC automation.
Right now I'm struggling past this point, feel I'm behind, and a post like this could be a fast information grabber with insight.
Scenario: I would like the task to check and see if I'm logged in on my PC or not, if I'm not, it automatically fills my password in and logs me in. If I was already logged in, maybe bypass the login step unless running the login sequence wouldn't throw off the rest of the script if logged in already.. It would then execute a program, when the program is running 100% loaded, it executes some clicks inside of the software then it's done. My resolution stays the same always so if there is a x,y coordinate system of some sort like an autoIt script for the PC automation part, I believe that would work for me? Maybe something else besides an autoIt script??
I know EventGhost can apparently run as a service using software like Firedaemon. I'm running Windows 10, which apparently can help for the login part. I feel I'm so close to nailing out a logic, but I'm curious as to how some seasoned users might handle such a Tasker Task.
Any help is greatly appreciated!
Thanks!
Mark7807
I'll admit, I'm not a Windows person and I'll always script before looking for a gui solution. So help me understand why you would look for ways to interact with the desktop in this manner. It just seems overly complex to me.
Why not just set up a Tasker task to ssh into the W10 machine and execute a script to accomplish your task?
+1 to ktmom, you could also try an arduino hid keyboard and try to remote control it to put in windows password. with some tinkering you could controll this with bluetooth via android

Categories

Resources