Solar Array and home energy dashboard.
 
 
 
 
 

7 lines
200 B

  1. // Make sure you're editing the jspp file
  2. var wsproto = 'wss:';
  3. if (document.location.protocol == 'http:')
  4. wsproto = 'ws:';
  5. var socket = new WebSocket(wsproto + '//' + location.host + '/solar.ws');