Author Topic: Ajaxeline AJAX and PHP template. Beta release available.  (Read 112478 times)

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #105 on: June 30, 2012, 02:14:34 AM »
is there a way to make the page just display the heat index and windchill thats calculated by weathercat? there are tags to display heat index and wind chill in the wctags.php but im not sure how to use them instead of the calculated values. i have never had anything dosplay for those, its always reading N/A

I suppose it's possible to use standard WC tags for those values but note that it wouldn't be "real-time" since the CGI doesn't expose those values. Therefore, I just calculate them based on the following parameters (note that the CGI units are always imperial):

Heat Index: Temp>80 (26.67 C) and Humidity>40%
Wind Chill :Temp<=50 (10 C) and Wind Speed >=5 (8 kmh)

These are the parameters that NOAA uses here in the US.

http://en.wikipedia.org/wiki/Heat_index
http://en.wikipedia.org/wiki/Wind_chill

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #106 on: September 27, 2012, 12:07:53 PM »
Hi Tigers
Will you be releasing an update to the template to allow for the bigger screen on the iPhone 5?

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #107 on: October 03, 2012, 12:45:50 AM »
Hi Tigers
Will you be releasing an update to the template to allow for the bigger screen on the iPhone 5?

Well I'm going to wait for the 5S :D, so I don't have a way to test the page. That said, it should work without any changes since it's just html/css/js. If you or somebody else has one and can post some screenshots then maybe I can modify the template a bit to take advantage.

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #108 on: October 04, 2012, 12:24:50 PM »
here is a screen shot

there are black bars along the top and bottom


tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #109 on: October 06, 2012, 10:41:48 PM »
Ok, can you go to http://wx.atkinsfamily.org/m.php and see if it works for your iphone 5 now? If so, i'll upload a new version of the template.

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #110 on: October 11, 2012, 04:14:47 AM »
yep, that works good.
is there a lot to change in the coding?
could i just update the templates which i've adapted myself?


tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #111 on: October 12, 2012, 12:38:31 AM »
Nope, it's not hard. Just open up m.php and find the line that says

Code: [Select]
statusBar: 'black'

and edit it by adding "fullScreen: false":
Code: [Select]
statusBar: 'black',
fullScreen: false

Don't forget the , after the 'black' text.

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #112 on: October 12, 2012, 06:29:43 AM »
nice... thanks heaps

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #113 on: January 03, 2013, 10:48:00 PM »
hello
im looking for a little help with a problem i am having with the templates on an iPhone.

i have created a page with various statistics but the stats pages are wider then the screen which is fine but i cannot scroll around to see all the info.

screen grabs attached...

how can i allow the screen to be scrollable so that i can see all the data?

thanks


tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #114 on: January 07, 2013, 03:38:48 AM »
Can you post up a link to that page and I'll take a look? I think I looked at this a while back and it's because of an overflow: hidden; in the css. Those stats are very wiiiiiddde.

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #115 on: January 08, 2013, 08:32:28 AM »
hey
thanks mate but i figured it out.

i added the following into the m.css file.

pre {
   -webkit-overflow-scrolling: touch;
   padding: 5px;
   overflow: auto;
   width: 99%;
   }

and that did the trick.

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #116 on: January 13, 2013, 12:50:00 AM »
hi
with the new 1.1.3 update the tag AT_Aus$ was added which is awesome as its what i wanted for australia.

what i am trying to do with it is add it to the mobile template.

they way i would like to to look is have a box that spans the width of the page below the temp and barometer readings with the "feels like" reading centred.

i have attached a screen shot of where i have gotten so far (which is pretty much nowhere) but the other problem i have is i dont know how to add it as part of the cgi update.

i just added a wctag which only gets updates avery 15 minutes.


this is the  code i have but i know thats not correct.

<ul class="individual">
               <li>
                  <h5>Temp</h5>
                  <h3 id="mtemp">Loading</h3>
                  <span class="low" id="mlot">Loading</span></span><span class="high" id="mhit">Loading</span>
               </li>
               
               <li>
                  <h5>Barometer</h5>
                  <h3 id="mpress">Loading</h3>
                  <span class="low" id="mlop">Loading</span><span class="high" id="mhip">Loading</span>
               </li>
            </ul>

            <ul class="individual">   
               
                  <h5>Feels Like</h5>
                  <h3><?php Echo $ATAUS; ?><?php Echo $TEMPUNITS; ?></h3>
               
            </ul>


            <ul class="individual">
               <li><h5>Rain</h5><h3 id="mrain">Loading</h3></li>
               <li><h5>Rain Rate</h5><h3 id="mrainrate">Loading</h3></li>
            </ul>



any help would be awesome.

oh yeah, my site is http://tommo.homeip.net/m.php

thanks

UncleBuck

  • Strong Breeze
  • ***
  • Posts: 114
    • IVICTORI276
    • Point Cook Weather
  • Station Details: Oregon WMR200, MAC OS X 10.10, WeatherCat V2
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #117 on: January 13, 2013, 12:35:01 PM »
What you can do to show it in the center of the screen is remove the class from the UL and then put in a style on the LI

Like this:
Code: [Select]
<ul> 
      <li style="text-align:center"><h5>Feels Like</h5><h3><?php Echo $ATAUS?><?php Echo $TEMPUNITS?></h3></li>
</ul>

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #118 on: January 13, 2013, 03:01:35 PM »
thanks for that. looks good

i used

<ul> 
<li style="text-align:center"><h6>Feels Like</h6><h7><?php Echo $ATAUS; ?><?php Echo $TEMPUNITS; ?></h7></li>
</ul>

which results in the following (see screenshot)

is there a way of adding the apparent temp as part of the cgi script like all the other readings?

ps... i don't know anything about coding, php or css but I've learned a lot be looking at how the template is structured and just modifying it and seeing what happens so thanks for your help.

bunger

  • Calm
  • *
  • Posts: 2
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #119 on: February 03, 2013, 02:28:19 PM »
I just tried to download this template and the download link is dead.  Is the template no longer available or is there a new DL link?

tia
Bill