Message Boards Message Boards

Capturing Data from an Android Phone using Wolfram Data Drop

Posted 10 years ago

POSTED BY: Diego Zviovich
12 Replies
Posted 10 years ago

Wanted to share with the community some extra very interesting functionality that @nikie answered in the mathematica stackexchange that can be very useful and cool when combined with the GeoLocation Data gathering functionality. Extracting road curves from image.

POSTED BY: Diego Zviovich

Diego, this is terrific. Tasker hadn't occurred to me before, but I immediately started creating some tasks and profiles on my phone after reading your post.

You might consider adding "Interpretation" to your databin so all the values for a given key are automatically assigned correct quantities or put into more immediately useful formats.

Here you can find out standard units for different Tasker variables: http://tasker.dinglisch.net/userguide/en/variables.html.

And then you could do something like this with your example bin above :

SetOptions[
  Databin[MyBinID], 
  “Interpretation”->
     {
      "loc"->"GeoCoordinates",
      "locSpeed" -> Restricted["StructuredQuantity", ("Meters")/("Seconds")], 
      "lightLevel" -> Restricted["StructuredQuantity", "Lux"], 
      "magneticField" -> Restricted["StructuredQuantity", "Microteslas”]
     }
  ]
POSTED BY: Alan Joyce
Posted 10 years ago

Thank you for the posting Alan, it is most helpful!

POSTED BY: Diego Zviovich

Another trick I'm enjoying:

Rule[#[[1]], #[[2]]] & /@ Values[Normal[bin[All, {"loc", "magneticField"}]]];
GeoRegionValuePlot[%]

There's almost certainly a more elegant way to handle the first step there, but the output is a nice map that plots the intensity of some selected variable at the point it was sampled.

POSTED BY: Alan Joyce

Hi,

I did something similar, but without Databin at the time for the iPhone,

http://community.wolfram.com/groups/-/m/t/344278

I have managed to look at Parkinson tremor data with it though. The things is that the streaming only works within the same network or it records the data locally - which is not that much fun. Alternatively, a Raspberry can pick the signal up and relay it to the Databin. I, too, have tried to get a Tasker like program for the iPhone and the closest thing I could find was:

https://workflow.is

It can send data by email. I managed to record my GPS positions on the way to work with it and have it sent to an email account. So technically it should work with the Databin. I'll try to show results later.

Cheers,

M.

POSTED BY: Marco Thiel

Yes, Marco, I also thought of your smart phone post right away. If you get any experimenting with iOS done - let us know, I would be very curious. There is new Barometer sensor on iPhone 6 - interesting to test.

POSTED BY: Vitaliy Kaurov

I'd be interested to see if there was an iPhone version of Tasker as well.

Thanks!

POSTED BY: Adriana O'Brien

You can try IFTTT apps.

POSTED BY: Vitaliy Kaurov

This is fantastic, Diego, thank you for sharing! I will have to play with this. I am giving the link to the Tasker app you were using. Looks like they have some starter guides on their site.

POSTED BY: Vitaliy Kaurov
Posted 10 years ago

Thanks Vitaly! I'm currently logging a snapshot of the variables every 2 minutes. For a better study on my phone usage pattern, I created three additional profiles:one when I turn on the screen, one when I turn off the screen, one when I navigate between applications. I had to remove the wolframdatalog task from them and replace it with a data logger on the phone memory due to the restrictions of a maximum of 60 data points per hour on the free account.

I'll have to search for a similar app for my kid's iphones. Im interested to see how much of their time they spend on their phone. Seems they are always plugged to the device.

POSTED BY: Diego Zviovich

This is just amazing Diego! I'll definitely experiment with my Android Tablet using this. Thanks for sharing!

POSTED BY: Bernat Espigulé
Posted 10 years ago

Thanks Bernat. Loved your Time Lapse Video and Data Drop example. Please let me know what cool things you got to do with the table.

POSTED BY: Diego Zviovich
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract