Do you need to use a text file as an intermediary? I created a similar app for my pedal-powered laptop (described at www.pedalpc.com) where a function is called in the controller that reads/writes the serial port and returns the data as JSON which just updates the necessary data in the page in the browser.
This method assumes the client has the processing power to handle updating the page via JSON... On Friday, August 16, 2013 5:40:29 PM UTC-5, Kenneth wrote: > Hello everyone, > > I'm planing on running web2py on an Raspberry Pi. On the computer there will > also be an app that listens on the serial port and writes the results into an > text file. > > I'd like to create an extremly simple page where only the content of the file > is shown and having the page to reload like once every second. This page will > be shown from mobile ones or tablets over GPRS or 3G. > > Is it possible to create an page so every reload doesn't re-execute the > controller and models just re-reads the text file and shows it. > > To controll that app I'd like to sends commands by writing them into an text > file that the app reads. This shouldn't be too hard? > > > Kenneth -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.