template hosting problem

Post Reply
evetsmd
Observer
Observer
Posts: 11
Joined: Fri Dec 01, 2017 4:17 pm
Station model: Davis Pro2, Model 6153
Software: Weather Display

template hosting problem

Post by evetsmd » Sat Dec 16, 2017 2:13 pm

does the template only function in the root directory of your host server.......I have tried to run the template from a folder in the root and the pages don't load properly.......my ISP says it's my problem.....

Thanks for any help!

Steve

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: template hosting problem

Post by Jachym » Sat Dec 16, 2017 2:57 pm

Hi Steve,
it runs perfectly fine from a folder and I would even recommend doing so, on Linux servers it does not work properly in root (icons). Make sure you have the path correct.

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: template hosting problem

Post by meteocaldas » Sat Dec 16, 2017 3:59 pm

Jachym wrote: Sat Dec 16, 2017 2:57 pm Hi Steve,
it runs perfectly fine from a folder and I would even recommend doing so, on Linux servers it does not work properly in root (icons).
Hi Jachym, I was planning to move MT to the root of my server, so the users will just need to type meteocaldas.com instead of meteocaldas.com/mtp.
My idea was to make MT the entrance of the site, so now I m a little confused.
Is there a way that users simply tipe meteocaldas.com and enter MT right away, without MT beeing on the root?
Thanks

Image

http://www.meteocaldas.com/mtp

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: template hosting problem

Post by Jachym » Sat Dec 16, 2017 6:04 pm

download this file, change the extension from .txt to .html and save it as index.html in your server root.
Before you do it, change the "template" inside that file to the name of the folder you use (mtp)

http://www.meteotemplate.com/web/wiki/index.txt

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: template hosting problem

Post by meteocaldas » Sat Dec 16, 2017 11:19 pm

Jachym wrote: Sat Dec 16, 2017 6:04 pm download this file, change the extension from .txt to .html and save it as index.html in your server root.
Before you do it, change the "template" inside that file to the name of the folder you use (mtp)

http://www.meteotemplate.com/web/wiki/index.txt
Thank you sooooo much Jachym!
It worked like a charm... and I never thought it could be so easy :D
You are a genius!

(I am not leaving it working by now, because former index.htm was from Cumulus and now I want to transfer all cumulus files to a different folder and update all the old links to realtime.txt... and to avoid any probems, I first need to create a backup and study the problem a little better, etc, etc.) :-)

Once again thank you so much for this fantastic way to solve my problem!

Image

ChrisBoom
Observer
Observer
Posts: 20
Joined: Fri Dec 01, 2017 11:38 am
Station model: Davis Vantage Pro 2
Software: Meteobridge

Re: template hosting problem

Post by ChrisBoom » Thu Dec 21, 2017 4:59 pm

Thanks Jachym, the small forwarding file works much faster than the internal forwarding settings of my ISP, which randomly kills CSS for (equally random) files.

evetsmd
Observer
Observer
Posts: 11
Joined: Fri Dec 01, 2017 4:17 pm
Station model: Davis Pro2, Model 6153
Software: Weather Display

Re: template hosting problem

Post by evetsmd » Tue Jan 02, 2018 1:01 pm

Jachym.....Happy New Year.....

quote"it runs perfectly fine from a folder and I would even recommend doing so, on Linux servers it does not work properly in root (icons). Make sure you have the path correct."quote

I'm back on this issue again....I believe my ISP is using Linux Servers and I'd like to have meteotemplate work from within a folder on my root.....

Can u help me with how the path needs to be setup....right now I hv meteo setup in a folder called "meteo"

where do I set the path and what should the path look like....

Thanks for the help
Steve

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: template hosting problem

Post by jay_hoehn » Tue Jan 02, 2018 4:48 pm

Steve,

Have you done the initial setup? As you follow down the setup page there is a place to set the path. If your meteo folder is one step below the root then enter /meteo/ Under that just put the URL of your site leaving off the /meteo/.

Jay

evetsmd
Observer
Observer
Posts: 11
Joined: Fri Dec 01, 2017 4:17 pm
Station model: Davis Pro2, Model 6153
Software: Weather Display

Re: template hosting problem

Post by evetsmd » Tue Jan 02, 2018 5:15 pm

Thanks Jay....I think I have it under control

http://www.bwsrh.com/meteo/indexDesktop.php

Happy New Year

Steve

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: template hosting problem

Post by jay_hoehn » Tue Jan 02, 2018 5:34 pm

Great, Steve. Good start to the site.
Happy New Year to you.
Jay

