Page 1 of 1
Copy a working folder to another one, now not report current weather
Posted: Thu Jan 30, 2020 1:57 am
by bthoven
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
Re: Copy a working folder to another one, now not report current weather
Posted: Thu Jan 30, 2020 11:16 am
by Asobig
The current block shows a massage: API file not found.
Perhaps you can find the problem in "Check for problems" in the Control Panel.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 12:51 am
by andyk1
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
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 3:16 am
by bthoven
Thanks. The path (/meteo/) and website is right (https:bthofen.com)
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 4:16 am
by andyk1
(https:bthofen.com)
https://www.bthofen.com right?
www
Something is wrong. I can't get to that domain.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 4:22 am
by andyk1
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
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 4:31 am
by andyk1
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.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 5:12 am
by bthoven
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.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:01 am
by andyk1
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.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:08 am
by andyk1
Also, remember that it takes up to 5 minutes for updates. check your cron jobs are correct, the path to the correct api.php...
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:11 am
by andyk1
OK now,
https://bthofen.com/meteo/indexDesktop.php is working correctly and the other is not. You corrected a path I am guessing.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:16 am
by bthoven
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.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:21 am
by andyk1
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.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:28 am
by andyk1
I just re-read your message. Stick with the correct address to point to the dns server.
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 7:20 am
by bthoven
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 ?
Re: Copy a working folder to another one, now not report current weather
Posted: Fri Jan 31, 2020 6:59 pm
by andyk1