On Tue, Mar 21, 2017 at 4:49 PM, gjr80 <gjroder...@gmail.com> wrote: > I have added HTTP POST to rtgd.py using a similar approach to that taken > in the weeWX RESTful API in restx.py. It seems to work well. The php I am > using is: > > <?php > // we are only interested in HTTP POST > if($_SERVER['REQUEST_METHOD'] == 'POST') { > // get the data > $data = file_get_contents("php://input"); > // write the data to file > file_put_contents("json/gauge-data.txt", $data); > // send something back indicating success > echo "success"; > } > ?> > > If OK with you Alec I have mentioned you in the comments as the source of > the idea and referenced your repo. I will publish 0.2.11 later today. > > Fantastic! And yes of course.
-- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.