Author Topic: Meteotemplate - new free website template  (Read 629904 times)

0 Members and 1 Guest are viewing this topic.

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 562
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Meteotemplate - Plugin Update - Live Gauges API 2.0
« Reply #6250 on: March 17, 2017, 02:31:00 PM »
Plugin Update - Live Gauges API 2.0

Hi guys

added possibility to add time of last update at the top and also set its format (see setup page).

Enjoy


Hi Jachym,
can i delete liveGaugesWD folder?
Thanks in advance.
Regards,



Alessandro

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6251 on: March 17, 2017, 02:35:44 PM »
If you are using the liveGaugesAPI then yes, the clientraw is no longer needed by the template and the liveGaugesAPI uses different files.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6252 on: March 17, 2017, 02:39:17 PM »
Hi,
yes it is Mark´s code.

I modified it quite a lot, I completely changed the file that feeds data to it and I added some extra customizations and used some config settings, added some further designs etc., but I left the absolute core untouched, or rather only modified cosmetic things. It is literally thousands of lines and Im not a JS expert so going one by one, trying to understand which one does what, and they are interconnected, is quite difficult and time-consuming.
I know there is some rounding going on with the limits and there was a problem with the RR in mm, but I thought I fixed it...

It really is the only plugin where Im not 100% sure what is going on in all parts of the code and I hoped it will work and pretty much only did this whole thing because so many people asked for it, but Im not JS expert to write similar gauges myself... does the update thing work when you set it to something a bit smaller?

I can fix the hover/click thing, that is for example something I added so I know how it works.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - Block Updates
« Reply #6253 on: March 17, 2017, 07:16:53 PM »
Hi guys,

few updates

Block Update – Dynamic Text 2.4
- bug fixes on the setup page

Rise/Set 6.3
- optimization for faster loading

SteelSeries Gauges 2.2
- now also supports update timeout (make sure you have latest version of SteelSeries Plugin, it uses its settings file)

EU Warnings - Regional 1.3
- translation improvements

Enjoy

Online PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #6254 on: March 17, 2017, 07:47:31 PM »

Quote
Is Mark a member here, or is he the original SS developer?
YES, YES
http://www.wxforum.net/index.php?action=profile;u=10774
http://sandaysoft.com/forum/viewforum.php?f=21


Paul




Offline jeffm5690

  • Forecaster
  • *****
  • Posts: 310
    • Long Island New York Weather
Re: Meteotemplate - Block Updates
« Reply #6255 on: March 17, 2017, 08:06:58 PM »
Hi guys,

few updates

Block Update – Dynamic Text 2.4
- bug fixes on the setup page

Rise/Set 6.3
- optimization for faster loading

SteelSeries Gauges 2.2
- now also supports update timeout (make sure you have latest version of SteelSeries Plugin, it uses its settings file)

EU Warnings - Regional 1.3
- translation improvements

Enjoy

Cool!  Thanks!

Offline Paul

  • Member
  • *
  • Posts: 44
    • Whitton Weather
Re: Meteotemplate - new free website template
« Reply #6256 on: March 18, 2017, 11:14:51 AM »
Great work Jachym as always.
Loving the WD & API Updates, or I would if I could get it to work!

Anyway I will get on to that but now I have a strange issue when I try and set the update back to my CRON job.

The update script keeps picking up an old clientraw.txt and I cannot figure out why.

If you look at:

http://www.paulrickwood.co.uk/Weather/clientraw.txt

That is fine. If I paste the very same URL into the settings for the update and test it, it picks up a clientraw.txt from last October.
Now this could be related to a server move by my provider (for the update to PHP) and it is somehow picking up the old one.

But I can't figure it out, any ideas anyone?

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6257 on: March 18, 2017, 11:19:20 AM »
Paul,
if you are using WD you do not use the update.php anymore. This script is completely bypassed by the API and you also need to disable all cron jobs you had for this script.

The CRON jobs are now autoexecuted directly by WD and WD also sends data directly to the API script (api.php), which processes it and saves to db.

So what you need to do is:
- disable CRONs for update.php
- ignore "Update setup" in control panel
- in WD set the URL of the api.php (in your template root) and your update password, choose interval of realtime updates (db wlll be updated every 5min no matter what you choose, this is for gauges etc.)
- click OK
- done (ideally..)

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Meteotemplate - new free website template
« Reply #6258 on: March 18, 2017, 11:24:06 AM »
Great work Jachym as always.
Loving the WD & API Updates, or I would if I could get it to work!

