A file:// url is based on your host filesystem namespace but a https:// url 
is based on the webserver docroot, so unless your webserver docroot is / 
which would be a massive security risk, you are trying to do two 
conflicting things.  Why not just run a local webserver and hit that url ?

On Thursday, May 22, 2025 at 4:55:19 PM UTC-7 Chuck Rhode wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've installed two extensions: SteelSeries Weather Gauges
> (https://github.com/gjr80/weewx-steelseries) and Rtgd
> (https://github.com/gjr80/weewx-realtime_gauge-data). A frequently
> updated gauges-data.txt file is found at public_html/. A
> less-frequently updated gauges-data.txt file is found at
> public_html/ss/.
>
> Both files are ftp'd to my web server, and — in fact — the page at
> https://lacusveris.com/Weather/ss/index.html does find the frequently
> updated gauges-data.txt file.
>
> The SteelSeries Weather Gauges Extension specifies (in
> ss/scripts/gauges.js) that, "The realtime files should be absolute
> paths, "/xxx.txt" refers to the public root of your web server," but
> the nearby specification:
>
> > realTimeUrlWeewx : 'gauge-data.txt'
>
> ... does not appear to be an absolute path. I suppose IT IS though.
>
> Of course, in weewx.conf [RealtimeGaugeData], rtgd_path is "Path to
> gauge-data.txt. Relative paths are relative to HTML_ROOT. If empty[,]
> HTML_ROOT is used."
>
> In summary, each of the two extensions has a specification for the
> path to the gauge-data.txt file, but one is absolute and one is
> relative. Is there some way I can write the ss/scripts/gauges.js
> specification so that gauge-data.txt can be found relative to
> HTML_ROOT? It doesn't look like it.
>
> I don't really want to hit my web server. Instead, I want to browse
> locally to file:///home/ccrhode/weewx-data/public_html/ss/index.html
> so that I can do away with my old Ambient USB console in favor of a
> new console-less Ecowitt WiFi gateway and still see near realtime
> indicators. Please tell me I'm being unreasonable.
>
> - -- 
> .. Be Seeing You,
> .. Chuck Rhode, Sheboygan, WI, USA
> .. Weather: https://LacusVeris.com/Wx
> .. 55° — Wind WNW at 13 mph. Sky overcast.
> -----BEGIN PGP SIGNATURE-----
>
> iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCaC+5VAAKCRBg2/xipKOW
> UqhyAJ9awNSwF3BcMUb2ov/bD6YyXpItqACdG5assettwh4uO+7kz5dWwlil6EI=
> =QzFE
> -----END PGP SIGNATURE-----
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/815ad7df-8959-45a3-91f2-f333dec05460n%40googlegroups.com.

Reply via email to