Author Topic: Meteotemplate  (Read 138120 times)

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #285 on: November 04, 2016, 03:54:58 PM »
Jachym,

A question for you concerning duplicating Blocks. I want to create a copy of the Gauges Block with only the UV Gauge showing. I realize that two of the same Blocks cannot be on the Homepage.

- I made a duplicate of the Gauges folder, and renamed it uvGauge
- I renamed the duplicate Gauges.php and GaugesConfig.txt to uvGauge.php and uvGaugeConfig.txt
- I used Text Wrangler to change the name and namespace inside all of the files from Gauges to uvGauge

But of course, it didn't work, because I'm just a hack guessing at how this works. ;)

What I'm trying to do is create a Multiple Block in the sidebar, with the UVgauge at the top, and the uvForecast below. But since I have Gauges in my center column, I can't simply have Gauges twice.

Thanks for any suggestions you may have.
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jachym

  • Strong Breeze
  • ***
  • Posts: 210
    • Meteotemplate
  • Station Details: WH1080
Re: Meteotemplate
« Reply #286 on: November 04, 2016, 04:15:53 PM »
Hi,
not sure what exactly you have / have not done, basically:

you need to rename:
gaugesBlock to uvGaugeBlock
gaugesBlockConfig to uvGaugeBlockConfig
then inside uvGaugeBlockConfig change the namespace

that should be all, do not change any names of other files, only the "*Block" needs to be changes, the other files are referenced by the script inside the Block script

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #287 on: November 04, 2016, 04:29:29 PM »
Well, that worked! Thank you, again.

Apparently I don't have subBlock figured out how to correctly stack uvGauge on top of uvForecast, though

multipleBlock(uvGauge,100;subBlock[uvForecast],100)

Time for lunch again, and then a macro seminar at the local photography store. Back later...
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jachym

  • Strong Breeze
  • ***
  • Posts: 210
    • Meteotemplate
  • Station Details: WH1080
Re: Meteotemplate
« Reply #288 on: November 04, 2016, 04:33:07 PM »
Im not sure what you are trying to achieve, what is the point of creating a subblock with just one block, it is then equivalent to normal multiple block,

see
http://www.meteotemplate.com/web/wiki/blockGuide.pdf

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #289 on: November 04, 2016, 05:33:48 PM »
Because I thought it was going to look like this:



Instead of this:



Thinking it would look more like one item; current UV and UV Forecast, rather than two separate Blocks.

When I did Multiple Block, it looked like this, even though I set both at 100% width:




I guess my mistake was thinking that sub-blocks were for stacking blocks within one parent block.
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jachym

  • Strong Breeze
  • ***
  • Posts: 210
    • Meteotemplate
  • Station Details: WH1080
Re: Meteotemplate
« Reply #290 on: November 04, 2016, 05:48:03 PM »
If you set the width to 100% then it tries to span the whole column width

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #291 on: November 04, 2016, 08:34:04 PM »
I don't think we're talking about the same thing, but never mind for now.

Another question: Is there a way to tell yr.no what time zone the meteograph should be in the meteographBlock? I am at UTC -5, and on the yr.no web site looking at the Cleveland Ohio meteograph, it correctly shows the start of the graph at 16:00 local time. But the meteograph on my web page, when set to Cleveland Ohio, shows the chart beginning at 21:00. So I have no forecast showing for the next five hours. This is consistent, as it was five hours ahead last evening, too.
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jachym

  • Strong Breeze
  • ***
  • Posts: 210
    • Meteotemplate
  • Station Details: WH1080
Re: Meteotemplate
« Reply #292 on: November 04, 2016, 09:36:04 PM »
Probably not, the data is taken from the yr.no RSS feed and the time is converted, but they probably do not give more information

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #293 on: November 04, 2016, 10:49:22 PM »
Okay, thanks!
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #294 on: November 05, 2016, 05:31:53 PM »
Jachym,

Can you tell me what these two blocks are? I can't seem to find any that match those features.

Thanks,
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jachym

  • Strong Breeze
  • ***
  • Posts: 210
    • Meteotemplate
  • Station Details: WH1080
Re: Meteotemplate
« Reply #295 on: November 05, 2016, 05:41:25 PM »
Which blocks

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #296 on: November 05, 2016, 05:59:14 PM »
Doh!! I forgot to attach the image.



I found the top one; socialNetworks. Haven't found the bottom one.

Sorry for the confusion...
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jachym

  • Strong Breeze
  • ***
  • Posts: 210
    • Meteotemplate
  • Station Details: WH1080
Re: Meteotemplate
« Reply #297 on: November 05, 2016, 06:17:44 PM »
info :)

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #298 on: November 05, 2016, 06:33:37 PM »
Thanks, I hadn't found that one yet. I just stuck it on my test page with a bunch of other plugins and blocks.

Gotta get outside to rake leaves!
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Meteotemplate
« Reply #299 on: November 05, 2016, 09:09:01 PM »
Jachym,

I've added the radarUS block to my test web site. There is an image missing in the icons file.

homepage-->blocks-->radarUS-->icons-->light-->soilMoisture.png

I did a half-assed job of creating an inverted copy of the dark version, but when you get around to creating the light version, please send me a copy.

Thanks
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook