Copy a working folder to another one, now not report current weather

Post Reply
User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Copy a working folder to another one, now not report current weather

Post by bthoven » Thu Jan 30, 2020 1:57 am

Thanks for a great template. I host it on my home server (Ubuntu, Apache) and it has been working without problem. I now just got a proper domain name and I copied the working template folder to my new virtual host folder (on same home server). I amended the main setting by pointing it to the new domain. Changed folder permission to be the same as the old one. The template shows up without problem, except the "current" block that it won't show any current weather data.

I deleted all the files in the cache subfolder; and later the template created just only 3 files instead of 6 files. The 3 files are
interactivebanner.txt, version.txt, and latestVersion.......txt.

Please have a look at the website: https://bthofen.com/meteo

Please help.

Thank you

User avatar
Asobig
Advisor
Advisor
Posts: 72
Joined: Mon Aug 21, 2017 7:05 am
Location: Almere
Station model: Davis Vantage VP2+
Software: Meteobridge (Red)
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by Asobig » Thu Jan 30, 2020 11:16 am

The current block shows a massage: API file not found.

Perhaps you can find the problem in "Check for problems" in the Control Panel.

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 12:51 am

Check in Main Setup that the
Path: /wx/
Page URL - make sure to include the http:// !!! https://www.nicomaparkwx.com are correct. http or https.
in my case.

If you modified the index.html or .htaccess files ensure the correct path to the root. /wx in my case.

Seems to be a path issue and can not find the api.php
Image

User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Re: Copy a working folder to another one, now not report current weather

Post by bthoven » Fri Jan 31, 2020 3:16 am

Thanks. The path (/meteo/) and website is right (https:bthofen.com)

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 4:16 am

(https:bthofen.com)
https://www.bthofen.com right?
www

Something is wrong. I can't get to that domain.
Image

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 4:22 am

You need to create an index.html in you /root to point to https://www.bthofen.com/meteo/indexDesktop.php
The directions are in the wiki at meteotemplate.com
Image

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 4:31 am

You have it. Works now and points to the api.php file to update your database.

http://bthoven.dyndns.biz/meteo/indexDesktop.php

you left off the .dyndns.biz/ it needed that to point to the right dns.
Image

User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Re: Copy a working folder to another one, now not report current weather

Post by bthoven » Fri Jan 31, 2020 5:12 am

Asobig wrote: Thu Jan 30, 2020 11:16 am The current block shows a massage: API file not found.

Perhaps you can find the problem in "Check for problems" in the Control Panel.
The one that is not working is https://bthofen.com/meteo

Check for problem got only this error:
API file
API file not found. This means your template is not being updated.

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 6:01 am

Are you running both at the same time?
How are you sending data to your database> i.e Meteobridge, Ecowitt, WEEWX, WD, WU?
It seems you are having a path issue. Something is not directing you to the correct path. Main setup, index.html. cache, sub-directory... something.

Without knowing your details I am only guessing.
Image

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 6:08 am

Also, remember that it takes up to 5 minutes for updates. check your cron jobs are correct, the path to the correct api.php...
Image

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 6:11 am

OK now, https://bthofen.com/meteo/indexDesktop.php is working correctly and the other is not. You corrected a path I am guessing.
Image

User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Re: Copy a working folder to another one, now not report current weather

Post by bthoven » Fri Jan 31, 2020 6:16 am

Thanks. I found my stupid mistake. As I use weewx meteotemplate extension to feed live data to the template. I have to change the weewx.conf to reflect the new domain:

The original config that worked for http://bthoven.dyndns.biz/meteo):
The meteo folder is in /var/www/html/ folder
[[Meteotemplate]]
password = xxxxx
server_url = http://localhost/meteo/api.php
binding = loop

New config that did not work for https://bthofen.com/meteo
The meteo folder is in /var/www/bthofen.com/
[[Meteotemplate]]
password = xxxxx
server_url = https://localhost/meteo/api.php
binding = loop

New config that works for https://bthofen.com/meteo
The meteo folder is in /var/www/bthofen.com/
[[Meteotemplate]]
password = xxxxx
server_url = https://bthofen.com/meteo/api.php
binding = loop

I don't think it is an ideal config because it needs to resolve dns everytime. Not sure is it possible to use the localhost, somehow.
Last edited by bthoven on Fri Jan 31, 2020 6:22 am, edited 1 time in total.

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 6:21 am

Yes, you can use Localhost, your present IP address if it never changes only. I would stick with localhost as IP addy exposes you to the outside somewhat.
Image

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 6:28 am

I just re-read your message. Stick with the correct address to point to the dns server.
Image

User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Re: Copy a working folder to another one, now not report current weather

Post by bthoven » Fri Jan 31, 2020 7:20 am

andyk1 wrote: Fri Jan 31, 2020 6:28 am I just re-read your message. Stick with the correct address to point to the dns server.
You mean I stick to the https://bthofen.com/meteo/api.php ?

andyk1
Professional
Professional
Posts: 431
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Copy a working folder to another one, now not report current weather

Post by andyk1 » Fri Jan 31, 2020 6:59 pm

bthoven wrote: Fri Jan 31, 2020 7:20 am
andyk1 wrote: Fri Jan 31, 2020 6:28 am I just re-read your message. Stick with the correct address to point to the dns server.
You mean I stick to the https://bthofen.com/meteo/api.php ?
https://bthofen.com/meteo/indexDesktop.php
or just:
https://bthofen.com/meteo
Image

Post Reply