Page 1 of 1
Sea Temperature Block Trouble
Posted: Tue Nov 13, 2018 2:30 am
by LOBWX
Having a bit of an issue with the seaTemperature block on
https://lobwx.com its in the block named "Marine Specs" on the right, under the hamburger.
Im am trying to grab this data
north-america/united-states/morro-bay.htm from
https://www.seatemperature.org
Here is the output I am getting:
Code: Select all
Notice: Undefined offset: 1 in /home/foe33895/public_html/lobwx/template/homepage/blocks/seaTemperature/seaTemperatureBlock.php on line 82
Notice: Undefined offset: 2 in /home/foe33895/public_html/lobwx/template/homepage/blocks/seaTemperature/seaTemperatureBlock.php on line 83
Notice: Undefined offset: 3 in /home/foe33895/public_html/lobwx/template/homepage/blocks/seaTemperature/seaTemperatureBlock.php on line 84
Notice: A non well formed numeric value encountered in /home/foe33895/public_html/lobwx/template/scripts/functions.php on line 165
Warning: A non-numeric value encountered in /home/foe33895/public_html/lobwx/template/scripts/functions.php on line 165

Re: Sea Temperature Block Trouble
Posted: Fri Nov 16, 2018 12:28 am
by LOBWX
Weird started working again ???
Re: Sea Temperature Block Trouble
Posted: Sun Dec 25, 2022 2:40 pm
by Julius
This block is broken now. I only see 0C values everywhere people use it..
Re: Sea Temperature Block Trouble
Posted: Sun Feb 19, 2023 11:03 am
by tobydude
Can it be fixed?
Re: Sea Temperature Block Trouble
Posted: Sun Feb 19, 2023 4:59 pm
by alexvanuxem
it's fixed
follow this thread
viewtopic.php?f=56&t=2347&p=12117&hilit ... ure#p12117
hope it helps?
grtz
Alex
Re: Sea Temperature Block Trouble
Posted: Sun Feb 19, 2023 5:15 pm
by tobydude
alexvanuxem yes !
I think it works on my weaterpage now.
Thanks.
Re: Sea Temperature Block Trouble
Posted: Fri Mar 10, 2023 9:24 am
by Juan Maria Vilaró
Good morning, I ask for help to repair the block "seaTemperature version 2.2" has been working correctly for a long time, but for a while it only indicates 0.0 and I don't know how to fix it, could someone help me or give me some solution?
thank you so much
URL:
https://badameteo.com/template/indexDesktop.php
Re: Sea Temperature Block Trouble
Posted: Fri Mar 10, 2023 1:55 pm
by alexvanuxem
Hi,
when I visit your site, it seems to be working: I see 12.7°C in Badalona?
Grtz
Re: Sea Temperature Block Trouble
Posted: Fri Mar 10, 2023 4:24 pm
by FSC830
@alexvanuxem: my guess, you are looking at the wrong page.
When language is set to English: Weather -> Seatemperature
@Juan
Check, if the quick and dirty solution runs for you.
Backup the original files in advance.
From archive copy functions.php to </template_root/>scripts and the seaTemperature.php to the referring
block directory.
Please give a feedback
Saludos
!!! Note: file for seaTemp block!
Edit: Anyhow, just noticed, that your block looks different than mine!?
Where did you download this block? Is yours really a "block" or a "plugin"?
Edit II: just found, you are using a PLUGIN, not a BLOCK. Please do not mix up these two.
Now looking in the plugin... done
Ok, please download the index.zip, put the extracted index.php in
seaTemp plugin directory and test.
!!! Note: file for seaTemp plugin!
Re: Sea Temperature Block Trouble
Posted: Sun Mar 12, 2023 5:59 pm
by alexvanuxem
i got confused , when its's a block its visible at the homepage,
when its a plugin it's visible at weather etc???
so it's not block but a plugin?

Re: Sea Temperature Block Trouble
Posted: Sun Mar 12, 2023 6:25 pm
by FSC830
No, there are two different modules.
One is a block, showing 5 targets maximum, the other is a plugin with only one target and statistics.
Me too was confused, as the "seatemp block" was mentioned.
Looking at Juans website shows a difference to my installed block.
Then I noticed, that there is a plugin too for sea temperature.
And yes, the blocks can be added to desktop, whereas plugins are visible from the menu bar.
Confusing, if different modules for same/similiar data are available.
Regards
Re: Sea Temperature Block Trouble
Posted: Sun Nov 19, 2023 8:32 pm
by Cavaliere
I just tested the file of the block in question, indicated above and now the block loads it, but the current data brings me 0.0 °C. And also if I change city, it doesn't change in the block.
Do you have a solution?
Re: Sea Temperature Block Trouble
Posted: Tue Nov 21, 2023 12:14 pm
by FSC830
What is your site (link)?
Block or plugin?
Regards
Re: Sea Temperature Block Trouble
Posted: Tue Nov 21, 2023 5:07 pm
by Cavaliere
FSC830 wrote: ↑Tue Nov 21, 2023 12:14 pm
What is your site (link)?
Block or plugin?
Regards
Block Seatemperature.
My site:
www.ombarcellonapg.com
Regione seatemperature this:
https://www.seatemperature.org/europe/italy/milazzo.htm
Re: Sea Temperature Block Trouble
Posted: Fri Aug 01, 2025 9:28 pm
by Cavaliere
Hi everyone, has a solution been found for this sea temperature freeze?
Re: Sea Temperature Block Trouble
Posted: Sun Aug 03, 2025 4:00 pm
by FSC830
Sorry, did not see your answer in Nov. 2024...
The block runs at my test site without any issues.
I am running at PHP 8.3, what is your version?
And which are the locations you choose for the sea temperature?
Regards
P.S. Just checked, entering Milazzo at my site works too, actual temp was 26.8°C (Sunday, August 3rd, 2025, 18:10 CEST)