I did this a while back https://github.com/DonaldMcC/pronto which was a 
small and very simple way to send commands direct from web2py server to an 
arduino which was controlling a cubetto prototype. I appreciate this is not 
your current use case but thought I'd share in any case.

Cubtetto became a kickstart project at the following site 
https://www.kickstarter.com/projects/primotoys/cubetto-hands-on-coding-for-girls-and-boys-aged-3
 
but there were previous links on how to build the prototype.

This side of things worked fine and I could send commands from a tablet or 
whatever to the arduino.  The web2py side was simple but there were a few 
issues with getting the jointjs library working and I haven't tested it 
with latest versions of this so there might be issues.

Regards
Donald

On Sunday, April 30, 2017 at 3:19:53 PM UTC+1, Esteve Martín wrote:
>
> Hi,
> I was recently introduced to web development so i'm stil quite a newbie 
> and i'm having difficulties to find the correct way the implement what i 
> want.
> At the moment i'm working in a project and I seem to have hit a wall. I 
> would appreciate some advice to get me on the right path.
>
> I have some arduinos that constantly send sensor data trough serial ports 
> to a python script and i would like this data to be uploaded to the server. 
> The server should then store it into the database and also plot it in 
> real-time. I would like the server to be capable to actuate on the arduino 
> as well, for example to change the value of some of its pins. 
>
> To implement this i thought of making a token based protocol over a 
> two-way communication channel between my python program and the web2py 
> application. The thing is that i have no idea how to do this. I have done 
> some research but i've been overflown with information. What would you 
> recomend? I've read websockets would do the trick but i would like some 
> council before getting into it.
>
> Thanks and sorry for my mediocre english,
>
> Esteve
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/d/optout.

Reply via email to