I am trying to build my own weather station. So far I have a Humidity, UV and Baro (all V2) bricklets. I want to process all their data. I have made a PHP script (my best programming skills are PHP) that calls the bricklets one by one, get their value and log it into a mysql database with a timestamp.
Would there be a way to use callbacks to do the same? Problem I can't figure out is when all values have been received, aggregate them and send them off.
Catch multiple callbacks and process in one go
in Software, Programmierung und externe Tools
Geschrieben
Hi,
I am trying to build my own weather station. So far I have a Humidity, UV and Baro (all V2) bricklets. I want to process all their data. I have made a PHP script (my best programming skills are PHP) that calls the bricklets one by one, get their value and log it into a mysql database with a timestamp.
Would there be a way to use callbacks to do the same? Problem I can't figure out is when all values have been received, aggregate them and send them off.
Thanks in advance!