Weather by You!
Templates and Projects support => Php templates => Topic started by: davehiggins on March 01, 2013, 05:37:28 AM
-
Hi - I'm a newbie to Linux / PHP etc though I have many years programming experience on mainframes etc. I'm setting up a weather station using a Maplin station on a Raspberry Pi, pywws and your templates. I've got most of it working now but can't work out how to get the forecast working. All I get in the place of the forecast is the code from forecast_icon_9am.txt displayed. I suspect this is because I can't find the Zambretticode or Zambretti files anywhere on the system.
I downloaded your zip files and unpacked them to /var/www which is where the website needs index.php to be. Can you let me know where I can find these files - there are some python programs called that in pywws but they won't work in PHP.
thanks in anticipation Dave
PS thanks very much for the excellent website.
-
Hi Dave,
User slothbag wrote a pretty complete step-by-step guide.
You could see it here: http://www.weather.dragontail.co.uk/index.php?page=station_setup
Hope this help!
Regards,
Jacques
-
Jacques - thanks for the quick reply.
I did all the initial install using slothbag's instructions and then used the pywws instructions written by Jim Easterbrook to get the live logging and hourly logging processes working. I contacted Jim who suggested it was a problem in the PHP area which is why I contacted you. Jim has Zambretti code in the pywws libraries but that is all in Python which I presume won't run from PHP from my basic understanding of the system.
I have the website displaying the graphs and readings from the pywws data with no real problems, it just took me a while to get everything in the right places. I can see that the PHP code from forecast_icon_9am.txt is trying to call Zambretti but can't see how that works unless there are Zambretti programs somewhere - or am I completely misunderstanding the process.
Cheers Dave
-
Hi Dave,
I'm a little confused as I'm not a Linux geek myself!
I working with Windows from early 90's, but find that project
pretty interesting as it works on a very low hardware!
So I've take an "open" router and installed all needed files
and all worked fine. But I think that PI use a pretty "low"
Linux distribution and you probably need to add some package
to be at the same level. That is why I refered you to slothbag's site.
Then, PI is not the trouble as it is "stronger" then my 525Mhz, 128Mg router!
Hope you'll find the right "recipice"
Regards,
Jacques
-
Jacques - thanks for that. I'm sure that the Raspberry Pi doesn't have a Zambretti function built in but I have found a PHP implementation of Zambretti which I shall have a go at implementing. If I succeed I'll come back here and document it for others.
Cheers Dave