Page 2 of 24 FirstFirst 123412 ... LastLast
Results 11 to 20 of 234

Thread: New Android app: PitDroid

  1. #11
    TVWBB Pro
    Join Date
    Sep 2011
    Location
    Goshen, VA
    Posts
    732
    It was very windy yesterday.

    I find I get better automated open lid results by increasing the % temp change needed to trigger them. This works well when it is windy, or when you are smoking at 160F too.

    dave

  2. #12
    TVWBB Honor Circle Bryan Mayland's Avatar
    Join Date
    Apr 2010
    Location
    Tampa, FL
    Posts
    4,548
    Yeah the defaults are made for my grill, which is a big green egg so if the temperature ever drops 6% there's no doubt the lid is open.

    The graph looks pretty sweet. Is it a HTML canvas with the flot control on it? Also how are you getting the data? Polled or server-sent streaming?

  3. #13
    TVWBB Member
    Join Date
    Feb 2013
    Location
    Austin, TX
    Posts
    66
    I just uploaded a new version with alarm support, the details are in the first post.

    Hey Bryan, the graph is done with a library I found, AndroidPlot. The data I am just polling. I looked into using the streamed version, but it doesn't seem like something Android supports. If you want data pushed to you, you're supposed to use some Android cloud thing. Oh, and if anyone wants to look at the code, it's on GoogleCode. I licensed it under the Apache 2.0 license, so people can do what they want with it.

  4. #14
    TVWBB Honor Circle Bryan Mayland's Avatar
    Join Date
    Apr 2010
    Location
    Tampa, FL
    Posts
    4,548
    Quote Originally Posted by Colin Bonstead View Post
    The data I am just polling. I looked into using the streamed version, but it doesn't seem like something Android supports. If you want data pushed to you, you're supposed to use some Android cloud thing.
    Nah that's for when you're disconnected and need to send infrequent short messages.

    What you do is a create a worker thread that creates the BufferedReader like you're doing but have it not return. Just keep calling BufferedReader::Readline() and you'll get the streaming status messages which are just lines of text:
    event: hmstatus
    data: { json data that you're getting now }
    (blank line)

    When you get an hmstatus event, parse the data with your parseStatus() and post it back to the main thread. It is just like updating a progress meter from a background thread except instead of pushing the progress up to the view, you'll pushing a NamedSample object.

  5. #15
    TVWBB Super Fan
    Join Date
    Aug 2010
    Posts
    479
    I'll check out the .2 tonight.

  6. #16
    TVWBB Member
    Join Date
    Feb 2004
    Location
    West Des Moines, Iowa
    Posts
    55
    Installed and played around with a little bit ago. Simple, worked great for me.

    The only semi-goofy thing is that I didn't have a pit probe plugged in, and it read -225 ( the zero from no probe, minus 225 for the set temperature). Bryan, does your display routine do some validation / math on that value that isn't passing across the web service / request that Colin is polling?

    (I confess I'm too lazy to fire up the work laptop and load the code for either.... )

    Jarrod

  7. #17
    TVWBB Fan
    Join Date
    Aug 2011
    Location
    Renton, WA
    Posts
    181
    So after using this last night, I do have one suggestion. Use Androids Alarm system to sound the alarm. So with my alarm clock app or for tasker when I have it play an alarm, I can have my phone on silent but whenever they are triggered, the alarm sounds audible. With PitDroid I had to keep my sound on the phone last night and anytime I got a new email, new IM, new notification of any kind the phone would make a noise and I woke a few times when I didnt need to. It would be great to leave the phone on silent, but have PitDroid sound an alarm either way.

  8. #18
    TVWBB Member
    Join Date
    Feb 2013
    Location
    Austin, TX
    Posts
    66
    Hey Jarrod, it's expected that you would see -225 if the pit probe isn't connected. The second parameter is degrees off from the set point, so I guess it's considering the current temperature zero. I should probably just not show it in that case though.

    Jason, I didn't even know you could make a sound if the phone is on silent. I kind of assumed it would just block any attempts. I always keep my phone on vibrate though, so I don't really have much experience with sounds. I'll look into that though.

  9. #19
    TVWBB Fan
    Join Date
    Aug 2011
    Location
    Renton, WA
    Posts
    181
    Quote Originally Posted by Colin Bonstead View Post
    Jason, I didn't even know you could make a sound if the phone is on silent. I kind of assumed it would just block any attempts. I always keep my phone on vibrate though, so I don't really have much experience with sounds. I'll look into that though.
    Try downloading https://play.google.com/store/apps/d...ure=nav_result. Put your phone on silent and then set an alarm. The phone will sound the alarm regardless of whether or not your phone is on silent.

  10. #20
    TVWBB Honor Circle Bryan Mayland's Avatar
    Join Date
    Apr 2010
    Location
    Tampa, FL
    Posts
    4,548
    A way to get around not being able to trigger alarms when in vibrate mode is to temporarily disable vibrate mode when the alarm goes off:
    Code:
    AudioManager audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
    int ringerMode = audioManager.getRingerMode();
    if (ringerMode != AudioManager.RINGER_MODE_NORMAL)
    {
        audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
        int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM);
        audioManager.setStreamVolume(AudioManager.STREAM_ALARM, maxVolume, 0);
    }
    You'll want to save the old ringer mode and set it back once the alarm is turned off too. Probably the volume of the alarm stream as well.

Page 2 of 24 FirstFirst 123412 ... LastLast

Similar Threads

  1. I created a HeaterMeter Android App! You can create one too! Pics inside
    By Jason J in forum HeaterMeter DIY BBQ Controller
    Replies: 12
    Last Post: 02-14-2013, 08:10 AM
  2. CyberQ WiFi, Android And Adhoc Mode
    By Bob Mann in forum Automatic Temperature Control Systems
    Replies: 2
    Last Post: 01-06-2013, 02:01 PM
  3. StokerBot Android App
    By Erik Gilling in forum Automatic Temperature Control Systems
    Replies: 5
    Last Post: 04-26-2012, 07:09 AM
  4. UDS that looks like Android Robot
    By Bryan B in forum Barbecuing
    Replies: 5
    Last Post: 03-23-2012, 08:56 AM
  5. Android Grilling Apps Anyone?
    By Richard Diaz in forum Kitchen Equipment & Gadgets
    Replies: 4
    Last Post: 09-18-2011, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •