Re: data from bus to publishing function

IngoognI <[email protected]> Thu, 12 Jan 2017 05:30:25 -0800 (PST)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
Storing the data is not the problem Jason. As I understand I can write a 
tool that gets the data from the bus, as posted by the sensor, and store it 
in a DB or a simple circular array. I can pull it from there by polling on 
updates.

What I want is to get data from the bus to a webpage for example have 
PostgreSQL push the data on the bus with their listen/notify ( 
https://pypi.python.org/pypi/pgpubsub/0.0.5 ). 

In my example I left out all the stuff in the middle, but it shows the 
essence of my problem.
So, how can I turn  cherrypy.engine.subscribe("cpu", print_cpu) into a 
variable within pubcpu (i think)


Thanks,

Ingo

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.