Author Topic: Getting Zambretti to work on a Pi  (Read 11220 times)

Offline davehiggins

  • New member
  • *
  • Posts: 3
    • davedoesnthavone
Getting Zambretti to work on a Pi
« 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.

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Getting Zambretti to work on a Pi
« Reply #1 on: March 01, 2013, 07:33:43 AM »
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
Please, consider supporting this site 

Offline davehiggins

  • New member
  • *
  • Posts: 3
    • davedoesnthavone
Re: Getting Zambretti to work on a Pi
« Reply #2 on: March 01, 2013, 12:46:17 PM »
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

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Getting Zambretti to work on a Pi
« Reply #3 on: March 02, 2013, 07:02:33 AM »
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
Please, consider supporting this site 

Offline davehiggins

  • New member
  • *
  • Posts: 3
    • davedoesnthavone
Re: Getting Zambretti to work on a Pi
« Reply #4 on: March 02, 2013, 09:55:27 AM »
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