cloudy cloudy

Author Topic: Customising WD34  (Read 1905 times)

0 Members and 1 Guest are viewing this topic.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,126
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 75.0.3770.100
Re: Customising w34WD
« Reply #30 on: June 22, 2019, 07:58:04 PM »
Just to be persnickety  :)  Why do you have a combined "UV Index|Cloudbase" footer option on 3 blocks and separate "UV Index" "Cloudbase" footer options on another.

Is it possible for the title "Swanston Grove  Edinburgh, U.K." to be bigger?

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: Customising w34WD
« Reply #31 on: June 22, 2019, 08:30:13 PM »
Just to be persnickety  :)  Why do you have a combined "UV Index|Cloudbase" footer option on 3 blocks and separate "UV Index" "Cloudbase" footer options on another.

I haven't managed to get the CSS right for the combined block, and I left the others so I could easily view and "Inspect" the relevant bits in the browser to see what I'd missed. Work in progress. . .

Quote
Is it possible for the title "Swanston Grove  Edinburgh, U.K." to be bigger?

Quite possibly - do you want the postcode too? I don't mind a bit of understatement. . . But I have another problem to solve first: I tried a small change to the Barometer block script that didn't work, so I copied back the script that was working earlier today - and it isn't now!
It's meant to be fun. . .

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: Customising w34WD
« Reply #32 on: June 22, 2019, 10:03:54 PM »
But I have another problem to solve first: I tried a small change to the Barometer block script that didn't work, so I copied back the script that was working earlier today - and it isn't now!

Sorted  :D

Small change mentioned was only to display "equivalent to" rather than "equal to" for the barometer conversion. . .
« Last Edit: June 23, 2019, 02:00:31 PM by bitsostring »
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,126
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 75.0.3770.100
Re: Customising w34WD
« Reply #33 on: June 22, 2019, 11:16:52 PM »
All understood, it's a nice project  :D  I don't need the title in flashing neon, just seems a bit over understated  :wink:

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: Customising w34WD
« Reply #34 on: June 23, 2019, 11:21:16 AM »
I don't need the title in flashing neon, just seems a bit over understated  :wink:

Went to bold and changed the -0.05em letterspacing to +0.03em. . . better?

« Last Edit: June 23, 2019, 11:40:11 AM by bitsostring »
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,126
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 75.0.3770.100
Re: Customising w34WD
« Reply #35 on: June 23, 2019, 12:51:18 PM »
I like it :thumbright:

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: Customising w34WD
« Reply #36 on: June 25, 2019, 09:45:21 PM »
Six months in and I've finally worked out how to show rain to 1 d.p. for mm and 2 d.p. for inches, with trailing zeros. I've left rain rate/hour showing 2 d.p. for both. (This release can't show rain rate/min without more work, and I'm not really interested anyway.)

Small YTD-MTD rainfall block has a temporary "real-estate" solution: for both mm and inches, if ($amount<100) show 2 d.p.; for (100<$amount<1000) show 1 d.p.; ($amount>1000) show 0 d.p. Seems like a workable balance?
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,126
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 75.0.3770.100
Re: Customising w34WD
« Reply #37 on: June 25, 2019, 10:08:04 PM »
Yes, good solution.

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: Customising w34WD
« Reply #38 on: July 02, 2019, 07:18:33 PM »
Starting to fiddle with the July release now. . . URL as left but change /pws/ to /pwsnew/

I really need to get the max-min Temp circles away from the edges of the small block (temp.jpg), but I'm having trouble. . .

Edit: If at first you don't succeed. . . try again (temp2.png).
« Last Edit: July 05, 2019, 02:56:44 PM by bitsostring »
It's meant to be fun. . .

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: Customising w34WD
« Reply #39 on: July 04, 2019, 07:11:51 PM »
Wim's July version demo currently using the same format, so here's a comparison.
It's meant to be fun. . .

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: Customising w34WD
« Reply #40 on: July 07, 2019, 01:17:57 PM »
Starting to fiddle with the July release now. . . URL as left but change /pws/ to /pwsnew/

Managed to put together small max-min and large temp blocks for garden temp - and added UV and cloudbase.

Also managed to sort the max wind time in the small max wind|gust block. . . may have to change to wide mode so I can show that too  :)
« Last Edit: July 07, 2019, 04:15:01 PM by bitsostring »
It's meant to be fun. . .

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: Customising w34WD
« Reply #41 on: July 07, 2019, 04:16:42 PM »
. . . may have to change to wide mode so I can show that too  :)

Maybe not, now I've added max-min times to the large garden temp block: I don't really need the small block any more.
It's meant to be fun. . .

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: Customising w34WD
« Reply #42 on: July 08, 2019, 07:13:48 PM »
OK, gone to wide mode - url as left but change /pws/ to /pwsnew/. It's growing on me, but the title is not centred  :roll:

I suspect that it might be if I get rid of the orange F/C button on the left, but I can't find it in the menu script - yet.

And there's a bit of work to do with the colours in the small blocks. . .
« Last Edit: July 08, 2019, 07:15:23 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: Customising w34WD
« Reply #43 on: July 08, 2019, 07:36:42 PM »
OK, gone to wide mode - url as left but change /pws/ to /pwsnew/. It's growing on me, but the title is not centred  :roll:

I suspect that it might be if I get rid of the orange F/C button on the left, but I can't find it in the menu script - yet.

And there's a bit of work to do with the colours in the small blocks. . .
I answered the other post
it seems the tile is 20 px off as the left obeject (F) is margin 200+20px wide, right object (clock) is 200px.
So if you make the clock 220px wide the title should / is in the middle.

line 375 in w34_index2.php
Code: [Select]
<span id="positionClock" style="float: right; width: 220px; margin-top: -8px;" class="invisible">
Wim

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: Customising w34WD
« Reply #44 on: July 08, 2019, 10:02:08 PM »
I answered the other post

I saw that, thanks.

Quote
it seems the tile is 20 px off as the left object (F) is margin 200+20px wide, right object (clock) is 200px.
So if you make the clock 220px wide the title should / is in the middle.

Perfect, if you leave the left object alone! See "before.png" and "add20pxtoclock.png", below.

But if you remove the left object first, as described in the other post, the title gets worse. See "removeFCbutton.png".

So you have to add the 200 px back, in line 374 of w34_index2.php, and leave the clock alone. See "add200px to leftoftile.png".
It's meant to be fun. . .

 

cumulus