Installation and configuration on Raspberry Pi 3
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Installation and configuration on Raspberry Pi 3
Im afraid I cant help you with this, I know practically nothing about servers, I use external webhosting where everything like PHP and MySQL is pre-installed
-
pdurand
- Observer

- Posts: 32
- Joined: Mon Oct 23, 2017 4:21 pm
- Location: Airdrie, Alberta, Canada
- Station model: Custom
- Software: Custom
- Contact:
Re: Installation and configuration on Raspberry Pi 3
After a grusome day, I found the problem.
In the setup.php script in the MySQL section the entry to the Hostname field was set as:
http://pierre.does-it.net/template
After changing this to:
localhost
all was back to normal.
If I understand correctly having the mySQL database on the same server has the web server this should not be an issue.
I will now move to data update from my weather station....
Wow......what a day.....
In the setup.php script in the MySQL section the entry to the Hostname field was set as:
http://pierre.does-it.net/template
After changing this to:
localhost
all was back to normal.
If I understand correctly having the mySQL database on the same server has the web server this should not be an issue.
I will now move to data update from my weather station....
Wow......what a day.....
Pierre Durand
-
pdurand
- Observer

- Posts: 32
- Joined: Mon Oct 23, 2017 4:21 pm
- Location: Airdrie, Alberta, Canada
- Station model: Custom
- Software: Custom
- Contact:
Re: Installation and configuration on Raspberry Pi 3
Progress....
I have implemented the api.php method of updating data.
I am sending data every minute for now but will change to every 30 seconds soon.
My weather station is successfully sending data to a remote rPi server using the API.php
I have added the API plugin and am able to verify the data being sent...
This is awesome....
Now I will verify the precision of the data being captured by the weather station and setting up the template for our need.
I am surprised at the ability of the raspberry pi 3 to be a LAMP server.
When I am done with creating the layout of the template, i will update this forum.....
I have implemented the api.php method of updating data.
I am sending data every minute for now but will change to every 30 seconds soon.
My weather station is successfully sending data to a remote rPi server using the API.php
I have added the API plugin and am able to verify the data being sent...
This is awesome....
Now I will verify the precision of the data being captured by the weather station and setting up the template for our need.
I am surprised at the ability of the raspberry pi 3 to be a LAMP server.
When I am done with creating the layout of the template, i will update this forum.....
Pierre Durand
-
pdurand
- Observer

- Posts: 32
- Joined: Mon Oct 23, 2017 4:21 pm
- Location: Airdrie, Alberta, Canada
- Station model: Custom
- Software: Custom
- Contact:
Re: Installation and configuration on Raspberry Pi 3
New problem....
I have been using the API in my custom weather station to send the weater data every minute with success.
I have been sending these parameters:
U, T, H, P, W, G, B, R, RR, PASS
after computing the average temperature for 60 seconds I now record Tmax and Tmin.
This morning I added these to the data send with http GET
So now I am sending:
U, T, TMX, TMN, H, P, W, G, B, R, RR, PASS
String wuData = String("U=") +
String(utc) +
String("&T=") +
String(t) +
String("&TMX=") +
String(tMax) +
String("&TMN=") +
String(tMin) +
String("&H=") +
String(h) +
String("&P=") +
String(seaLevelhPa) +
String("&W=") +
String(windspeedkmh) +
String("&G=") +
String(windgustkmh) +
String("&B=") +
String(winddir) +
String("&RR=") +
String(rainmm / 2.0 / 100.0) +
String("&R=") +
String(dailyrainmm) +
String("&PASS=xxxxxxxxx");
Now I get a bad response from the server.
What am I missing....?
I have been using the API in my custom weather station to send the weater data every minute with success.
I have been sending these parameters:
U, T, H, P, W, G, B, R, RR, PASS
after computing the average temperature for 60 seconds I now record Tmax and Tmin.
This morning I added these to the data send with http GET
So now I am sending:
U, T, TMX, TMN, H, P, W, G, B, R, RR, PASS
String wuData = String("U=") +
String(utc) +
String("&T=") +
String(t) +
String("&TMX=") +
String(tMax) +
String("&TMN=") +
String(tMin) +
String("&H=") +
String(h) +
String("&P=") +
String(seaLevelhPa) +
String("&W=") +
String(windspeedkmh) +
String("&G=") +
String(windgustkmh) +
String("&B=") +
String(winddir) +
String("&RR=") +
String(rainmm / 2.0 / 100.0) +
String("&R=") +
String(dailyrainmm) +
String("&PASS=xxxxxxxxx");
Now I get a bad response from the server.
What am I missing....?
Pierre Durand
-
pdurand
- Observer

- Posts: 32
- Joined: Mon Oct 23, 2017 4:21 pm
- Location: Airdrie, Alberta, Canada
- Station model: Custom
- Software: Custom
- Contact:
Re: Installation and configuration on Raspberry Pi 3
Well it is done.
I now have two servers publishing Meteotemplate, both running on Raspberry Pi 3's.
They are amazingly efficient.
In the coming weeks, the load on these will increase as club members access them more frequently.
I have google analytics monitoring one of them.
I have logged all the packages and mods needed on the raspberry pi 3 running the latest OS.
I would be glad to provide that to anyone looking into using that platform..
the sites are:
http://amasrc.does-it.net only this one will have numerous connections.
http://bptest.does-it.net
I now have two servers publishing Meteotemplate, both running on Raspberry Pi 3's.
They are amazingly efficient.
In the coming weeks, the load on these will increase as club members access them more frequently.
I have google analytics monitoring one of them.
I have logged all the packages and mods needed on the raspberry pi 3 running the latest OS.
I would be glad to provide that to anyone looking into using that platform..
the sites are:
http://amasrc.does-it.net only this one will have numerous connections.
http://bptest.does-it.net
Pierre Durand