PDA

View Full Version : WTT Auction Notifier (Text Message)


salimoneus
09-24-2014, 06:39 PM
This is a little tool I created to notify me via text message if an item I am looking to buy shows up in an auction. Basically you just enter in your search items, configure the text/email, and let it do it's thing.

This comes in handy when I'm working in the garage or around the house, or doing something out in the yard, or even working in a different window or virtual desktop at the office (purely hypothetical ofc), but I'm available to come back to the computer in the event someone posts the item for sale.

Here you can see it's configured to look for fungi tunics and insignia protectors, and in case I am also posting WTB periodicaly, I added "You auction," in the exclude box to ignore those log statements:

http://imagizer.imageshack.us/v2/280x200q90/661/3CLtfN.png



Here is what the text/email Config tab looks like:

http://imagizer.imageshack.us/v2/280x200q90/540/fJd4Xa.png


I would recommend creating a new Gmail account just for this purpose, but it doesn't really matter what account it gets sent from it just needs a valid account on an SMTP server in order to send the text emails out. The reason I would use a new account is because most servers limit the number of emails that can be sent in a time period, so the account might get blocked if it gets too spammy. I have not tested all providers, only Verizon, but I used fairly standard email -> text mappings available for all providers so they should work.



When a text gets transmitted it gets added to the Sent tab:

http://imagizer.imageshack.us/v2/280x200q90/538/h2T8KV.png



If there are errors at any point, the application stops processing and indicates an error status and adds an entry into the Sent tab:

http://imagizer.imageshack.us/v2/280x200q90/743/LG3p5t.png


Please note that this tool can result in a shit-ton of texts getting sent if the search terms are too broad or general. I also have not added logic to filter out repeated auctions by the same sellers, that may be added in the future. Ideally you would get to the computer and disable the notifications once the first one was sent so that's probably not really an issue.

Speaking of which, you can enable or disable the sending of texts by checking or un-checking the Enabled box in the Config tab. This is useful for testing to make sure your search filters are setup correctly, or just to temporarily disable it. Even if transmissions are disabled, they will still be logged to the Sent tab so you can see exactly how your filters are working.

Another way which I imagine this tool being useful, would be if you had EQ running in a remote desktop or on a virtual desktop (or both) at work, and were trying to sell a few items. You can quickly post your WTS messages, switch to another window or desktop, and wait for a text to show up from a potential buyer. You can configure it as follows to get notified anytime someone sends you a tell:

http://imagizer.imageshack.us/v2/280x200q90/743/CEov2u.png



I'm sure there are other clever ways that this can be used, and it's not specific to EQ at all, it can be configured to watch any live logfile you have access to on a running system.

The application does save your preferences, so in between each run it will remember everything, EXCEPT for your email password. It never saves or stores or uses your password in any way aside from the actual sending of the text email message.

This tool requires that logging be enabled, so make sure Log=TRUE in your eqclient.ini file.

This tool also requires Microsoft .NET Framework 4 (http://www.microsoft.com/en-us/download/details.aspx?id=17851) so if you do not have that please install using the link provided.

I am providing the complete C# source code, as well as a zip file containing a Win32 executable. On Windows7 it will save your settings to an XML file in the c:\users\myusername\AppData\roaming\LogNotifier folder, and the location will vary on other versions of Windows. It is open source code with no viruses or ads, nothing but the code.

Source code on github: https://github.com/salimoneus/LogNotifier

Download link to zipped executable: https://github.com/salimoneus/LogNotifierBuild/archive/master.zip


I hope someone finds this tool useful. Feel free to post feedback and/or any issues you may have.

daren
09-24-2014, 08:03 PM
Awesome!

salimoneus
09-24-2014, 08:56 PM
Just to clarify, this tool does require EQ to be running, and a mule parked in EC so it can process the live auction data being logged. It does not try to impersonate an EQ client, nor does it log into the P99 servers. it is simply a logfile parser with filter and notification logic built in.