cloudy cloudy

Author Topic: WXSIM "EWN-style"  (Read 11815 times)

0 Members and 1 Guest are viewing this topic.

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #15 on: February 14, 2017, 08:39:16 PM »
Okay, but if I close the browser and reopen it returns me to m/s, you could not configure it directly with km/h as you can do with the "short.php" file?
Thank you

For me do both Firefox and Chromium remember the settings OK.

Offline meteosa

  • Posts: 39
  • Italy
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
    • MeteoSantAngelo.it
Re: WXSIM "EWN-style"
« Reply #16 on: February 14, 2017, 08:58:18 PM »
For me do both Firefox and Chromium remember the settings OK.
Maybe because I when I close the browser deletes the cookie, it can be?
Thank you

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,682
  • 150 mls Candeglia (Pt), Tuscany, Italy
  • OS/Browser:
  • Win NT 10.0
  • Chrome 56.0.2924.87
    • Meteopistoia.it
Re: WXSIM "EWN-style"
« Reply #17 on: February 14, 2017, 10:09:40 PM »
Maybe because I when I close the browser deletes the cookie, it can be?
Thank you

Yes, sure!

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,682
  • 150 mls Candeglia (Pt), Tuscany, Italy
  • OS/Browser:
  • Win NT 10.0
  • Chrome 56.0.2924.87
    • Meteopistoia.it
Re: WXSIM "EWN-style"
« Reply #18 on: February 14, 2017, 10:14:48 PM »
Hi

$wxsimlocation     = "Ballaugh, Isle of Man";                 # Your location
$latitude = 54.31;
$longitude = -4.54;
$tzabb        = "Europe/Isle_of_Man";
$datestyle    = "d.m.Y";
$timeFormat = "d.m.Y H:i";          # Timeformat
$updatehrs = array(6,11,15,21);  # Hours when wxsim runs
$updateminute = 20;               # minutes past full hour for upload time
$jqueryload   = true;                             # Should we load JQuery? (Set to false if your site loads it by default)
$bootstrapload = true;                             # Should we load Bootstrap? (Set to false if your site loads it by default)
$mainwidth    = "100%";                           // Use 100% for responsivity

$path_to_langfiles = "/lang/";                   This is the only option that allowed the button options to work
#$path_to_lastret = "/home/web3/subdomains/data/wd/lastret.txt";
$path_to_lastret = "../lastret.txt";          This points to my root web folder where the wxsim folder is
$path_to_js = "js/";
$path_to_css = "css/";

if($wxsimtype=="forecast"){
  include __DIR__.'/frc.php';
}

These are all the paths I could find in the config file

Found these in plaintext.php
$pathtodata=str_replace("lastret.txt","",$path_to_lastret);
$pt = file($pathtodata."../../plaintext.txt");


not sure what I have missed

Harold


Hi Harold,
try these:

Code: [Select]
$path_to_langfiles = "lang/";
$path_to_lastret = "/home/yourusername/yourrootfolder/lastret.txt";
$path_to_js = "js/";
$path_to_css = "css/";

Have you lastret.txt uploads on root folder?
You shouldn't put lastret in wxsim folder......just simple to put it on root.

Same thing about lang folder.
Have you lang folder in wxsim folder?
If yes, try this setting:
Code: [Select]
$path_to_langfiles = "wxsim/lang/";
« Last Edit: February 15, 2017, 07:41:27 AM by i_fiorentino »

Bashy

  • Guest
Re: WXSIM "EWN-style"
« Reply #19 on: February 15, 2017, 05:46:31 AM »
Hi folks, i notice its just me, but i cannot find were to turn on my than 4 days for the icons along the top?

http://www.suffolkweather.info/wxsim-new/forecast.php
« Last Edit: February 15, 2017, 05:55:28 AM by Bashy »

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,682
  • 150 mls Candeglia (Pt), Tuscany, Italy
    • Meteopistoia.it
Re: WXSIM "EWN-style"
« Reply #20 on: February 15, 2017, 07:45:57 AM »
Hi folks, i notice its just me, but i cannot find were to turn on my than 4 days for the icons along the top?

http://www.suffolkweather.info/wxsim-new/forecast.php

Hi Bashy,
Wxsim-> parameters - > numbers of day



Alessandro

Bashy

  • Guest
Re: WXSIM "EWN-style"
« Reply #21 on: February 15, 2017, 07:49:28 AM »
Hi Bashy,
Wxsim-> parameters - > numbers of day
Alessandro

Thanks but thats already set to 9  :?

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,682
  • 150 mls Candeglia (Pt), Tuscany, Italy
    • Meteopistoia.it
Re: WXSIM "EWN-style"
« Reply #22 on: February 15, 2017, 08:10:27 AM »
Thanks but thats already set to 9  :?
Have you already checked wret?

Bashy

  • Guest
Re: WXSIM "EWN-style"
« Reply #23 on: February 15, 2017, 08:17:32 AM »
HI, it cant be wret either cause my other scripts are going to 9 days too :/

http://www.suffolkweather.info/index.php?p=918&lang=en

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #24 on: February 15, 2017, 09:12:52 AM »
Hi folks, i notice its just me, but i cannot find were to turn on my than 4 days for the icons along the top?

http://www.suffolkweather.info/wxsim-new/forecast.php

Bashy, check the lastret.txt and be sure it have 00:00 timestamps. If you post your lastret.txt can i run it in m y dev-version and see if there are any oddities.

Btw. I have rain-units working on my dev-version now.
I think i will also get it so it reads the default units from $uoms :)

Bashy

  • Guest
Re: WXSIM "EWN-style"
« Reply #25 on: February 15, 2017, 09:16:52 AM »
Thanks, here ya go, knowing me, it will be a rookie mistake ;) but this does work for your
other scripts :)

Bashy

  • Guest
Re: WXSIM "EWN-style"
« Reply #26 on: February 15, 2017, 09:21:11 AM »
ok, now im officially lost, that one i posted is 9 days, this one thats uploaded is only 3

http://www.suffolkweather.info/lastret.txt

Offline meteosa

  • Posts: 39
  • Italy
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
    • MeteoSantAngelo.it
Re: WXSIM "EWN-style"
« Reply #27 on: February 15, 2017, 01:46:09 PM »
Yes, sure!

Ok, and how can you solve? It's possible configure the file "config.php" to be able to put km/h defalut?
Thank you
« Last Edit: February 15, 2017, 01:48:41 PM by meteosa »

Bashy

  • Guest
Re: WXSIM "EWN-style"
« Reply #28 on: February 15, 2017, 01:50:29 PM »
Mine is working now for some reason, panic over, thanks anyway :)

Offline SteveFitz1

  • Posts: 141
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
    • Tyler Texas Weather
Re: WXSIM "EWN-style"
« Reply #29 on: February 15, 2017, 01:57:47 PM »
I think i will also get it so it reads the default units from $uoms :)

Thank you very much Henkka.

Steve

 

cumulus