[Tutor] Design Outline question for personal project

2007-12-21 Thread jupiejupe

(please forgive the unclear thought process i am still trying to figure out
what i need done and the order there of)
i am going to set up a network of zigbee nodes.
when a event such as: motion movement or touch awakens node 
i want it's alert to the network to trigger a programmed response.

what i have to figure out is 
using a database maybe mysql or (cherrypy seems interesting as a http frame
(can it send pop3 or imap? do i need a database if it does?).
to store the node id's numbers and the email address i want sent.
i need that node number to send it's associated email message to me at my
account.

so i believe that the zigbee node's have id already pre-programmed
so that should not be an issuse.

once the event (i'll need to have a program to take that report? or does the
database do that already?) has been reported to the database, 
the node id should trigger an email? (do i need an email client to send that
or does sockets have some thing to do with that?) that's really all that i
can think i need which most likey means i am missing the boat.


so i figure that i need to study as well as python.
cherrypy:
  has a mini sever and database so i can use that instead of mysql?
Twisted mail?
  do i have to use all of twisted or can i just use to mail part?
socket?
  okay i will google it for some gen. info but pointers of focus can
really help
am i missing anything? 


thanks any bits of info helps just an non-cpu kinda guy with a plan.
-- 
View this message in context: 
http://www.nabble.com/Design-Outline-question-for-personal-project-tp14460833p14460833.html
Sent from the Python - tutor mailing list archive at Nabble.com.

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Design Outline question for personal project

2007-12-21 Thread jupiejupe



jupiejupe wrote:
 
 so i figure that i need to study as well as python.
 
 thanks any bits of info helps just an non-cpu kinda guy with a plan.
 

redefining list:
cherrypy:
  has a mini sever and database so i can use that instead of mysql?
Twisted mail? 
  do i have to use all of twisted or can i just use to mail part? 
socket?
  okay i will google it
am i missing anything?
 
-- 
View this message in context: 
http://www.nabble.com/Design-Outline-question-for-personal-project-tp14460833p14461182.html
Sent from the Python - tutor mailing list archive at Nabble.com.

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Design Outline question for personal project

2007-12-21 Thread Alan Gauld

jupiejupe [EMAIL PROTECTED] wrote

 i am going to set up a network of zigbee nodes.
 when a event such as: motion movement or touch awakens node
 i want it's alert to the network to trigger a programmed response.

 what i have to figure out is using a database maybe mysql or

Yes, and you might find it useful to define a Node as a class.

 (cherrypy seems interesting as a http frame (can it send pop3
 or imap? do i need a database if it does?).

Yes it can do pop and imap vuia standard python pop and imap email
modules and no it doesn't need a database for email. Databases just
store data and allow you to retrieve it. (OK some have fancy 
trigger/event
mechanisms too)

 so i believe that the zigbee node's have id already pre-programmed
 so that should not be an issuse.

Sounds like it.

 once the event (i'll need to have a program to take that report? or 
 does the
 database do that already?) has been reported to the database,

You probably want a node object to retrieve the data from the database
and use that to send the email usong the standard python email 
modules.

 the node id should trigger an email? (do i need an email client to 
 send that
 or does sockets have some thing to do with that?) that's really all 
 that i
 can think i need which most likey means i am missing the boat.

Sockets are involved bt the email modules should shield you from all 
of that.

 so i figure that i need to study as well as python.
 cherrypy:
  has a mini sever and database so i can use that instead of 
 mysql?

You could use standard CGI for this but CherryPy might make it easier.

 Twisted mail?
  do i have to use all of twisted or can i just use to mail 
 part?
 socket?

You definitely don't need Twisted at this stage.
Standard Python email modules should do all you need.

You might want some classes and hence some OOP

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor