Calling all coders

Teh Black Hole's picture

OK, FM24.07 is in need of a C++ coder.

Your duties if you choose to accept them is code a stupid command line app that runs 110% of the time on machine running Linux/GNU... reads an RFID tag and outputs the tag # along with a UNIX timestamp (ie. '1186042622' which is nerd speak for 'Thu Aug 2 04:17:17 EDT 2007') and puts it into a colon delineated text file along with two other constant values in two other fields (Station ID and Status Code), unless a lock file is present, then it just holds the data in a buffer until the lock file disappears.

Sample output would be something like:

10024387:1186042756:STATION_1:PENDING
10024387:1186042756:STATION_1:PENDING
10005746:1186043087:STATION_1:PENDING
10002685:1186043087:STATION_1:PENDING
10015205:1186043087:STATION_1:PENDING
10020414:1186043088:STATION_1:PENDING
10026866:1186043088:STATION_1:PENDING

The third field has to be able to be set via config file (like a file with the value in it).

I know this can't be hard (hahaha, I just sounded like our clients here at work)... so if you think you can handle this email or reply in this thread.

The RFID reader is the Phidgets kit, so we have the libraries to access the hardware.

I don't feel like learning some new programming language in two weeks.

Oh yeah... when the program is running... it needs to spit the same data it's putting into the text file onto the console.

chrisd372's picture

so really calling all c++

so really calling all c++ coders

havent touched that shit since college, and even then i didnt inhale

Teh Black Hole's picture

Well... I mean you could

Well... I mean you could write it in VB, C#, C, Java?... but why the hell would you want to do that?

chrisd372's picture

to package and sell as

to package and sell as overpriced bloatware after everyone is impressed and wants to buy one! "runs on the latest platform!"

Tacit's picture

"Runs on Python!"

I think I've seen "runs on Java" before :P

spiffyk's picture

Actually, it does

http://jozilla.net/software/pydgetrfid

I'll give it a try using this if I can borrow the hardware to test with.

I don't know C++ :(

Teh Black Hole's picture

I emailed Chris (he asked me

I emailed Chris (he asked me about coding the app in C/C++), but if you can get the reader to work with Python doing the stuff I outline above... then go for it.

I'll let you or Chris know when I have the hardware in hand.

ckdake's picture

Doesn't matter how you do

Doesn't matter how you do it. Here's the problem to implement:

RFID reader gives you a #.

This number has to reliably get delivered to a url via a HTTP Get request.

The box will run Linux or FreeBSD.

If you like, you can jsut get that output into a text file and Seth's shell script magick will take it from there, but in my mind a single program is a better idea given how simple this shoudl be.

Teh Black Hole's picture

Yeah, but what if the uplink

Yeah, but what if the uplink goes down and the program can't deliver via the HTTP GET request... that's why I settled on the dump to text file and send in batch mode with a status marker of sent/non-sent.

But yes to his response... write a program... I'm going to look at this python script/program.

ckdake's picture

thats the "reliable" part :)

thats the "reliable" part :) shoulda triple italicazized that or something.

Teh Black Hole's picture

"triple italicazized" I only

"triple italicazized"

I only wish there was a way to put that much emphasis on text. Maybe make a font that punches you in the taint or something.

ckdake's picture

I was going to find

I was going to find something on youtube to link to on this but all I got were 50 Cent music videos.

gong's picture

I believe you're looking for

I believe you're looking for the marquee html tag.