Author Topic: Problems with file path  (Read 704 times)

0 Members and 1 Guest are viewing this topic.

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Problems with file path
« on: August 14, 2021, 10:39:44 AM »
I have installed WeeWx on Linux Mint and have set it to simulator until I collect and connect the Vantage Vue that I have been given.
My main website is using my Pro2 plus, so I created a folder weewx to upload the data.
I filled in the weewx.conf as below

# If you wish to use FTP, set "enable" to "true", then
# fill out the next four lines.
# Use quotes around passwords to guard against parsing errors.
enable = true
user = user
password = password
server = www.mywebsite.com    # The ftp server name, e.g, www.myserver.org
path = /weewx    # The destination directory, e.g., /weather

But instead of it coming out as www.mywebsite.com/weewx I found it in the following structure.

public_ftp
public_html
ssl
tmp
weewx

Slight oops there, but what should I put as my path please. I do not want to be messing up my main website.
At least I know the user/password details were correct!

Offline vreihen

  • El Niņo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: Problems with file path
« Reply #1 on: August 14, 2021, 11:51:42 AM »
That sounds like a shared hosting issue.  Try /public_html/weewx for the path, which should map to /weewx for the web server.....
WU Gold Stars for everyone! :lol:

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Re: Problems with file path
« Reply #2 on: August 14, 2021, 12:10:00 PM »
Thank you, that works.

As the output is very basic, no css, can I just change skin = Ftp to skin = Seasons?

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3298
Re: Problems with file path
« Reply #3 on: August 14, 2021, 12:42:41 PM »
The FTP will upload what it finds at your standard HTML root
see below examples - the paths will have to be your paths on your weewx local server  8-)
while my html root path is /var/weewx/reports, yours might be /var/www/html/weewx

e.g.

[StdReport]
   
    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins
   
    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/weewx/reports
   
the html files of the skin which is enabled and has no special HTML root indicated, will be uploaded from this directory

e.g.
 [[simple]]         # under [StdReport] 
        skin = simple   
# would put only the simple html files there - and that's what the FTP will upload to your web site

if your Seasons skin points somewhere else
e.g.
[[SeasonsReport]]   # under [StdReport]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = true
       HTML_root=/var/weewx/reports/Seasons

then the Seasons skin html files will be there inside this directory

for FTP to upload them, you would have to tell FTP where = add the HTML_root information to the FTP entry
e.g.
[[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp
       
        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true
        user = username
        password = password
        server = domainname.tld    # The ftp server name, e.g, www.myserver.org
        path = /public_html/weewx    # The destination directory, e.g., /weather
       
        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False
       
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        HTML_ROOT = /var/weewx/reports/Seasons
       
        # Most FTP servers use port 21
        port = 21
       
        # Set to 1 to use passive mode, zero for active mode
        passive = 1

#with this blue highlighted entry FTP now knows where to pick up the files it posts to your web site
« Last Edit: August 14, 2021, 12:44:54 PM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Re: Problems with file path
« Reply #4 on: August 14, 2021, 01:34:32 PM »
Thank you Gyvate, now I am starting to understand.
The fun will start when I try to connect a real weather station!

 

anything