On Tue, Apr 2, 2013 at 1:16 PM, NM <[email protected]> wrote:

> Hi there,
>
> I am completly new to node.js and got my first successful installation and
> examples done today.
> I wanted to use node.js to communicate with an raspi.
>
> Following idea:
> 1.) I wanted to set data in an LAMP enviroment via php
> 2.) It should be sent via node.js / socket.io to all listening clients
> (pushed)
> 3.) The client, running on an raspberry pi should get that pushed data in
> bash CLI to send it via serial to the end system
>
> My questions:
> - A) How to communicate php data to node.js, as they are different worlds.
> Is there an easy way to "echo" data via php to the node.js, so that
> node.js can broadcast-push it to the clients?
>

PHP can make HTTP requests so you can have a local listening HTTP server in
node.


> - B) Is there any software in unix commandline which can work as a
> reciever to an node.js index.html client page and does echo back the sent
> broadcast pushes, so that I can work with this data on cli to push it to
> serial?
>
>
Does STDOUT of the node server not for for this purpose?  You could also
start a net server in node on either a local TCP port or a local socket
file and listen to that with some unix process.


>
> Thanks a lot!
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to