FinWX Foorumi
torstai, 09.02.2012, 01:58 *
Tervetuloa, Vieras. Ole hyvä ja kirjaudu tai rekisteröidy.
Jäikö aktivointi sähköposti saamatta?

Kirjaudu käyttäjätunnuksen, salasanan ja istunnonpituuden mukaan
Uutiset:
04.02.2012
FinWX-asemien lukumäärässä tuli nyt 60 täyteen!!

Toivotamme lämpimästi tervetulleeksi FinWX Valkeakoski-72:n!!
Sääasema on Länsi-Suomen läänin 19. FinWX-jäsenasema.
Lue uudesta sääasemasta lisää täältä

Tervetuloa mukaan!!
 
   Etusivu   Ohjeet Haku Kalenteri Kirjaudu Rekisteröidy  
Sivuja: 1 [2] 3 4 ... 6
  Tulostusversio  
Kirjoittaja Aihe: Sivut muuttavat!  (Luettu 2167 kertaa)
0 jäsentä ja 1 vieras katselee tätä aihetta.
teutari
Taso ei enää mitattavissa
*****
Poissa Poissa

Viestejä: 965


WWW
« Vastaus #10 : sunnuntai, 26.07.2009, 07:08 »

1. Siinä Zip-paketissa on WD-webfiles kansio ja siellä testtag.txt tiedosto, kopio se koneellasi olevaan WD-sääohjelman webfiles kansioon.

2. WD, Control Panel, Internet File Creation & Uploads, Setup Page#2 TAB

   Laita päälle file#29 (Special custom file conversion) molempiin 5min. ajastus.


Tuossa alhaalla on sivujen tärkeimmät asetukset jossa joudut Setting.php:ssa muuttamaan muutamia tietoja: organ, copyr, location, cityname, latitude + longitude.
Takista ajaxWDwx.js ja ajax-dashboard.php tärkeimmät koodit.(pitäisi olla noin kuin tuossa alhaalla)

Setting.php
Koodia:
# Configurable Carterlake/WD/PHP template Site Settings
############################################################################
$SITE['WXtags'] = 'testtags.php';  // for testtags.php weather variables
$SITE['organ'] = 'World Multilingual Website with WD/PHP & AJAX';
$SITE['copyr'] = 'Copyright © 2003-' . date("Y",time()) . ', Teutari.net';
$SITE['remote'] = "onclick=\"window.open(this.href,'_blank');return false;\"";
$SITE['tz'] = 'Europe/Helsinki'; //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  http://saratoga-weather.org/timezone.txt  has the list of timezone names
//  pick the one that is closest to your location and put in $ourTZ like:
//    $ourTZ = 'America/Los_Angeles';  // or
//    $ourTZ = 'Europe/Brussels';
$SITE['location']       = 'N 60°08.953  E 23°58.379';
$SITE['email'] = '';
# Weather Station sensors
$SITE['DavisVP'] = false;  // set to false if not a Davis VP weather station
$SITE['UV']         = true;  // set to false if no UV sensor
$SITE['SOLAR'] = true;  // set to false if no Solar sensor
$SITE['showSnow'] = false;   // set to false if snow not recorded on WD
$SITE['showSnowTemp'] = 4;   // show snow instead of rain if temp (C) is <= this amount
# Station location: latitude, longitude, cityname
$SITE['latitude'] = '60.1493';    //North=positive, South=negative decimal degrees
$SITE['longitude'] = '23.9727';  //East=positive, West=negative decimal degrees
$SITE['cityname'] = 'Lohja';
#
#Forecast script settings area
#
$SITE['UVscript'] = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
// comment out above line to exclude UV forecast
//
# if you have WXSIM and plaintext-parser.php, set $SITE['WXSIM'] = true;
# to have the WXSIM forecast text appear in the dashboard along with your primary forecast org's
# forecast. 
$SITE['WXSIM'] = false;  // Set to false if no WXSIM/plaintext-parser.php
$SITE['WXSIMscript'] = 'plaintext-parser.php'; // script for decoding plaintext.txt into icons
$SITE['defaultlang'] = 'en';   // 'en' for English (WXSIM plaintext-parser.php)

# fcsturlWU  the Wunderground URL for the non-US/non-Canadian forecasts (WU-forecast.php)
$SITE['fcsturlWU'] = 'http://www.wunderground.com/global/stations/02984.html'; // Awhitu, Waiuku New Zealand

$SITE['fcsticonsdir'] = './forecast/images/';
// NOAA-style icons for NWS, WU, WXSIM forecast scripts
#
#---- in the following section, enable settings for ONE primary forecast organization
# pick which script AND org are to be used for your forecast here: (last uncommented pair will
#  be the ones used on the wxforecast.php page and in your dashboard and sidebar

