Code: Select all
var realTimeURL = "/public_html/Weather/realtimegauges.txt";
var imgPathURL = "/public_html/Weather/images/";
var oldGauges = "/public_html/Weather/gauges.htm";
Moderator: mcrossley
Code: Select all
var realTimeURL = "/public_html/Weather/realtimegauges.txt";
var imgPathURL = "/public_html/Weather/images/";
var oldGauges = "/public_html/Weather/gauges.htm";
Can you see here -> http://www.meteotortosa.cat/web3/wxgaugess.phpmcrossley wrote:
Anyone got 1.3.0 up and running yet? (about 25 downloads so far)
I have had a look and I cannot see anything wrong/different that may be causing it.GraemeT wrote:Mark,
v1.3.1 is now working for me, with 1 exception - Rainfall LCD is blank. v1.3.0 had the same problem?
http://weather.gktnet.com/gauges-ss_test.php
Otherwise, it looks good.
Cheers,
Code: Select all
v1.3.1Code: Select all
<body onload="init()">
<!-- Hidden span to force early .ttf font download, required for web servers that do not serve .woff files -->
<span style="visibility:hidden; font-family:LCDMono2Ultra">Dummy</span>
Code: Select all
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="scripts/tween.min.js"></script>
<script src="scripts/language.js"></script>
<script src="scripts/steelseries.js"></script>
<script src="scripts/gauges.js"></script>
<script src="scripts/ddimgtooltip.min.js"></script>
</html>
was all it took to display correctly on startup.Move the hidden div to preload the font to be the first thing in the body:
Thanks for the update Graeme. The <cr> thing is probably a consequence of switching to the JSON data format, thanks for providing a fix for your metar data.GraemeT wrote:One other 'trap for new players'...
If there is a carriage return character (0x0d) anywhere in the forecast string, the data download will fail, causing all gauges show no data, something that didn't occur before v1.3.0
This can occur if metar data is used, as each line output by mweather is terminated by a CR (0x0d).
For those interested, here's my updated metar.php script.
http://weather.gktnet.com/public/weathe ... cripts.zip
Thanks for the update George, I'll amend my HTML for the next release.gwheelo wrote:was all it took to display correctly on startup.Move the hidden div to preload the font to be the first thing in the body:
Thanks for the reply Steve, I knew I was doing something stupid. I notice now a helpful guide in v1.3.1R-II wrote:OK I may be being a bit stupid here... it is late but I appar to have a slight problem with the gauges part of my website not working properly
If I click "gauges" I get the old gauges displayed but if i type in a direct url to "gauges-ss.htm" it works fine, what have I done stupid![]()
Regards
Richard