First import of a somehow working app
This commit is contained in:
parent
bd05d7e26a
commit
b2890d48f2
13 changed files with 291 additions and 1 deletions
9
app/routes/heaters.js
Normal file
9
app/routes/heaters.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import Ember from 'ember';
|
||||
import config from '../config/environment';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
model() {
|
||||
//return [{"id":1,"name":"Chauffage Salon","consign":9.0,"pins":[0,1],"temp":15.625,"temp_probe":2},{"id":2,"name":"Chauffage Chambre 1","consign":7.0,"pins":[2,3],"temp":14.937,"temp_probe":1}]
|
||||
return Ember.$.getJSON(config.api+'/effectors/heaters.json');
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue