Page 1 of 1

Plugin Sea temperature

Posted: Tue Oct 24, 2017 9:50 am
by poppelsepien
Yesterday I've installed de sea temperature plugin. I followed the setup but I only see the text and temperature itself but no graph. What's wrong?
[url][/https://beruys.com/poppelsweer/plugins/ ... /index.php

Re: Plugin Sea temperature

Posted: Tue Oct 24, 2017 8:14 pm
by nikokara - BANNED
Your data file is empty

{"city":"Vlissingen","avg":[],"max":[],"min":[]}

Re: Plugin Sea temperature

Posted: Tue Oct 24, 2017 8:42 pm
by Jachym
Try deleting the cache folder. If it then starts working it was a temporary issue. If not, it means your server is unable to load data from the data source

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 8:59 am
by poppelsepien
I've deleted the cache but no result. In de cache directory are 2 files: data.txt en current.txt. In the current.txt file you can read the current temperature and in de data.txt file is only the cityname filled in, the average, min max fields are empty.
{"city":"Vlissingen","avg":[],"max":[],"min":[]}
So, why are several fields empty and some not?

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 9:48 am
by Jachym
I think your server has general problems loading data from external sources, because you have the same problem with other blocks/plugins, do you use some free webhosting?

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 11:13 am
by poppelsepien
I use my own ubuntu server with Apache.

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 11:31 am
by Jachym
OK, well I really dont know how to help you

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 12:35 pm
by nikokara - BANNED
Hi poppelsepien

I have exact the same issue

Copy the data.txt from my zip to your plugin cache folder

and enjoy ;)

Jachym, the script cant parse the seatemperature.org page

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 12:37 pm
by Jachym
Copying the file to cache folder is useless because it will be automatically deleted once the cache expires (12h).

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 12:44 pm
by nikokara - BANNED
Yachym in my case data.txt has been never overwritten since 3 weeks
(the data.txt) current.txt yes it's overwritten


Edit: Since 5 weeks (21/09/2017)

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 1:11 pm
by Jachym
Yes, but the plugin will not work correctly, it needs the current.txt as well

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 1:24 pm
by nikokara - BANNED
Jachym

current.txt works fine. (is updated regularly)
data.txt is not updated (and i want this)
I have input the data only once in data.txt manually, i have no other choice :cry:

But the plugin works fine.
sea_temp1.jpg
sea_temp1.jpg (11.31 KiB) Viewed 19993 times
sea_temp2.jpg
sea_temp2.jpg (11.94 KiB) Viewed 19993 times

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 3:57 pm
by nikokara - BANNED
Jachym

Your data.txt (niagara fails) at meteotemplate.com
are not altered-updated too
since June 16, 2017, 3:47:56 PM

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 4:14 pm
by Jachym
Yes, but current is.

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 4:15 pm
by Jachym
Data.txt is loaded once for the location specified (so if you use different location then he cannot use it), these are records which do not change. Current data is cached for 12 h.

Re: Plugin Sea temperature

Posted: Wed Oct 25, 2017 4:26 pm
by nikokara - BANNED
Ok
lets make an experiment.
rename data.txt to old.

and give this temporary as location in the settings:
https://www.seatemperature.org/europe/g ... rhaven.htm

wats happen?

Re: Plugin Sea temperature

Posted: Thu Oct 26, 2017 10:09 pm
by hcorrin
Hi
I just tried this plugin and got the same current.txt with a value in and data.txt with just the site in no values for the site I had chosen Blackpool as nearest to my location taken from seatemperature site
So based on the data.zip posted earlier and using the data shown on the January page for Blackpool I was able to get the data required to fill in a data file and put it in the cache and that works.
I know my host has some limitations that may stop the data.txt from being populated with data, but when I tried it on my local test server it also failed to get data in the data.txt.
not sure what the full url is for getting this data.
Harold