new plugin ecowittNet
Posted: Sat Jul 30, 2022 9:25 pm
This plugin retrieves the data to feed the meteotemplate database from ecowitt.net via the ecowitt v3 api.
If for, some reason, you can't use the ecowitt plugin, this plugin is for you.
Installation:
- extract the compressed archive in the plugin folder
- copy the updateEcowittNet.php script in the load/crons folder ( and set a cron job, if not already set, to execute the load/cron.php script as described in the wiki )
- execute the plugin setup via the meteotemplate control panel ( it could be quite long if you have many sensors )
Setup:
1) first time you execute the setup insert your application_key, api_key and mac address, click the 'save' button and reload the page
2) you have now access to all your 'sensors'
3) now you have to set the 3 parameters:
- MT Field ( field name as used by meteotemplate T,H,P,W,G,B... see meteotemplate wiki, you can use also other field names, all will be imported in the meteotemplatreLive.txt file )
- Conversion ( unit of measure conversion from the ecowitt format to the format used in the meteotemplate database, the alldata table has user definable unit of measure of each fields via the main setup, the alldataExtra table fields all have fixed unit of measure, for example extra temperature sensors are always saved in °C, even if main outdoor temperature is saved in °F )
- Enabled ( enable all sensor you want to pass to meteotemplate )
NOTE
Ecowitt has a 'funny' way of defining your sensors ( for example you'll find the sensors of a WS65 in group outdoor, solar_and_uvi , rain and wind ) and you need to carefully choose which to import.
The file cache/updateEcowittNetLog.txt contains a log of the import process.
v1.0
- initial release
v1.1
- typo correction ( it affects only linux servers )
If for, some reason, you can't use the ecowitt plugin, this plugin is for you.
Installation:
- extract the compressed archive in the plugin folder
- copy the updateEcowittNet.php script in the load/crons folder ( and set a cron job, if not already set, to execute the load/cron.php script as described in the wiki )
- execute the plugin setup via the meteotemplate control panel ( it could be quite long if you have many sensors )
Setup:
1) first time you execute the setup insert your application_key, api_key and mac address, click the 'save' button and reload the page
2) you have now access to all your 'sensors'
3) now you have to set the 3 parameters:
- MT Field ( field name as used by meteotemplate T,H,P,W,G,B... see meteotemplate wiki, you can use also other field names, all will be imported in the meteotemplatreLive.txt file )
- Conversion ( unit of measure conversion from the ecowitt format to the format used in the meteotemplate database, the alldata table has user definable unit of measure of each fields via the main setup, the alldataExtra table fields all have fixed unit of measure, for example extra temperature sensors are always saved in °C, even if main outdoor temperature is saved in °F )
- Enabled ( enable all sensor you want to pass to meteotemplate )
NOTE
Ecowitt has a 'funny' way of defining your sensors ( for example you'll find the sensors of a WS65 in group outdoor, solar_and_uvi , rain and wind ) and you need to carefully choose which to import.
The file cache/updateEcowittNetLog.txt contains a log of the import process.
v1.0
- initial release
v1.1
- typo correction ( it affects only linux servers )