Ellipto: a DIY Fitness Tracker and Dashboard In 70 Lines 32
New submitter InternetOfJim writes: "This is one of the most fun weekend projects I've done in a while — a fitness tracker for my elliptical trainer. But the real agenda was to figure out how lazy I could be via web services (Keen IO and Brace IO) and development platforms (Electric Imp). Quite lazy, as it turns out. I wound up with a working device and a nice realtime dashboard with no soldering, no backend to manage, and surprisingly little original code needed beyond the sensing and power conserving parts of the firmware and a little javascript to customize the dashboard."
oh another step counter (Score:2)
What's up with all the glorified pedometers these days? When I read 'fitness tracker' I was thinking about something that tracks your fitness, not just your steps. He could also install any of the thousands of pedometer apps on his android phone and be done with it.
Re: (Score:1)
Because it wouldn't give a chance for the author to plug his wife's company in a Slashvertisement.
Re: oh another step counter (Score:1)
Warning: Slashvertisement (Score:5, Insightful)
Stop. InternetOfJim, it's good that you came clean on the fact that this is your wife's company, but you really needed a bold "disclaimer" in both the summary and article for me to think this is anything but a self-serving post to advertise something that will profit your wife and, by obvious extension, you. The fact that this is your first /. submission only supports this.
Re:Warning: Slashvertisement (Score:5, Insightful)
If it was strictly an opinion piece or even a simple review, I might agree. If this was aimed at a comparison between products, absolutely. However, looking over this there is quite a bit of content, with code. Its basically a tutorial on setting up the device.
Why does someone who is basically a tutorial author need to disclose his relationship to the company?
Disclosures are to call out the appearance of conflict of interest. I see no clonflict here, in fact, whether the author was paid outright to write the piece or not seems irrelevant for the type of content. I mean lets go one step further and assume its not his wife but him, lets make him an officer of the company even. Where is the conflict in him givning examples of how to use his product on a technical level? If Jeff Bezos wrote an article on how to setup your amazon merchant account, nobody would bat an eyelash.
In short, disclaimers are for professionals who need to maintain a reputation for impartiality, not for people doing demos.
Re: (Score:2)
Marketing people? I have never been so insulted. Marketing?
Disclaimers are for situations where there could be any confustion. There is no confusion here. You are welcome to hold whatever standards you want though. Enjoy yours I guess.
disclaimer enough Re:Warning: Slashvertisement (Score:3)
r.e. self serving: sure, but it also serves others (like myself) by being educational. I hope Keen IO makes a ton of money and goes on to create more cool things.
...but you really needed a bold "disclaimer" in both the summary and article for me to think this is anything but a self-serving post to advertise something that will profit your wife and, by obvious extension, you.
70 lines of code ... IF (Score:5, Insightful)
you ignore the massive libraries it uses.
I can write anything you want in a single line of code, given enough time to make a library that encapsulates all the required functionality into single function call.
Its not impressive, it just shows how you think you're impressive for using so much of someone else's hard work and acting like you did it.
Re: (Score:2)
My thoughts too.
The lines of code comparison is only apt if you are comparing programs that do the same for the same language.
My Python Web Server is coded in 3 lines of code... But that is because Python has a Web Server library built in. If I were to do it in C with only the standard libraries. it would probably be a few hundred lines. If I needed to do the standard libraries too, then I probably need at least a few hundred lines of assembly. Of course the assembly is often contains macros of commonly
Re: My Favorite part (Score:4, Informative)
Re: (Score:2)
1. This is a legitimately new approach.
No, it isn't. I have several 'IoT' things, NONE of them use some custom backend infrastructure somewhere else.
Pretty much everyone I know in the IoT and connected device world is still building a backend infrastructure and coding their own APIs, even for pure analytics apps.
Then you're a newb with little experience who must have just recently discovered the NEST and think thats normal. You just included the backend infrastructure on the device, and for a single object. This is how pretty much everything started. Years ago.
2. A detailed tutorial seemed appropriate so people can see some of the ins and outs of doing this, and to show that now non-experts can do this kind of thing as a weekend project.
Except its not a weekend project for those who don't already have considerable know how in the area.
Obviously, this doesn't eliminate code or servers. But the big win is that I don't have to deal with any of that.
Congratulations, you've caught up to 15 years
Re: My Favorite part (Score:1)
Re: 70 lines of code ... IF (Score:1)
Re: (Score:2)
It sometimes helps to picture the Slashdot community as a room full of Comic Book Guys. It's probably not far from reality.
FWIW, I think this is a pretty cool project.
Re: (Score:2)
The two are not mutually exclusive, especially in such a bunk piece of slashvertising.
Best part is, last time I checked, the electric imp did everything programming wise via 'the cloud' ... which is exactly what you claim to not be using.
Did you not program it with a cloud based IDE?
Oh for fucks sake, you even used cloud backends for everything after saying you didn't need all that infrastructure.
You don't even know how it works, do you?
Re: 70 lines of code ... IF (Score:1)
I mentally shut this out when... (Score:2)
I mentally shut this out when I realized debounce() and tilted() were sharing a global variable called "ignore". Yeah, let's see what happens when feature creep sends this beyond 70 lines.
Re: I mentally shut this out when... (Score:1)
Re: (Score:2)
OK then, it's the environment that's stupid. Hardware and memory are cheap. Get something just a bit more expensive that permits better design. You'll be happy in the long run.
Re: (Score:2)
OK, scratch that. Interrupt service routine... it's been a long time since I've done that kind of thing; but I seem to recall that even full-blown PCs have that kind of issue. It looked like some kind of scripting language to me. There are so many lame scripting environments out there, I just kind of assumed. So. I apologize.
I was skimming the text and code of course and not doing a lot of deep thinking about it. You can't do deep thinking with stuff like this you read online. You have to triage. Gi
Re: Advert for wife's company. Lame. (Score:1)
decent project (Score:2)
This is actually a nice little project. It is what many projects out there should be if they want to be useful to normal people. It has a fairly simple hardware component and a fairly simple software component and a fairly decent reason for being created. My kids could take this as a starting point and within a few days have something physical that they have created and be able to modify it from there to do something useful or educational or both. These are the sorts of projects that should be done in s
If Electric Imp dies so do all "the cloud" goodies (Score:2)
Electric Imp would be interesting if open source. Alas, it's not. It's proprietary and everything is in "the cloud," so if the company dies so do all the projects and products that work with it as you lose access to the Imps that are deployed.
What I find amazing is that product's like Lockitron are totally dependent on this may not be there tomorrow proprietary cloud platform.