Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

dergaderg

macrumors member
Original poster
Feb 9, 2009
48
0
Today I whipped up a little program using java. if you send an email to "EmailCalculator@gmail.com" with "Calc 4times5" , "Calc 4over5", "Calc 4plus6" , "Calc 4minus6" , "Antipow 4x^5" , or "Pow 4x^7" in the subject line, it will send you back an answer in ~11 seconds ( just so i can leave it on and its not pinging the server to much).

Do any of you have any suggestions for adding functionality? im currently working on a weather service
 

dergaderg

macrumors member
Original poster
Feb 9, 2009
48
0
Well that was just an example

That was just something i set up to have the interface for sending an email to a computer and it processing what you sent it and having that processed data sent back, without any intervention.

I just added a Weather Function, Send the same email "Weather" then you zipcode in the email then it will send you the current temp and the forecast.
 

ghellquist

macrumors regular
Aug 21, 2011
146
5
Stockholm Sweden
Invitation to SPAM?

Hmm,
you might be the nicest person in the world, but ...

... but this could also be an invitation to collect mail adresses for later SPAM sendings.

// Gunnar
 

chown33

Moderator
Staff member
Aug 9, 2009
9,431
6,063
the Abysmal Plane
That was just something i set up to have the interface for sending an email to a computer and it processing what you sent it and having that processed data sent back, without any intervention.

I just added a Weather Function, Send the same email "Weather" then you zipcode in the email then it will send you the current temp and the forecast.

Why email? Considering the possible abuses, why not something simpler, like HTTP? It's still a server, and requests can be easily formed from text, like:
http://example.com/weather?90210
 

notjustjay

macrumors 603
Sep 19, 2003
6,055
162
Canada, eh?
No need to be rude, guys. It's obviously a learning example and thought it may not be the most practical way to calculate things, it's a neat interface with lots of potential. I've always thought it would be cool if my house could respond to emails and tell me things like whether I left the garage door open (or maybe respond to a command to close it) or tell me what the thermostat's set to.

If you're afraid of spam then use your throwaway email address. If you don't have one... you ought to :)
 

416049

macrumors 68000
Mar 14, 2010
1,844
2
No need to be rude, guys. It's obviously a learning example and thought it may not be the most practical way to calculate things, it's a neat interface with lots of potential. I've always thought it would be cool if my house could respond to emails and tell me things like whether I left the garage door open (or maybe respond to a command to close it) or tell me what the thermostat's set to.

If you're afraid of spam then use your throwaway email address. If you don't have one... you ought to :)

Fair enough I may have been a bit rude... and i like the idea with the house responding to things like that, heck imagine cars and bikes could do that to :) although there is always the danger that the more electronics there are in a certain thing the higher the likeliness that something will go wrong.

Back to the post, I do think that do the http model chown says isn't a bad idea and i would like the o.p to follow it if possible, than i bet more people would try it out.
 

chown33

Moderator
Staff member
Aug 9, 2009
9,431
6,063
the Abysmal Plane
I've always thought it would be cool if my house could respond to emails and tell me things like whether I left the garage door open (or maybe respond to a command to close it) or tell me what the thermostat's set to.

These days, houses and garages have websites. Seriously. Home automation interfaces or gateways, at least some of them, use HTTP and/or HTTPS.

Email only makes sense when an email client is all you have. For example, early cell phones may have had passable email but very limited web browsing capabilities. So email would be a better interface choice in those cases. However, as soon as mobile browsers began to not suck, email doesn't look so good any more. HTTP gives you many more interaction options than email, and can be used from any device, not just the one configured with your email account info.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.