Netatmo plugin

Post Reply
User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Netatmo plugin

Post by tobydude » Wed Jul 07, 2021 6:54 pm

Hi.
Is the NetAtmo plugin working as it should, or is it something wrong with it, now?
Can´t get the block NetAtmo Modules to work.
On my weatherpage it say "The live conditions file was not found. Make sure you have the NetAtmo plugin installed and using at least version 2.0".
Any ideas?

https://fjærvollan.no/template/indexDesktop.php

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Netatmo plugin

Post by davidefa » Wed Jul 07, 2021 9:18 pm

The netatmo block is looking for the file: plugins/netAtmo/netAtmoLive.txt
This file is generated by the netatmo plugin ( plugins/netAtmo/update/update.php )
Do you call this script to update your database?
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Netatmo plugin

Post by tobydude » Thu Jul 08, 2021 7:13 am

Thanks for answering.
There is no netAtmoLive.txt in my plugins/netAtmo/ folder. There is only one .txt file: netAtmoVersion.txt
Is there other settings in the netatmo plugin I must set other than (see picture)
The commandline for the cron look like this:
php -q /home/fjrvofei/public_html/template/plugins/netAtmo/update/update.php?pass=xxx

Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Netatmo plugin

Post by tobydude » Thu Jul 08, 2021 11:01 am

When making a cron at cron-job.org, how will the command-line look like?
Will it look like something like this? :
https://xn--fjrvollan-h3a.no/template/p ... ?pass=xxxx or should there be something more there?

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Netatmo plugin

Post by davidefa » Thu Jul 08, 2021 1:34 pm

Yes the cron job should be like the one you posted.

But there is a problem ( if I understand it correctly, not sure of this ).
You are now updating the meteotemplate database in 2 different ways:
1) via Weather Display ( like you did till now )
2) via the netatmo plugin ( via the cron job you added )
And this is 'too much' ( you should only enable one of the two )

You have now another ( bigger ) problem: your database is 'on strike' ( none of the block/pages that relay on data from the database is working )
Just before lunch I saw in your cache/apiLog.txt that the database update resulted in error, and that an 'alter table' was executed on the database ( which resulted in an error too ).
This reminds me what happened to another user on the forum ( he ended up modifying the api.php file, if I remember correctly )
I think you sholud first 'fix' this ( resetting/restarting the database or killing the processing that are locking it )
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Netatmo plugin

Post by tobydude » Thu Jul 08, 2021 2:29 pm

Tanks for answer.
Thats right, I upload the clientraw.txt file from Weather Display to a different server than the Meteotemlate is on.
But Weather Display use the Metetemplate API to upload files.

In the main setup in Meteotemplate, the adress to MySQL Database server had changed. Dont know why. :)
That made the error.
Ir seems to work fine now. Thanks.
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Netatmo plugin

Post by tobydude » Fri Jul 09, 2021 8:35 am

I deleeted the cronjob and the netatmo module, and are now uploading just via netatmo api in WD.

Post Reply