$SITE['fcstscript'] = 'WU-forecast.php';    // Non-USA, Non-Canada Wunderground Forecast Script
$SITE['fcstorg'] = 'WU';    // set to 'WU' for WeatherUnderground

#$SITE['fcstscript'] = 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
#$SITE['fcstorg'] = 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

###########################################################################

# ajax-dashboard, ajax-sidebar settings (will override defaults in
#  the scripts themselves when included in this site
###########################################################################
$SITE['WDdateMDY'] = false; // for WD date format of month/day/year.  =false for day/month/year
$SITE['uomTemp'] = '&deg;C';
$SITE['uomBaro'] = ' hPa';
$SITE['uomWind'] = ' m/s';
$SITE['uomRain'] = ' mm';
$SITE['uomDistance'] = ' km';  // or ' miles' -- used for Wind Run display
$SITE['uomPerHour'] = '/hr';
$SITE['imagesDir'] = './ajax-images/';  // directory for ajax-images with trailing slash
# note: date format used for PHP parts only.  Weather-Display dates are not processed
#   except on the astronomy page
#$SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

#$SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd/m/Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format

##########################################################################
# end of configurable settings

ajaxWDwx.js
Koodia:
// -- begin settings --------------------------------------------------------------------------
var flashcolor = '#00CC00'; // color to flash for changed observations RGB
var flashtime  = 2000;       // miliseconds to keep flash color on (2000 = 2 seconds);
var reloadTime = 5000;       // reload AJAX conditions every 5 seconds (= 5000 ms)
var maxupdates = 0;          // Maxium Number of updates allowed (set to zero for unlimited)
                             // maxupdates * reloadTime / 1000 = number of seconds to update
var clientrawFile = '/clientraw.txt'; // location of clientraw.txt relative to this page on website
var ajaxLoaderInBody = false; // set to true if you have <body onload="ajaxLoader(..."
var imagedir = './ajax-images';  // place for wind arrows, rising/falling arrows, etc.
var useunits = 'M';         // 'E'=USA(English) or 'M'=Metric
var useKnots = false;       // set to true to use wind speed in Knots (otherwise
// wind in km/hr for Metric or mph for English will be used.
var useMPS   = true;       // set to true for meters/second for metric wind speeds, false= km/h
var useMPH   = false;       // set to true to force MPH for both English and Metric units
var useFeet  = false;       // set to true to force Feet for height in both English and Metric
var showUnits = true;       //  set to false if no units are to be displayed
var thermometer = './thermometer.php'; // script for dynamic thermometer PNG image (optional)
// optional settings for the Wind Rose graphic in ajaxwindiconwr as wrName + winddir + wrType
var wrName   = 'wr-';       // first part of the graphic filename (followed by winddir to complete it)
var wrType   = '.png';      // extension of the graphic filename
var wrHeight = '58';        // windrose graphic height=
var wrWidth  = '58';        // windrose graphic width=
var wrCalm   = 'wr-calm.png';  // set to full name of graphic for calm display ('wr-calm.gif')
// -- end of settings -------------------------------------------------------------------------

ajax-dashboard.php
Koodia:
// --- settings for standalone use --------------------------
$Lang    = 'en';
$uomTemp = '&deg;F';
$uomBaro = ' inHg';
$uomWind = ' mph';
$uomRain = ' in';
$uomPerHour = '/hr';
$imagesDir = './ajax-images/';  // directory for ajax-images with trailing slash
//  $timeFormat = 'D, d-M-Y g:ia T';  // Fri, 31-Mar-2006 6:35pm TZone
$timeFormat = 'd-M-Y g:ia';  // Fri, 31-Mar-2006 6:35pm TZone
$timeOnlyFormat = 'g:ia';    // h:mm[am|pm];
//$timeOnlyFormat = 'H:i';     // hh:mm
$dateOnlyFormat = 'd-M-Y';   // d-Mon-YYYY
$WDdateMDY = false;     // true=dates by WD are 'month/day/year'
//                     // false=dates by WD are 'day/month/year'

