google-sheet2Html

/*! * * Google Sheets To HTML v0.9a * * To use, simply replace the "tq?key=" value in the * URL below with your own unique Google document ID * * The Google document's sharing must be set to public * */ google.load('visualization', '1', { packages: ['table'] }); var visualization; function drawVisualization() { var query = new google.visualization.Query('https://spreadsheets.google.com/tq?key=https://docs.google.com/spreadsheets/d/1-vUEZ9tae5C_OXzSi0dQPWwUrO3H5S-gImB5afFgqDg/edit?usp=sharing'); query.setQuery('SELECT A, B, C, D label A "Duration", B "Song", C "Requested By", D "URL"'); query.send(handleQueryResponse); } function handleQueryResponse(response) { if (response.isError()) { alert('There was a problem with your query: ' + response.getMessage() + ' ' + response.getDetailedMessage()); return; } var data = response.getDataTable(); visualization = new google.visualization.Table(document.getElementById('table')); visualization.draw(data, { legend: 'bottom' }); } google.setOnLoadCallback(drawVisualization);

Saturday, July 22, 2017

แก้ปัญหา NodeMCU ทำการ Upload ข้อมูลไม่ได้


แก้ปัญหา NodeMCU upload ข้อมูลด้วย Arduino IDEไม่ได้





เมื่อทดลองใช้ NodeMCU V2 ด้วย Arduino IDE โดยใช้ OS Linux มีปัญหา อัพโหลด ข้อมูลลงไปยัง บอร์ดไม่ได้ มีข้อความ

An error occurred while uploading the sketch

error: cannot access /dev/ttyUSB0


 

ให้ทำการแก้ไข permissionโดย ใช้คำสั่ง
 
$ sudo usermod -a -G dialout <username>
$ sudo chmod a+rw /dev/ttyUSB0


โดย <username> คือชื่อที่ใช้ในการ ล๊อกอิน ของคอมพิวเตอร์
ข้อมูลจาก