Anyway I will get on to that but now I have a strange issue when I try and set the update back to my CRON job.

The update script keeps picking up an old clientraw.txt and I cannot figure out why.

If you look at:

http://www.paulrickwood.co.uk/Weather/clientraw.txt

That is fine. If I paste the very same URL into the settings for the update and test it, it picks up a clientraw.txt from last October.
Now this could be related to a server move by my provider (for the update to PHP) and it is somehow picking up the old one.

But I can't figure it out, any ideas anyone?
Did you by chance make sure you point your ftp to that folder via WD?
I'm not at home, so I can't get a good look, but it sounds like you have your clientraw possibly going to a different folder and your site is pointing towards the one that you linked to.

Sent from my SM-G935R4 using Tapatalk

Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Offline Paul

  • Member
  • *
  • Posts: 44
    • Whitton Weather
Re: Meteotemplate - new free website template
« Reply #6259 on: March 18, 2017, 11:25:13 AM »
Hi Jachym,

Yes I will look at that but I was having issues with it not working so I was reverting back to the CRON job and the update script so I wouldn't lose too much info whilst I troubleshooted the WD based API update.

But the update script no longer works as the old clientraw is being parsed.

Maybe I'll just try and get the WD API update working in the meantime.

Thanks,

Paul

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6260 on: March 18, 2017, 11:42:33 AM »
Hi Paul,
what was wrong with the api, why did it not work?

Offline Paul

  • Member
  • *
  • Posts: 44
    • Whitton Weather
Re: Meteotemplate - new free website template
« Reply #6261 on: March 18, 2017, 12:05:04 PM »
OK I figured it out.

paulrickwood.co.uk still resolves to the old server at my provider which is still available which is why the API updates were not working properly.
However as part of the move I did some testing with my provider and I had added the new server IP address to my Hosts file for paulrickwood.co.uk

Hence when looking at the clientraw in my browser on my desktop it was picking up the right clientraw, yet when run server side it resolves to the old server.

ploppy.me.uk resolves to the new server so I can use that URL for now.

Need to get my provider to update the A record or whatever it is called to point to the right place.

API updates via WD working nicely now :-)

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6262 on: March 18, 2017, 12:13:39 PM »
 \:D/

Offline bchwdlks

  • Senior Contributor
  • ****
  • Posts: 196
Re: Meteotemplate - Plugin Update - Extremes
« Reply #6263 on: March 18, 2017, 01:22:47 PM »
I have gone back through the setup and if I skipped something or incorrectly set the data values, I cannot find the setting. The Extremes block has no settings to adjust. I have 2 places where the numbers do not make sense.

  • The Temperature Range--The Tmax/Tmin are in the database as °C and are correctly converted to °F for display. The range is calculated on the °F number and then that number is converted to °F.   [ You are not allowed to view attachments ]
  • Humidity Range--The minimum ranges are calculated as the difference between the high and the low for the date. I believe that those numbers are correct. The maximums are using a different calculation that do not make sense to me.  [ You are not allowed to view attachments ]

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6264 on: March 18, 2017, 01:56:18 PM »
Thanks, this looks like a bug. Sorry about that and thanks for letting me know. Im at work now, I will look at it as soon as I can tonight.

Just to make sure - we are talking about the "block", not plugin right?

Offline bchwdlks

  • Senior Contributor
  • ****
  • Posts: 196
Re: Meteotemplate - new free website template
« Reply #6265 on: March 18, 2017, 03:26:58 PM »
It is the block Extremes ver 1.1.

It is not a bug - it is an "undocumented feature"

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6266 on: March 18, 2017, 03:32:37 PM »
:D OK then, I take you for the word... it is now "documented", so do we leave it as it is? :D

Offline vreihen

  • El Nińo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: Meteotemplate - new free website template
« Reply #6267 on: March 18, 2017, 03:57:39 PM »

Quote
Is Mark a member here, or is he the original SS developer?
YES, YES
http://www.wxforum.net/index.php?action=profile;u=10774
http://sandaysoft.com/forum/viewforum.php?f=21

That's what I was afraid of, since it makes me hesitate to use the awesome-looking SS stuff for anything. :(

The good thing about open-source is that you can review the code.   :-)