$ourTZ = "Europe/Helsinki";  //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//
// optional settings for the Wind Rose graphic in ajaxwindiconwr as wrName . winddir . wrType
$wrName   = 'wr-';       // first part of the graphic filename (followed by winddir to complete it)
$wrType   = '.png';      // extension of the graphic filename
$wrHeight = '58';        // windrose graphic height=
$wrWidth  = '58';        // windrose graphic width=
$wrCalm   = 'wr-calm.png';  // set to full name of graphic for calm display ('wr-calm.gif')
$haveUV   = true;        // set to false if no UV sensor
$haveSolar = true;       // set to false if no Solar sensor
$WXtags  =  'testtags.php';  // source of our weather variables
$fcstorg =   'NWS'; // default forecast organization ('NWS','EC','WU','WXSIM')
$fcstscript = 'advforecast2.php'; // default forecast script
//            NWS - 'advforecast2.php', EC - 'ec-forecast.php',
//            WU - 'WU-forecast.php', WXSIM - 'plaintext-parser.php',
$UVscript = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
// comment out above line to exclude UV forecast
$DavisVP = false; // set to false if weather station is not a Davis VP
$showSnow = true; // set to false if Snow values not recorded manually in WD
$showSnowTemp = 4; // display Snow instead of Rain when temp (C) is <= this temperature.
// --- end of settings for standalone use

Ehkä noista on jotakin apua?
tallennettu



Davis Vantage Pro2 Plus (cabled)
Pentium Dual-Core E5700 3.00GHz/4GHz/Win XP Pro.
teutari
Taso ei enää mitattavissa
*****
Poissa Poissa

Viestejä: 965


WWW
« Vastaus #11 : sunnuntai, 26.07.2009, 07:22 »

Tuossa on kuvat kuinka minulla on WD, Control Panel, Internet File Creation & Uploads asetukset millä sivut toimivat.(olen ottanut kaikki turhat lähettämiset pois)



* Page1.png (21.13 kilotavua, 584x606 - tarkasteltu 32 kertaa.)

* Page2.png (24.19 kilotavua, 588x716 - tarkasteltu 29 kertaa.)
tallennettu



Davis Vantage Pro2 Plus (cabled)
Pentium Dual-Core E5700 3.00GHz/4GHz/Win XP Pro.
jamo
Moderaattori
*****
Poissa Poissa

Viestejä: 271



WWW
« Vastaus #12 : sunnuntai, 26.07.2009, 10:42 »

Noniin toimii, kiitos kaikille.
Puuttuva palanen oli testtags.txt -tiedoston puuttuminen webfiles kansiosta.

jamo
tallennettu

weatherc
Foorumin Yleismoderaattori
*****
Poissa Poissa

Viestejä: 4275


« Vastaus #13 : sunnuntai, 26.07.2009, 13:02 »

Hieno homma!  Virnist&#228;&#228;

Seuraavaksi, nyt kun olet päässyt vauhtiin, koitetaanko saada tuo tutkakuva mahtumaan tuon templaten sisään, nythän se karkaa aika ikävästi tuonne oikealle? Iskee silm&#228;&#228;
tallennettu

jamo
Moderaattori
*****
Poissa Poissa

Viestejä: 271



WWW
« Vastaus #14 : sunnuntai, 26.07.2009, 13:22 »

Hieno homma!  Virnist&#228;&#228;

Seuraavaksi, nyt kun olet päässyt vauhtiin, koitetaanko saada tuo tutkakuva mahtumaan tuon templaten sisään, nythän se karkaa aika ikävästi tuonne oikealle? Iskee silm&#228;&#228;

Jo vain se passaa, mites se tehdään?
Yksi asia minkä huomasin niin etusivulla fi versiossa tuuli -kohdassa kuvake ei näy, mutta en versiossa näkyy  Huh

jamo
tallennettu

weatherc
Foorumin Yleismoderaattori
*****
Poissa Poissa

Viestejä: 4275


« Vastaus #15 : sunnuntai, 26.07.2009, 13:33 »

Lainaus
Jo vain se passaa, mites se tehdään?

Otetaan tuo mun NSDisplay:n uusi versio (eli se mikä näkyy mun tutkasivulla) ja laitetaan se siihen, se mahtuu sellaisenaan noin 850px aukkoon, käyttäen tuota isoampaa Nexstormin karttaa, eli vaatii "kokonäytön" päälle siinä templatessa, sehän sulla on jo oletuksena.
 
Se ei nyt ole ihan valmis varsinaista julkaisua varten vielä mutta voisin kasata siitä sellaisen pre-julkaisun sekä ohjeet tänne foorumille.
tallennettu

weatherc
Foorumin Yleismoderaattori
*****
Poissa Poissa

Viestejä: 4275


« Vastaus #16 : sunnuntai, 26.07.2009, 16:29 »

Lainaus
Jo vain se passaa, mites se tehdään?

Alkeelliset ohjeet löytyy tuolta: http://www.finwx.net/forum/index.php/topic,1081.0.html  Virnist&#228;&#228;
tallennettu

