Note: this is emoncms v2 documentation and will be updated shortly
Emoncms building extentions
There are two main ways to build extentions:
1) Building directly upon the emoncms models and database by directly including the model php scripts in your application.
Example: Including database access and the feed model:
require "../emoncore/Includes/db.php"; $e = db_connect(); require "../emoncore/Models/feed_model.php";
2) Interfacing with the emoncms models and database via the emoncms API
Post data
emoncms/api/post?apikey=YOURAPIKEY&json={power:200.2}
Get data
emoncms/api/getfeed?apikey=YOURAPIKEY&feedid= &start= &end= &resolution=