{"published":"2013-09-18 23:50:26","categories":[],"author_url":"https://blog.hatena.ne.jp/seinzumtode/","version":"1.0","title":"Node.js+Websocket+Raspberry pi+PIR\u30bb\u30f3\u30b5\u3067\u4eba\u4f53\u691c\u77e5\u30a2\u30e9\u30fc\u30c8\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308b","description":"\u30b3\u30fc\u30c9 server.coffee fs = require(\"fs\") http = require(\"http\") server = http.createServer() io = require(\"socket.io\").listen(server) server.on \"request\", (req, res) -> fs.readFile \"client.html\", (err, data) -> if err res.writeHead 500 return res.end(\"Error loading client.html\") res.writeHead 200, \"Cont\u2026","height":"190","type":"rich","width":"100%","blog_url":"https://seinzumtode.hatenadiary.jp/","blog_title":"how to code something","url":"https://seinzumtode.hatenadiary.jp/entry/20130918/1379515826","author_name":"seinzumtode","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20130918%2F1379515826\" title=\"Node.js+Websocket+Raspberry pi+PIR\u30bb\u30f3\u30b5\u3067\u4eba\u4f53\u691c\u77e5\u30a2\u30e9\u30fc\u30c8\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308b - how to code something\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","image_url":null}