Starting skynet configs

pull/51/head
rick carlino 2014-05-30 06:55:02 -07:00
parent 7ba5e517bb
commit 2a22553364
4 changed files with 10 additions and 7 deletions

View File

@ -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');

View File

@ -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
]

View File

@ -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

View File

@ -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