Use node.js to interact with LLAP devices (example): https://github.com/flabbergast/node-llap
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
875 B

  1. extends layout
  2. block top
  3. .navbar
  4. .navbar-inner
  5. #user-id.brand
  6. block left-column
  7. #serialtalk.well
  8. h5 Communicate over serial
  9. //form.form-inline
  10. .input-append
  11. input#serialtalk-text(type="text", placeholder="LLAP message")
  12. button#serialtalk-btn.btn Send
  13. p Last response: 
  14. span#serialtalk-resp nothing yet
  15. block main-column
  16. #devices
  17. h3.well.text-center TM / temperature sensor
  18. br
  19. button.btn.btn-primary.btn-large.disabled#TMtemp Temp: No value yet
  20. button.btn.btn-info.btn-large.disabled#TMbatt Batt: No value yet
  21. block right-column
  22. #logs.well
  23. h5 Logs
  24. div#logs-content
  25. block footer
  26. p <strong>Server info:</strong>&nbsp;
  27. | #{process.title}:[#{process.version}]
  28. | serial-port:[
  29. span#serial-port-elt
  30. |]
  31. block scripts
  32. script(src='/js/index.js')
  33. script(src="/socket.io/socket.io.js")
  34. script(src='/js/socket_client.js')