Page 1 of 1

AirPi and Outputting to HTTP

Posted: Thu Mar 26, 2015 3:07 pm
by bugs78
I have built myself a working AirPi and I have tested the sensors with outputting to a text file which works fine, however I would like to output to a webserver. I have installed Apache and I can browse to it, and even though there are options in the AirPi config file I cant figure how to get the data from the sensors into Apache.

Can anyone help

cheers

Re: AirPi and Outputting to HTTP

Posted: Fri Mar 27, 2015 8:09 am
by tdahh
While it is not exactly what you are looking for did you have a look at https://git.cccmz.de/julric/airpi/ ?

Re: AirPi and Outputting to HTTP

Posted: Fri Mar 27, 2015 10:26 am
by bugs78
Iv had a look but cant see any information really looks just like a github clone

Re: AirPi and Outputting to HTTP

Posted: Fri Mar 27, 2015 10:32 am
by tpylkko
When you say you can browse to apache do you mean that when you access the address you are able to see apache dedault page "it works" etc. but that you are not able to have the text file shown?

Re: AirPi and Outputting to HTTP

Posted: Fri Mar 27, 2015 10:44 am
by bugs78
yes thats what I mean tpylkko so I know Apache is setup and working

Re: AirPi and Outputting to HTTP

Posted: Fri Mar 27, 2015 11:26 am
by tpylkko
Then you need to either make the txt-file displayed as default from settings, or you need to have a link to the txt-file from the default page. The text file needs to also be in a location that has been given access over web. So, if I remember correctly, the standard one on raspbian apache is something like /var/www.

You need to google apache setup instructions. There are configuration files for apache that allow you to point the default place to some certain place etc.