bugs78
Posts: 3
Joined: Thu Mar 26, 2015 2:55 pm

AirPi and Outputting to HTTP

Thu Mar 26, 2015 3:07 pm

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

tdahh
Posts: 3
Joined: Fri Mar 13, 2015 2:39 pm

Re: AirPi and Outputting to HTTP

Fri Mar 27, 2015 8:09 am

While it is not exactly what you are looking for did you have a look at https://git.cccmz.de/julric/airpi/ ?

bugs78
Posts: 3
Joined: Thu Mar 26, 2015 2:55 pm

Re: AirPi and Outputting to HTTP

Fri Mar 27, 2015 10:26 am

Iv had a look but cant see any information really looks just like a github clone

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: AirPi and Outputting to HTTP

Fri Mar 27, 2015 10:32 am

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?

bugs78
Posts: 3
Joined: Thu Mar 26, 2015 2:55 pm

Re: AirPi and Outputting to HTTP

Fri Mar 27, 2015 10:44 am

yes thats what I mean tpylkko so I know Apache is setup and working

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: AirPi and Outputting to HTTP

Fri Mar 27, 2015 11:26 am

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.

Return to “Advanced users”