Meteobridge Problem
-
- Advisor
- Posts: 60
- Joined: Sun Dec 24, 2017 2:22 pm
- Station model: AW WS-2000ish
- Software: Meteobridge/OIP/GW-1000
- Contact:
Meteobridge Problem
I just started up a new Meteobridge using a TP-Link MR2030 and everything went well until I tried to link it to meteotemplate. I put the address to the update.php in the field, trying both with ?password=xxx and without the password part, with the proper password in the password field. It doesn't want to work, see the screenshot below with the error message. I tried changing the database update page to say api instead of WU, and that does not seem to help. Anyone have any ideas?
-
- Advisor
- Posts: 60
- Joined: Sun Dec 24, 2017 2:22 pm
- Station model: AW WS-2000ish
- Software: Meteobridge/OIP/GW-1000
- Contact:
Re: Meteobridge Problem
Additionally, I would like to push data to the MySQL database that powers meteotemplate. Does anyone have a good SQL query that does that?
- dmgould
- Forecaster
- Posts: 173
- Joined: Sat Aug 26, 2017 2:43 am
- Location: Divide, Colorado, USA
- Station model: Davis Pro 2 Plus Wireless
- Software: Meteobridge
- Contact:
Re: Meteobridge Problem
In API URL place the exact path to your template file api.php (including the file name api.php at the end). In the Password field enter your update password.
Dave G
-
- Advisor
- Posts: 60
- Joined: Sun Dec 24, 2017 2:22 pm
- Station model: AW WS-2000ish
- Software: Meteobridge/OIP/GW-1000
- Contact:
Re: Meteobridge Problem
Thanks, but from the screenshot you can see that I did that.
- iatros
- Language Admin
- Posts: 145
- Joined: Mon Aug 21, 2017 5:56 am
- Location: Flims Waldhaus Switzerland
- Station model: Davis Pro 2 6163
- Software: Meteobridge
- Contact:
Re: Meteobridge Problem
Hi MJW
as dmgould told you, the entry there looks like:
../[your template root]/api.php
for me it is: https://meteo.dubler.com/api.php
cheers, iatros
as dmgould told you, the entry there looks like:
../[your template root]/api.php
for me it is: https://meteo.dubler.com/api.php
cheers, iatros
- dmgould
- Forecaster
- Posts: 173
- Joined: Sat Aug 26, 2017 2:43 am
- Location: Divide, Colorado, USA
- Station model: Davis Pro 2 Plus Wireless
- Software: Meteobridge
- Contact:
Re: Meteobridge Problem
Actually, you haven't done that in the screenshot. Your URL is to the update directory. Your URL should be to the file api.php which is in the root directory of your template. It looks to me like yours would be http://weather.westfamilynj.net./meteo/api.php. Your update password goes in the password field and not at the end of the URL. Also enter just the update password not another URL in the password field.
Dave G
-
- Advisor
- Posts: 60
- Joined: Sun Dec 24, 2017 2:22 pm
- Station model: AW WS-2000ish
- Software: Meteobridge/OIP/GW-1000
- Contact:
Re: Meteobridge Problem
You are both right, I didn't have the right file & location. It is working now. Looking at what api.php does, it pushes the data straight to the MySQL installation, no need to have it set up separately in the meteobridge services, correct?
- dmgould
- Forecaster
- Posts: 173
- Joined: Sat Aug 26, 2017 2:43 am
- Location: Divide, Colorado, USA
- Station model: Davis Pro 2 Plus Wireless
- Software: Meteobridge
- Contact:
Re: Meteobridge Problem
It looks like you have it working now. If everything is setup correctly the api should be feeding the data to your database at whatever interval you setup. You can check it out - log into your template, go to your control panel, and click on Edit Data in the Database square. It will show the data in your table for the current date and when it was written into the database (each line).
Dave G
-
- Advisor
- Posts: 60
- Joined: Sun Dec 24, 2017 2:22 pm
- Station model: AW WS-2000ish
- Software: Meteobridge/OIP/GW-1000
- Contact:
Re: Meteobridge Problem
Thanks it is set up and working. In meteobridge, I have it set to call the api.php every 10 seconds with 5 retries, but in the meteotemplate database it is showing posts every 5 minutes. I don't see any settings on the meteotemplate side where to specify a shorter time. In the current conditions block, I have it setup to pull data every 30 seconds and in the station status block, I have it to show offline if more than 7 minutes since the last update. Am I missing a setting somewhere?
- Dehatter
- Professional
- Posts: 349
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Meteobridge Problem
The API logs your 10 secs updates, but only writes to the dB every five minutes. Most of the data is averaged, but some settings are listed as the max value during the 5 minutes (Wind gust for one). This way the php does not spend a lot of time (resources/space) writing to the dB. The values on your site will update based on your selection in the current block (30 secs for me), subject to the same averaging. You do not use gauges, but they update on their own schedule (user adjustable) as well.
Tom
Tom
- Dehatter
- Professional
- Posts: 349
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Meteobridge Problem
You also have a mismatch on units as shown in your current block. Probably the weather station page on meteobridge. Or could also be your settings in the current block setup. I can't tell from here.
Tom
Tom
-
- Advisor
- Posts: 60
- Joined: Sun Dec 24, 2017 2:22 pm
- Station model: AW WS-2000ish
- Software: Meteobridge/OIP/GW-1000
- Contact:
Re: Meteobridge Problem
If you are talking about the pressure being in hPa and everything else in Imperial, I have it set that way on purpose, long story but it makes my wife happy. If it is something else, I will dig further.
- Dehatter
- Professional
- Posts: 349
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Meteobridge Problem
haha. Yes. Congratulations on having a wife that cares about pressure units!!
Mine just looks at me and says "Don't stay up all night!"
I just thought you missed it.
As to the API, this is similar to the way WU does it if you have used them. The current data is current, but the tables are (at least they used to be) on about 5 minute increments. Lately WU has been really crappy.
Tom
Mine just looks at me and says "Don't stay up all night!"
I just thought you missed it.
As to the API, this is similar to the way WU does it if you have used them. The current data is current, but the tables are (at least they used to be) on about 5 minute increments. Lately WU has been really crappy.
Tom