evetsmd
Observer
Observer
Posts: 11
Joined: Fri Dec 01, 2017 4:17 pm
Station model: Davis Pro2, Model 6153
Software: Weather Display

Re: template hosting problem

Post by evetsmd » Tue Jan 02, 2018 6:09 pm

Thanks Jay....problem now is my "current conditions" shows offline....I would guess that it's not seeing my clientraw file from WD.....I can't remember where in MT if I need to set a path for MT to go get the clientraw file....

I know it's uploading to my ISP because my original wx website is working OK www.bwsrh.com

any ideas...thanks

Steve

evetsmd
Observer
Observer
Posts: 11
Joined: Fri Dec 01, 2017 4:17 pm
Station model: Davis Pro2, Model 6153
Software: Weather Display

Re: template hosting problem

Post by evetsmd » Tue Jan 02, 2018 6:15 pm

Hi Jay....I got it....needed to update the api folder in Weather Display.....I should have remembered that!

Thanks

Steve

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: template hosting problem

Post by jay_hoehn » Tue Jan 02, 2018 8:02 pm

Steve,

Glad you got it sorted. Are you using the WD MeteoTemplate API upload?

Jay

evetsmd
Observer
Observer
Posts: 11
Joined: Fri Dec 01, 2017 4:17 pm
Station model: Davis Pro2, Model 6153
Software: Weather Display

Re: template hosting problem

Post by evetsmd » Tue Jan 02, 2018 10:44 pm

Yes it seems to work well...

http://www.bwsrh.com/meteo/indexDesktop.php

next step is to upgrade to 17...I need to find what it takes to do that.... there may also be a bugfix
that was done on 16 that I think I need to do before the upgrade to 17...not sure I fully understand this process.
thought I remember reading that each fix or update has instructions in the zip but I'm missing it somewhere...

Appreciate ur help..... thanks

Steve

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: template hosting problem

Post by jay_hoehn » Tue Jan 02, 2018 10:58 pm

Steve,
Here is a link to the instructions to upgrade:
http://meteotemplate.com/blog/?p=3549

Here is the link to get a download token:
http://www.meteotemplate.com/web/download.php

Make sure you request an update token.

Jay

User avatar
Ken Good
Advisor
Advisor
Posts: 62
Joined: Thu Dec 28, 2017 4:10 am
Location: Tyler, Texas
Station model: Davis Vantage Pro 2 Plus
Software: Meteobridge
Contact:

Re: template hosting problem

Post by Ken Good » Fri Jan 05, 2018 3:41 am

Jachym wrote: Sat Dec 16, 2017 6:04 pm download this file, change the extension from .txt to .html and save it as index.html in your server root.
Before you do it, change the "template" inside that file to the name of the folder you use (mtp)

http://www.meteotemplate.com/web/wiki/index.txt
I was having a similar issue whereby my web page was not loading correctly when the web address was entered as "www" instead of "http." The home icon would be missing and there would be weird random letters or numbers in places. It was driving me crazy. It was a little frustrating. If I just entered the address as "BullardWeather.com" without anything else it was fine. I believe I fixed the issue using the text file referenced. I made one small change.

<meta http-equiv="refresh" content="0;url=http://BullardWeather.com/template/index.php" />

This forced every address entered to be converted to the simple "BullardWeather.com address with the new folder added. So far any variation is changed and works fine.
Image

pascalg21
Newbie
Newbie
Posts: 5
Joined: Thu Jan 18, 2018 7:59 pm
Station model: Davis pro 2
Software: weatherlink ip

Re: template hosting problem

Post by pascalg21 » Sun Feb 25, 2018 6:07 pm

Hello,
I have the same problem as you
I tried your site the problem is still there with the www address :oops:
ok avec http:://

User avatar
ea7gt
Observer
Observer
Posts: 10
Joined: Thu Feb 22, 2018 8:43 am
Location: Frigiliana
Station model: WMR-180
Software: Weather Display
Contact:

Re: template hosting problem

Post by ea7gt » Mon Feb 26, 2018 12:52 pm

Jachym wrote: Sat Dec 16, 2017 2:57 pm Hi Steve,
it runs perfectly fine from a folder and I would even recommend doing so, on Linux servers it does not work properly in root (icons). Make sure you have the path correct.
I originally installed meteotemplate on a folder with no problems, then I decided to move to the root of a new hosting with domain and had a problem with the icons folder (404 error). Then I moved the template to a subfolder (eltiempo) and ask to the server for the problem with the icons folder and they fixed it. In this moment the template still in the eltiempo folder, redirected with a index.html but I think am going to move everything to the root only for a cosmetic reason of the URL showed in address bar.

Besides icons folder, is there any other trouble installing template on root?

Post Reply