Copy a working folder to another one, now not report current weather
- bthoven
- 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
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
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
- Asobig
- 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
The current block shows a massage: API file not found.
Perhaps you can find the problem in "Check for problems" in the Control Panel.
Perhaps you can find the problem in "Check for problems" in the Control Panel.
-
- 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
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
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
- bthoven
- 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
Thanks. The path (/meteo/) and website is right (https:bthofen.com)
-
- 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
(https:bthofen.com)
https://www.bthofen.com right?
www
Something is wrong. I can't get to that domain.
https://www.bthofen.com right?
www
Something is wrong. I can't get to that domain.
-
- 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
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
The directions are in the wiki at meteotemplate.com
-
- 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
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.
http://bthoven.dyndns.biz/meteo/indexDesktop.php
you left off the .dyndns.biz/ it needed that to point to the right dns.
- bthoven
- 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
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.
-
- 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
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.
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.
-
- 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
Also, remember that it takes up to 5 minutes for updates. check your cron jobs are correct, the path to the correct api.php...
-
- 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
OK now, https://bthofen.com/meteo/indexDesktop.php is working correctly and the other is not. You corrected a path I am guessing.
- bthoven
- 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
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.
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.
-
- 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
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.
-
- 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
I just re-read your message. Stick with the correct address to point to the dns server.
- bthoven
- 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
You mean I stick to the https://bthofen.com/meteo/api.php ?
-
- 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
https://bthofen.com/meteo/indexDesktop.phpbthoven wrote: ↑Fri Jan 31, 2020 7:20 amYou mean I stick to the https://bthofen.com/meteo/api.php ?
or just:
https://bthofen.com/meteo