units plugin

Post Reply
User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

units plugin

Post by dmgould » Wed Oct 18, 2017 8:04 am

I just installed this plugin. Choose the visibility tab (binoculars) and choose ft (feet) as the unit. Enter a value and nothing displays. I tried several decimal places and no change.
Attachments
visibility.JPG
visibility.JPG (42.57 KiB) Viewed 13821 times
Dave G
Image

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: units plugin

Post by nikokara - BANNED » Wed Oct 18, 2017 8:24 am

Hi dmgoult

It cant work.
Here is no code in units.php for visibility ft calculation

$('#m').text("-");
$('#km').text("-");
$('#mi').text("-");
$('#nmi').text("-");
niko

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: units plugin

Post by Jachym » Wed Oct 18, 2017 8:40 am

dmgould wrote: Wed Oct 18, 2017 8:04 am I just installed this plugin. Choose the visibility tab (binoculars) and choose ft (feet) as the unit. Enter a value and nothing displays. I tried several decimal places and no change.
link please

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: units plugin

Post by Jachym » Wed Oct 18, 2017 8:56 am


User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: units plugin

Post by nikokara - BANNED » Wed Oct 18, 2017 9:07 am

Jachym wrote: Wed Oct 18, 2017 8:56 am It works fine here:
http://www.meteotemplate.com/template/p ... /units.php
No. It not works.

40 feeds are NOT 64373.8 meters !!!! Sorry
niko

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: units plugin

Post by Jachym » Wed Oct 18, 2017 9:38 am

It is just the feet that is not working correctly and you can express yourself poilitely, no need for shouting and exclamation marks. Im not interested in this.

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: units plugin

Post by nikokara - BANNED » Wed Oct 18, 2017 10:06 am

Ok Jachim

But i still believe that
40 feeds are not 64373.8 meters
:D
niko

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: units plugin

Post by Jachym » Wed Oct 18, 2017 10:28 am

I didnt say it is working correctly, read my post, I said the "ft" option is not working correctly

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: units plugin

Post by nikokara - BANNED » Wed Oct 18, 2017 10:41 am

You said
It works fine here:
http://www.meteotemplate.com/template/p ... /units.php
viewtopic.php?p=2385#p2385
niko

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: units plugin

Post by Jachym » Wed Oct 18, 2017 11:00 am

Yes and later said:
It is just the feet that is not working correctly

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: units plugin

Post by nikokara - BANNED » Wed Oct 18, 2017 11:26 am

Yes Jachim :)

But my "unpolite" response was for:
It works fine here: ....
niko

User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

Re: units plugin

Post by dmgould » Wed Oct 18, 2017 3:25 pm

Dave G
Image

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: units plugin

Post by nikokara - BANNED » Mon Oct 23, 2017 8:38 am

EDIT 25 Oct 2017
ATTENSION
Jachym has released a new version of Units plugin (version 2.2)
Please download Jachym's version not my
Thanks


Hi dmgould Hi Jachym :)

Here is the modified/edited units.php to work with feeds

Code: Select all

	
	############################################################################
	# 	
	#	Meteotemplate
	# 	http://www.meteotemplate.com
	# 	Free website template for weather enthusiasts
	# 	Author: Jachym
	#           Brno, Czech Republic
	# 	First release: 2015
	#
	############################################################################
	#
	#	Unit conversion
	#
	# 	A script which allows the user to convert between various types of 
	#	units (temperature, pressure, precipitation, length, speed).
	#
	############################################################################
	#	Version and change log
	#
	# 	v1.0 	2015-07-01	Initial release
	#	v2.0	2016-05-10	Translation
	#	v2.1	2016-07-06	
	#		- fixes for HTML5 and https servers
	#
	############################################################################
	# modified by nik @ 21/10/2017 #############################################
	############################################################################
	//CODE REMOVED
	//DOWNLOAD JACHYM'S FIX
	
Attachments
units.zip
(3.62 KiB) Downloaded 1032 times
niko

Post Reply