Wxsim 3in1 script

Again, as always, the same cause for your missing graphs a.s.o.

Currently, All data shown on your page => the icons part and the overview tab => comes from plaintext.txt.

Problem: Your lastret.txt is read by the script but all lines are skipped as they are not on the hour. They are 5 or 35 minutes past the hour.

Also a problem: it is not the cause of the missing data but I think some of the needed fields are missing also.
Check the wret.png which is contained in your script download.
That png shows which settings should be set in wret.exe in your wxsim folder correctly.

Wim


Thank you very much. I will go true everything all over again. But now I have something to check even moore.

Best regards
Jan-Ove

Hi!
Thank you so much Wim for your help. Now it’s working. :smiley: :smiley: :signthanks:

Best regards
Jan-Ove

Hi guys,
i’ve manage to insert graphic wxsim icon only on my home page.
But it shows black icons.
Do you know something about this issue?
I’ve used an include_one function, while if i use an iframe, all work as it should.
Link: http://newsite.meteocarmignano.it
Link to graphic icons only: http://newsite.meteocarmignano.it/previsioni-pistoia.php

Thanks for your support.
Regards,

Alessandro

The link to the stylesheet is missing.

<link rel="stylesheet" type="text/css" media="screen" href="./wxsim_wxall/css/wxall.css" />

When you use an iframe all needed information is included. When you want to do it your way you have to add that css to the thead section of your page.
Wim

Thanks for your quick reply.
In which file have you tried the link to styleshhet?

Should i put css file on the root?

That line of code should go into the <head section of the main page http://newsite.meteocarmignano.it

With the normal 3in1 scripts such as sivu2.php and probably your http://newsite.meteocarmignano.it/previsioni-pistoia.php the needed lines are generated with

echo $wxallhead;

You can not use that with a <div so you have to manualy copy the link of the css to the head section of your main script.

This is from the readme:

On every page where 3in1 are used are this needed in header inside and : <?php $lang = $_GET[lang]; // not nessessary in Saratoga Templates where $lang defined include 'wxall.settings.php'; echo $wxsimhead; ?>
But instead of this you can write that one line yourself.

Wim

Hi Wim,
thanks for your patience :slight_smile:
I’ve put this string:

<link rel="stylesheet" type="text/css" media="screen" href="/home/byoryrxn/newsite/wxsim_wxall/css/wxall.css" />

on header section of my site.
Result is the same :frowning:

Fixed!!!
Thank you so much Wim !!!

Hi!
This time I wounder about the icons in the top. I have read all posts but cant find any answer. The icons show snow but here is nearly 10


[quote author=janove link=topic=47139.msg512647#msg512647 date=1479402843]
Hi!
This time I wounder about the icons in the top. I have read all posts but cant find any answer. The icons show snow but here is nearly 10


Hi,
I check the settings and there was no C so I changed it and now it works perfect.
Thank you very much for your help Wim. :signthanks: :occasion5:

Best regards
Jan-Ove

Hi guys,
do you know where could i fix degrees symbol?

http://i.imgur.com/1wAOuCU.png

On the popup shows ok but not in graphics window.
Thanks in advance.
Regards,

Alessandro

Alessandro,

I just made this correction on my site.

First off, I use NotePad ++ as my editor. This allows me the option to save a file with encoding of UTF-8.

Open wxsim.js, then set encoding to UTF-8. I found 5 instances of the degree symbol in wxsim.js. The first is on line 121 in my wxsim.js and is
var temptitle = "

[quote author=SteveFitz1 link=topic=47139.msg515976#msg515976 date=1484058660]
Alessandro,

I just made this correction on my site.

First off, I use NotePad ++ as my editor. This allows me the option to save a file with encoding of UTF-8.

Open wxsim.js, then set encoding to UTF-8. I found 5 instances of the degree symbol in wxsim.js. The first is on line 121 in my wxsim.js and is
var temptitle = "

Alessandro,

Glad that worked. The ‘xB2’ is for the Superscript 2. Just replace the ‘xB2’ in the same way you did the ‘xB0’ but use 0178 instead of 0176.

Steve

Thank you so much Steve!
Regards,

Alessandro

Inviato dal mio SM-G900F utilizzando Tapatalk

Hello,

My old weather computer was crashing a lot. I set up a new system and configured WXSIM the same (I think) as my old computer.

Things that are not going in 3in1 is the top graph, hour by hour, etc. and I believe these come from lastret.txt

I have not touched anything on the web server
Everything worked fine before the new computer
lastret.txt is uploading

Obviously, I have done or not done something in my configuring of WXSIM / WRET but I cannot see anything.

Any ideas what may be wrong?

Thanks

Gary

Greetings to all

Following a change of computer and operating system (Windows10), the wxsim_3en1 graphic has stopped working.

This is the configuration code of the script:

# Settingsfile for combined 3in1 V.4.1
ini_set('display_errors', '1');

# Paths
$wxallmainfolder = './';							# Location of 3in1 scripts RELATIVE to page where shown

# Full paths

$wxallmainfolderfull = './';
$plaintextfolderfull = './';
$lastretfile = "lastret.txt";
$plaintextfile = 'plaintext.txt';
# For easier debugging, ignore theese two ;)
//$lastretfile = '/home/web3/httpdocs/test/wxsim/lastret.txt';
#$plaintextfile = '/var/www/vhosts/nordicweather.net/httpdocs/test/wxsim/plaintext.txt';
$wxallwindicondir = "../wxsim_wxall/img/barbs2/";
#$wxallicondir = "http://www.johnsnhweather.com/wxsim_wxall/img/dotvoid_30/";
$wxallicondir = "../wxsim_wxall/img/ic30/";
# Timesettings
$timezone = "Europe/Madrid";      # Your timezone
$lat = 43.311572;                     # Your latitude
$long = -2.014667;										# Your longitude
$zenith = 90+40/60;                 # Zenit-setting for php suntimes
$timeFormat = "d.m.Y H:i";          # Timeformat
$updatehrs = array(03,08,15,20);  # Hours when wxsim runs
$uploadupdate = 10; 	              # minutes past full hour for upload time

These are the addresses of plaintext.txt and lastret.txt, which are in the same directory as the script:

http://kocher.es/wxsim_3en1/plaintext.txt

http://kocher.es/wxsim_3en1/lastret.txt

I would like to know if the file lastret.txt is correct

(I just discovered that in the configuration of WXSIM and WRET I have different number of forecast days (6 and 7 days).

I just solved this error and, we will see if it is solved in the next update)

The solution was in the WXSIMATE configuration:

Customize >> Archivied data time settings:

From:

   - Use 0 minutes before hour (best in much of world)

TO:
- Use 5 minutes before hour (best in U.S.)

             [http://kocher.es/previsiones_nuevo.php](http://kocher.es/previsiones_nuevo.php)