This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-26 13:08:33

DiegoDelaFuente
New Scratcher
Registered: 2013-04-26
Posts: 3

web browser remote sensor like S4A

Hi, Scratch for arduino (S4A) http://seaside.citilab.eu/scratch/android has an amazing capabilitie.

To them is possible to send messages and remote sensors values from a web browser. The usage would be as follows (for example if the IP of PC is 192.168.1.2). Also in this case you must enable the remote sensors option in S4A:

- For messages: http://192.168.1.2:42001/broadcast=hello
- For remote sensors: http://192.168.1.2:42001/sensor-update=number=1

How can I moddify Scratch to do this possible??

Offline

 

#2 2013-04-28 10:30:17

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: web browser remote sensor like S4A

Well, I think the best way would be to run an external Python server which interfaces with Scratch.  smile  I can help you, if you want.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2013-04-29 10:28:03

DiegoDelaFuente
New Scratcher
Registered: 2013-04-26
Posts: 3

Re: web browser remote sensor like S4A

Well, the problem here is I have a wifi board. I wanna send messages to Scratch but I can't program the protocol in C. :-/

Because i can't convert the char message[] to bytes.

Can you help me with that??

Offline

 

Board footer