Download data from Netatmo weather module/station to Postgress DB using PLPython
https://github.com/philippelt/netatmo-api-python (follow the instruction)
pip install lnetatmo
CREATE SCHEMA daikin;
CREATE SCHEMA mycron;
download file: netatmo_weather.sql
download file: mycron_py_netatmo.sql
Call plpython function to copy data to dB: (testing)
SELECT mycron.py_netatmo();
Create JOB: (every 5 minutes)
SELECT cron.schedule ('Netatmo_Weather','*/5 * * * *',$$select mycron.py_netatmo()$$);
Unselect from cron: 17->id_job:
select cron.unschedule(17);
Table of the created jobs:
SELECT * FROM cron.job;
History of jobs run:
select * from cron.job_run_details order by runid desc;