I tried with an include but couldn’t get it to work. Instead Brian recommended an i frame. Have a look at my site, worked pretty well for me for over a year. O just have to slightly reduce the page with of the template to 945 px to get it to fit in my template.
Major Fix Bug (15-Mar-2017) - Thanks to Paul Wilman of http://paulwilman.com There was major flaw in the weather underground update for version 34E , so small but critical . The currentwuconditions.php had the update in seconds not minutes !! i.e 10 seconds it has now been adjusted to read 900 seconds = 15 minutes. Unfortunately and very sorry this may have caused you to get an a warning from weather undergound of exceeding api limit .This was only present in the non cron job version 34E .PLEASE UPDATE ASAP SORRY FOR ANY INCONVIENCE CAUSED.
No worries Brian, happened to me as well… fortunately not in a final release, but in a version I used myself to test…
It was actually DarkSky and I temporarily set the caching to 60 * 0 s, to make sure it always reloads new data for testing purposes and then I of course forgot to replace the 0 back with the original cache time in minutes parameter…
this is purely optional and not a part of the dashboard template it is a part of the information download page.
you can now receive update notifications direct to your desktop using the push notification system if your OS supports it and permits .
Note it is purely optional and can be disabled or terminated when ever you wish .
This will help me push out the updates without having to post in all the forums and solely use the forums for resolving issues and exchanging ideas , I find that more constructive and
beneficial .
The notification is only received once is not repeated , i have used this system in another project and it can be really beneficial and not annoying if used right.
It will be only used for update notifications to template and I really hope I am nearing the end of releasing frequent updates as it is now been a long time in trying to
find the right balance for everyone , every language etc.
PLEASE NOTE IT IS PURELY OPTIONAL AND DOES NOT REPEAT THE NOTIFICATION EACH TIME YOU VISIT THE SITE IT WILL ONLY SHOW YOU A NEW NOTIFICATION ONCE IF AVAILABLE .
That was a few weeks ago for us in the USA and I still forgot to change it. :oops:
Speaking of time, I noticed the local time displayed at the top of the script is in 24 hour format even if I choose the 12 hour format in the settings.
its ok i see it now i set my UTC back by -7 and reproduced ill see if i can work it out think it is only affecting 12pm im guessing 1pm it will look correct ill see what i can do and ill post back later or tomorrow.
the time format for all areas is now in am/pm format or short time format. having looked back through emails I see this is a frequent request or preferred output.
so I simply wrote a simple jquery script using the online jquery manual , it is nothing complicated just a simple few lines of code and connected to the
options set in the easyweathersetup.php
//simple weather34 main clock
$(function() {
weather34clock();
});
function weather34clock() {
var d = new Date();
var utc = d.getTime() + (d.getTimezoneOffset() * 60000);
var offset = <?php echo $UTC ;?>;
var currentTime = new Date(utc + (3600000*offset));
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
currentSeconds = ( currentSeconds < 10 ? “0” : “” ) + currentSeconds;
currentMinutes = ( currentMinutes < 10 ? “0” : “” ) + currentMinutes;
var timeOfDay = ( currentHours < 12 ) ? “am” : “pm”;
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
var currentTimeString = currentHours + “:” + currentMinutes + “:” + currentSeconds + " " + timeOfDay ;
$(‘#weather34clock’).html(currentTimeString);
setTimeout(“weather34clock()”,1000);
};
so there was changes to the css files ,updater.php,index.php,wxcharts.php,indexearthquake.php and notification.php
the option i added in easyweathersetup.php yesterday is not used so was removed still uses the other time format options.