The bad thing about open-source is that you can review the code.....  :shock:
WU Gold Stars for everyone! :lol:

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6268 on: March 18, 2017, 04:08:07 PM »

Quote
Is Mark a member here, or is he the original SS developer?
YES, YES
http://www.wxforum.net/index.php?action=profile;u=10774
http://sandaysoft.com/forum/viewforum.php?f=21

That's what I was afraid of, since it makes me hesitate to use the awesome-looking SS stuff for anything. :(

The good thing about open-source is that you can review the code.   :-)

The bad thing about open-source is that you can review the code.....  :shock:

Mark knows about it being used in MT. I asked him before starting to work on it. You could try asking him, but it might be difficult for him too because now we have sort of a hybrid, which no-one understands completely - I changed lot of the code and you need to know how MT works to understand that and I used his Javascript, which I based it on without going through each line of it...

This is exactly why I was avoiding this for quite some time... I guess this really was not a good idea. Im not going to discontinue it, but I will never use some ready code and modify it again. I will just stick to what I normally do and write it myself...

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - Block Updates
« Reply #6269 on: March 18, 2017, 04:09:36 PM »
Hi guys

Block Update - Extremes 1.2
- bug fixes (see above)

Block Update - Lightning 3.1
- added possibility to enable/disable block title

Enjoy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - Block Update – Current Conditions 11.0
« Reply #6270 on: March 19, 2017, 09:21:53 AM »
Block Update – Current Conditions 11.0

Hi guys,

in this new version I added the possibility to enable time highlight. If you enable this then every time the block is updated in the background, the time will briefly be highlighted. You can also set the highlight interval, i.e. for how long the time will stay highlighted. If you set this to something really short, the time will just briefly flash. If something longer, it will stay highlighted for that time.

Note: In the demo the interval is relatively long, set to 30s (to prevent server overload), so if you want to see it, you would have to wait 30s.

DEMO: http://www.meteotemplate.com/template/indexBlockDemoWide.php?block=current

Enjoy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - updates
« Reply #6271 on: March 19, 2017, 07:12:55 PM »
Hi guys,

few updates based on your suggestions:

Block Update - Lunar Eclipses 2.0
 - added possibility to add block title
 - CSS tweaks
 - optimization

DEMO: http://www.meteotemplate.com/template/indexBlockDemoNarrow.php?block=lunarEclipses

Block Update - Solar Eclipses 2.0
 - added possibility to add block title
 - CSS tweaks
 - optimization

DEMO: http://www.meteotemplate.com/template/indexBlockDemoNarrow.php?block=solarEclipses

Block Update - Meteor Showers 2.0
 - added possibility to add block title
 - CSS tweaks
 - optimization

DEMO: http://www.meteotemplate.com/template/indexBlockDemoNarrow.php?block=meteors

Plugin Update - Live Gauges 2.1
 - bug fix for rain rate

Enjoy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - What is coming
« Reply #6272 on: March 20, 2017, 07:03:14 AM »
Hi guys,

in the blog I posted some info about what I plan to do in the near future and what is coming.

If interested:
http://meteotemplate.com/blog/?p=2172

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - New – Blocks Page
« Reply #6273 on: March 20, 2017, 10:24:59 AM »
New – Blocks Page

Hi guys,

just a little change on the Blocks download page. Over the time the number of blocks has grown to over 165. It could now be a bit difficult for a new user to easily choose the ones they want at the beginning.

I have therefore decided to implement a new feature – each block has one or more tags and you can filter the blocks by these tags. By default you are shown all the blocks just like before, but you can filter them using these tags. One block can be in several categories.

Blocks: http://www.meteotemplate.com/web/blocks.php

Enjoy

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 562
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Meteotemplate - New – Blocks Page
« Reply #6274 on: March 20, 2017, 05:50:23 PM »
New – Blocks Page

Hi guys,

just a little change on the Blocks download page. Over the time the number of blocks has grown to over 165. It could now be a bit difficult for a new user to easily choose the ones they want at the beginning.

I have therefore decided to implement a new feature – each block has one or more tags and you can filter the blocks by these tags. By default you are shown all the blocks just like before, but you can filter them using these tags. One block can be in several categories.

Blocks: http://www.meteotemplate.com/web/blocks.php

Enjoy

Great idea!
Thanks,


Alessandro

 

anything