 var url = "https://brew-fridge.herokuapp.com";
//var url = "http://localhost:5000";
var graph = require('./graph.js');

function start() {
  $.post(url + "/start", function(data) {});
}

function stop() {
  $.post(url + "/stop", function(data) {});
}

$(document).ready(function() {
  var photonUrl = "https://api.particle.io/v1/devices/310019000447343337373739/temp"
    //var url = "http://localhost:5000";
  var data = {
    on: true
  };

  $.get(url + "/data", graph.buildGraph);

  $.get(url + "/currentTemp", function(data) {
    var status = data.isOn ? "på" : "av";
    $(".result").html(data.temp + "\xB0 C er temperaturen nå og kjøleskapet er " + status);
  });

  $('.startbutton').click(start);
  $('.stopbutton').click(stop);
});

@@ -1,12 +1,14 @@
+//
  var url = %22
@@ -43,18 +43,16 @@
 p.com%22;%0A
-//
 var url 
@@ -53,39 +53,36 @@
 r url = 
-%22http://localhost:5000%22
+process.env.BREW_URL
 ;%0Avar gr
@@ -110,16 +110,55 @@
 h.js');%0A
+var deviceId = process.env.PHOTON_ID_1;
 %0Afunctio

Add url to environmentVariables