TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ShowHN: dweet.io – Twitter for machines

100 点作者 Bug_Labs超过 11 年前
We created an amazingly simple IOT utility and are giving it away for free. We constantly found ourselves needing an easy way to get machines, sensors, and Things online and quickly get data from them. So we built Dweet.io, a simple websocket-based utility for connecting your things to the Internet. And we&#x27;re opening it up to everyone. We&#x27;d love to hear your thoughts and suggestions for it.<p>Http:&#x2F;&#x2F;Dweet.io<p>- Bug Labs

22 条评论

chrissnell超过 11 年前
Interesting idea but I would offer an alternative to JSON for device&lt;--&gt;dweet communication. JSON parsing on small embedded processors is often memory- and CPU-prohibitive. A small (preferably binary) protocol is lighter and faster to work with on these little microproccessors. When I built my Lightcube[1], I designed a binary protocol[2] that is easily parsed on the Arduino or even the smaller ATtiny microprocessors. Designing and implementing the protocol was a learning process for me but I ended up with something that didn&#x27;t tax the CPU, leaving me more processing cycles to interact with my hardware.<p>[1] Lightcube: <a href="https://github.com/chrissnell/Lightcube" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chrissnell&#x2F;Lightcube</a><p>[2] Lightcube protocol: <a href="https://github.com/chrissnell/Lightcube#lightcube-protocol" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chrissnell&#x2F;Lightcube#lightcube-protocol</a>
评论 #7199159 未加载
评论 #7199163 未加载
评论 #7200541 未加载
sthatipamala超过 11 年前
Why does the API respond with keys like this?<p><pre><code> &quot;this&quot;: &quot;succeeded&quot;, &quot;by&quot;: &quot;getting&quot;, &quot;the&quot;: &quot;dweets&quot; </code></pre> It&#x27;s cute that it&#x27;s human readable but one would have to write awkward code like:<p><pre><code> if(response[&#x27;this&#x27;] == &#x27;suceeded&#x27;) print response[&#x27;with&#x27;]</code></pre>
评论 #7199656 未加载
telecuda超过 11 年前
Cool and good luck! I&#x27;d be cautious about the name sounding so close to Tweet, especially when you advertise it&#x27;s &quot;like Twitter.&quot; Less impact changing the name now than later.
评论 #7198883 未加载
adamb_超过 11 年前
Very cool. One suggestion for the product page is some simple use-cases for why you&#x27;d use such a service. Also, are there size constraints for the dweets?
评论 #7198746 未加载
primitivesuave超过 11 年前
This is awesome! It used to be somewhat inconvenient to set up a simple message-passing backend for my Arduino Ethernet. This is exactly what I needed to eliminate that mundane task. To the creator, my eternal gratitude!
评论 #7199083 未加载
alexnking超过 11 年前
Nice! One thing I would like to see is some way to reserve names so that only I can use them – right now if I&#x27;m publishing data to <a href="http://dweet.io/follow/outdoors" rel="nofollow">http:&#x2F;&#x2F;dweet.io&#x2F;follow&#x2F;outdoors</a> , anyone can easily override that with <a href="http://dweet.io/dweet/for/outdoors?no=temp&amp;for=you" rel="nofollow">http:&#x2F;&#x2F;dweet.io&#x2F;dweet&#x2F;for&#x2F;outdoors?no=temp&amp;for=you</a> - so that&#x27;d be a neat feature. Unless the idea is that handles would be shared between devices...<p>BTW, I&#x27;m dweeting that outdoor temperature using SmartThings and this code - <a href="https://gist.github.com/alexking/8880479" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;alexking&#x2F;8880479</a>
评论 #7219045 未加载
评论 #7201627 未加载
评论 #7207427 未加载
bdcravens超过 11 年前
So it&#x27;s a pub-sub over HTTP. Attaching Twitter to the name makes it sound like something Web 2.0, I suppose.
评论 #7199726 未加载
bliti超过 11 年前
I&#x27;m currently working on a similar system aimed at robotics. M2M is rapidly growing under the radar due to mobile phones making a lot of the technology needed cheaper. The interesting bit here is the protocol. Which still feels a bit off to me, but still works well. Designing protocols is not an easy task. Well done Bug Labs.<p>@jheising Send me an email. I&#x27;d like to get a friendly conversation going on. :)
评论 #7204432 未加载
terabytest超过 11 年前
I kind of like the HAPI concept but it feels strangely redundant. Especially in the responses, where almost half of the k&#x2F;v pairs are just for &quot;decoration&quot; purposes. I concede that it does make things a slight bit easier to read, but are you guys sure it isn&#x27;t bordering on redundancy for the sake of redundancy?<p>Very nice idea, by the way! Congrats!
评论 #7199620 未加载
dchuk超过 11 年前
This is the first time I&#x27;ve come across the HAPI spec. Does anyone know of other projects that are using that style of API?
评论 #7199361 未加载
josephwegner超过 11 年前
Do you guys make any promises about latency between when a dweet is sent and when a following client will receive it?<p>Among other things, this seems like it could be a free pub&#x2F;sub system.. If the latency is low that would make this incredibly useful.
评论 #7198410 未加载
cpr超过 11 年前
Nice, but the API seems pretty non-RESTifarian.<p>&#x2F;get&#x2F;latest&#x2F;dweet&#x2F;for would more naturally be &#x2F;get&#x2F;dweet with a time parameter, or some such.<p>&#x2F;for&#x2F;[device] would more naturally just be a device parameter.<p>Etc.
评论 #7199076 未加载
Bug_Labs超过 11 年前
Today we are launching dweet.io, an amazing IOT utility. We are giving it away for free, so please try it. Thank you!
评论 #7198373 未加载
s_kennedy超过 11 年前
So cool. Such a simple yet revolutionary concept to enable open and extensible connectivity for IoT.
jchulce超过 11 年前
Why on earth are you not using HTTPS?
评论 #7201759 未加载
ChuckMcM超过 11 年前
Oh this is very cool. I am so going to plug this into my Electric Imp when I get home.
评论 #7199058 未加载
angersock超过 11 年前
Would you all be interested on hosting a contest to do something cool with this?
评论 #7199063 未加载
jkarneges超过 11 年前
Interesting idea. How about documenting the real-time updates protocol?
评论 #7198394 未加载
elwell超过 11 年前
Maybe once a week does a website design make me smile. Thank you.
angersock超过 11 年前
&quot;What&#x27;s the catch?&quot;<p>The whole world sees your machines. :)
评论 #7199605 未加载
Queue29超过 11 年前
Using HTTP for this is ridiculous. CoAP or MQTT would have been the obvious choice, considering they were designed for exactly this use m2m use case.
评论 #7199009 未加载
评论 #7199787 未加载
评论 #7199090 未加载
评论 #7199655 未加载
评论 #7199105 未加载
评论 #7200557 未加载
joeblau超过 11 年前
WOW! Bug Labs, you guys are still around. I remember back in the Summer of 2006 when the BugBox was the hot product. I was trying to build a real-time geo-tagging service to tag <i>speed traps</i> using the BugBox[1]. Then 6 months later, Steven Paul Jobs came though with the hand of magic, announced the iPhone with all of the sensors that were in the bug box with a much better product and simultaneously erased the Bug Labs from my mind. As far as <a href="http://dweet.io" rel="nofollow">http:&#x2F;&#x2F;dweet.io</a>, this looks like a very good implementation of a message bus. The two things I&#x27;m worried about with this project are performance and concurrency.<p>Lets start with performance. If you&#x27;re trying to get a predicted 26 billion devices by 2020[2] on a Node.js&#x2F;Socket.io Framework, you&#x27;re going to need so many machines, the business case wont be viable. Socket.io is great for message passing, but at high throughput, it&#x27;s going to fall short. Message busses like ØMQ (ZeroMQ) are a lot lighter and can bind to file descriptor without requiring spawning up an HTTP server. As for Node.js performance; It&#x27;s great for JSON serialization (Which you&#x27;re going to be doing a lot of), but it&#x27;s far from the fastest. Node blows away languages&#x2F;frameworks like Ruby&#x2F;Rails and Python&#x2F;Django in speed when it comes to JSON serialization (And almost anything else), but it&#x27;s still in the 30th percentile for JSON serialization which is very low[3]. With this being one of your most performed operations, this is something that should be as fast as possible.<p>As far as concurrency is concerned; Node.js isn&#x27;t an inherently concurrent language although it does have it&#x27;s non-blocking I&#x2F;O callback magic. Obviously, you can use modules like cluster, the native process spawning or backgrounder[4], but the weight of threads is going to be so expensive compared to the amount of work that&#x27;s needed to be preformed. Supporting concurrent paradigms like RUN.At, RUN.Until, RUN.After, RUN.Every, RUN.WithTimeout, and RUN.BatchJobs are easy to do in Node.js, but then getting those individual processes to talk to each other in an orderly fashion using callbacks and Socket.io seems like duct tape and chewing gum over just using a language that supports concurrency natively.<p>Other than that, I love it, I understand the vision (because we&#x27;re building something similar), and I&#x27;m very glad that you guys open sourced this project.<p>[1] - <a href="http://www.vroomtrap.com/downloads" rel="nofollow">http:&#x2F;&#x2F;www.vroomtrap.com&#x2F;downloads</a><p>[2] - <a href="http://www.gartner.com/newsroom/id/2636073" rel="nofollow">http:&#x2F;&#x2F;www.gartner.com&#x2F;newsroom&#x2F;id&#x2F;2636073</a><p>[3] - <a href="http://www.techempower.com/benchmarks/#section=data-r8&amp;hw=i7&amp;test=json" rel="nofollow">http:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=data-r8&amp;hw=i7...</a><p>[4] - <a href="http://jolira.github.io/backgrounder/" rel="nofollow">http:&#x2F;&#x2F;jolira.github.io&#x2F;backgrounder&#x2F;</a>
评论 #7201742 未加载