teutari
Taso ei enää mitattavissa
*****
Poissa Poissa

Viestejä: 965


WWW
« Vastaus #17 : sunnuntai, 26.07.2009, 17:27 »

Yksi asia minkä huomasin niin etusivulla fi versiossa tuuli -kohdassa kuvake ei näy, mutta en versiossa näkyy  Huh
jamo

Tuo Tyyntä esittävä tuuliruusukuva wr-fi-calm.png näyttää toimivan mutta muut eivät joten tuntuisi että niitä ei ole siellä palvelimella tai ne ovat vioittuneet?
Tarkista sieltä palvelimen ajax-images kansiosta onko siellä kaikki fi-tuuliruusukuvakkeet( wr-fi-calm.png, wr-fi-E.png, wr-fi-ENE.png, jne. kaikkiaan niitä pitäisi olla siellä .png kuvina 17 kpl n. 2.5kt kokoisina)
Voisit lähettää ne sinne ajax-images kansioon .png fi-tuuliruusukuvakkeet uudelleen ftp:llä binäärimuodossa jos se auttaisi.

Samoiten näyttää että tuosta ajax-dashboard.php sivulta puuttu nuo forecast kuvakkeet jos ne haluaa niin ne pitäisi ladata sieltä KENin sivuilta( Carterlake-icons) ja laittaa se koko forecast-kansio sinne palvelimelle.
tallennettu



Davis Vantage Pro2 Plus (cabled)
Pentium Dual-Core E5700 3.00GHz/4GHz/Win XP Pro.
jamo
Moderaattori
*****
Poissa Poissa

Viestejä: 271



WWW
« Vastaus #18 : sunnuntai, 26.07.2009, 20:09 »

Kyllä tässä tulee mieleen vanha Suomalainen sanonta: If It Works, Don't Fix It
Olisikohan pitänyt pysyä vanhoissa sivuissa  J&#228;rkyttynyt
No kuitenkin teutarin vinkeistä ei ollut apua ja weatherc:n opit eivät tänne jysähtäneet  Surullinen
http://www.liminkaweather.info/wxtracker.php
Eli ei mene koneelta nuo tiedostot tuonne palvelimelle, syytä en tiedä.

jamo


* nslog.JPG (39.12 kilotavua, 827x466 - tarkasteltu 27 kertaa.)
tallennettu

weatherc
Foorumin Yleismoderaattori
*****
Poissa Poissa

Viestejä: 4275


« Vastaus #19 : sunnuntai, 26.07.2009, 20:55 »

Älä hermostu Hymyilee
Olet jo päässyt pitkälle, enää on se tunnettu hienosäätö  Virnist&#228;&#228;
Tuo on hyvä alku tutkasivulle (samalla tuli todetua että itse näyttö toimii tuossa templatessa niinkun pitääkin).

Ahaa...Nyt muistin..Nexstormin Optionsvalikosta->FlashGate IPC, valitse molemmat ja käynnistä NSLog uudelleen jotta se löytää ne, tällöin pitäisi data ruvet tulemaan.

Seuraavaksi, valitse NSLogista Config-välilehti ja laita hetkeksi (muutama minuutti) Log FTP transfers päälle. Sen jälkeen NSLog-kansioon ilmestyy tiedosto nimeltään NSFtplog.txt, mitä se kertoo?
Tältä se pitäisi näyttää jättäen ylimmän rivin pois:
Lainaus
01:27:17  Connection established
01:27:18  Starting FTP transfer
>>>>>>>>  Uploading NSRealtime.txt 118 bytes
01:27:18  Transfer complete
01:27:18  Disconnected.

Voit vaihtoehtoisesti kokeilla laittaa IP-numero server-nameen, sitä minä käytän, eli xx.xxx.xxx.xxx/httpdocs/, silloin se ohjaantuu oikeaan paikkaan FTP-tilisi mukaan.

PS. Mun moka, siellä on wxtracker.php:ssä yksi pieni kirjoitusvirhe:
Kohdassa:
Koodia:
<img id="NEXMAP" src="< echo $path_to_map ?>
pitäisi olla:
Koodia:
<img id="NEXMAP" src="<? echo $path_to_map ?>

« Viimeksi muokattu: sunnuntai, 26.07.2009, 21:14 kirjoittanut weatherc » tallennettu

Sivuja: 1 [2] 3 4 ... 6
  Tulostusversio  
 
Siirry:  

MySQL pohjainen foorumi PHP pohjainen foorumi Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Validi XHTML 1.0! Validi CSS!