NetAtmo
This plugin is for the owners of the NetAtmo weather station and allows updating the database via the NetAtmo API.
Installation
Prerequisites
- NetAtmo weather station (ideally with the additional wind and rain module)
- NetAtmo username and password
Installation
For NetAtmo you need to use the NetAtmo API. Don't worry, there is a script which will do most of the stuff automatically.
Set up:
- first go to the Plugins section at meteotemplate.com and download the NetAtmo plugin.
- extract the files
-
the NetAtmo API uses the O2Auth authorization system, which requires generating a token for each query. In order for this to work, you will need four things:
- your netAtmo username
- your netAtmo password
- clientID
- client Secret
- go to the Net Atmo Developers' section. You need to create a developer's account. It should be an easy process and is free. Then you need to create an App. Simply click Create an App at the top and fill in the required fields. It in fact absolutely does not matter what you fill in, the only important thing is that by creating an app you will be given your client ID and client secret. And this is what you will then use for the updates.
-
now make sure that you upload the netAtmo directory to your plugins directory of your template. This is absolutely crucial, otherwise it will not work. The path to the update file should then be something like
plugins/netAtmo/update/update.php
- now go to Meteotemplate control panel, choose settings for this plugin and provide the four necessary parameters and save the changes
- once this is uploaded to your server, you just have to set up a CRON job to execute the update script at regular intervals. For NetAtmo use 5 minute intervals because this is how the script is meant to be executed to provide correct numbers.
-
follow the procedure for setting up a CRON job given above. You can either use your own CRONs if you have it available via your own server or webhosting provider, or you can use one of the above mentioned free providers. Only make sure you choose the 5 minute interval. The URL for the CRON job must point to the update.php and also include your template update password, so it will be something like this:
...TEMPLATE_ROOT/plugins/netAtmo/update/update.php?pass=YOUR_UPDATE_PASSWORD
- set up CRON job (explained in the Update section of the Wiki)
Version history
1.0 - Jan 27, 2016- first release
- added live logging
- changed settings to GUI
- added compatibility with API
- minor timing fixes
|
|