Files

copied
Last update 5 years 9 months by Daniel Urencio
Filesiot
..
YunCurrent
baseYun
eagle_files
nodemcu_energy
BebasNeue.otf
YunCurrent.ino
brainApp.js
cloudServer.js
localServer.js
package.json
path.html
path.js
tcpDS18B20.ino
temperatura.html
watts.js
temperatura.html
<html> <head> <title>Prueba de temperatura</title> <style> @font-face { font-family: bebas; src: url(BebasNeue.otf); } </style> <script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" chartset="utf-8"></script> <script src=/socket.io/socket.io.js></script> </head> <body> <script> d3.select('body').style("background-color", "black"); var socket = io.connect(); var svg = d3.select("body").append("svg") .attr({width: "100%", height: 500}) .append("text"); socket.on("ya", function(i) { svg.attr({ x: 700, y: 350 }) .attr("font-size", "150px") .attr("font-family", "bebas") .attr("text-anchor", "middle") .attr("fill", "rgba(255,255,255,0.25)") .text(i + " °C"); }); </script> </body> </html>
Report a bug