Starting skynet configs
parent
7ba5e517bb
commit
2a22553364
|
@ -8,9 +8,7 @@
|
|||
//= require angular/angular-route
|
||||
//= require ng-rails-csrf
|
||||
//= require farmbot_app/farmbot
|
||||
//= require_tree ./farmbot_app/services
|
||||
//= require_tree ./farmbot_app/controllers
|
||||
|
||||
//= require_tree ./farmbot_app
|
||||
|
||||
//bootstrap the alert box plugin
|
||||
$(document).foundation('alert');
|
|
@ -4,6 +4,11 @@
|
|||
angular.module('FarmBot').controller "OverviewController", [
|
||||
'$scope'
|
||||
'Restangular'
|
||||
($scope, Restangular) ->
|
||||
$scope.device = {}
|
||||
'Skynet'
|
||||
($scope, Restangular, Skynet) ->
|
||||
Restangular.all('devices').getList().then (data) ->
|
||||
$scope.devices = data
|
||||
$scope.device = #new Skynet(dvc.uuid, dvc.token)
|
||||
$scope.goHome = ->
|
||||
debugger
|
||||
]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# cnxn = new Skynet(device.uuid, device.token, device.message)
|
||||
Skynet = () ->
|
||||
class Skynet
|
||||
constructor: (uuid, token, callback) ->
|
||||
constructor: (uuid, token) ->
|
||||
config =
|
||||
uuid: uuid
|
||||
token: token
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
%br/
|
||||
%ul.button-group.even-3
|
||||
%li
|
||||
%a.button.small{href: "#"} Jog to Home
|
||||
%a.button.small{href: "", 'ng-click' => 'goHome()'} Jog to Home
|
||||
%li
|
||||
%a.button.small{href: "#"} Calibrate
|
||||
%li
|
||||
|
|
Loading…
Reference in New Issue