|
Q-talk *ON TOPIC ONLY* QUALITY ON TOPIC discussion of Backyard BBQ, grilling, equipment and outdoor cookin' . ** Other cooking techniques are welcomed for when your cookin' in the kitchen. Post your hints, tips, tricks & techniques, success, failures, but stay on topic and watch for that hijacking. |
|
Thread Tools |
05-09-2012, 05:25 PM | #16 | |
is one Smokin' Farker
Join Date: 01-22-11
Location: Indian Hills, California
|
Quote:
Oh, and by the way. Doesn't look like you have been too lazy lately |
|
|
05-09-2012, 06:47 PM | #17 |
is one Smokin' Farker
Join Date: 01-22-11
Location: Indian Hills, California
|
Ok, here you go. I'm terrible at documentation, code is worth a thousand words
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using System.IO; using System.Xml.Linq; namespace CyberQWifi { /// <summary> /// Summary description for CyberQData /// </summary> /// public class CyberQObjectModel { public decimal OUTPUT_PERCENT { get; set; } public TimeSpan TIMER_CURR { get; set; } public int COOK_TEMP { get; set; } public int FOOD1_TEMP { get; set; } public int FOOD2_TEMP { get; set; } public int FOOD3_TEMP { get; set; } public int COOK_STATUS { get; set; } public int FOOD1_STATUS { get; set; } public int FOOD2_STATUS { get; set; } public int FOOD3_STATUS { get; set; } public int TIMER_STATUS { get; set; } public int DEG_UNITS { get; set; } public int COOK_PROPBAND { get; set; } public int COOK_RAMP { get; set; } public CyberQObjectModel() { OUTPUT_PERCENT = 0m; TIMER_CURR = TimeSpan.Zero; COOK_TEMP = 0; FOOD1_TEMP = 0; FOOD2_TEMP = 0; FOOD3_TEMP = 0; COOK_STATUS = 0; FOOD1_STATUS = 0; FOOD2_STATUS = 0; FOOD3_STATUS = 0; TIMER_STATUS = 0; DEG_UNITS = 0; COOK_PROPBAND = 0; COOK_RAMP = 0; } } public class CyberQData { public CyberQData() { } public static CyberQObjectModel GetCyberQData(string url) { var xdocTimeInfo = XDocument.Load(url); var dt = (from ti in xdocTimeInfo.Descendants("nutcstatus") select new { OUTPUT_PERCENT = ti.Element("OUTPUT_PERCENT").Value, TIMER_CURR = ti.Element("TIMER_CURR").Value, COOK_TEMP = ti.Element("COOK_TEMP").Value, FOOD1_TEMP = ti.Element("FOOD1_TEMP").Value, FOOD2_TEMP = ti.Element("FOOD2_TEMP").Value, FOOD3_TEMP = ti.Element("FOOD3_TEMP").Value, COOK_STATUS = ti.Element("COOK_STATUS").Value, FOOD1_STATUS = ti.Element("FOOD1_STATUS").Value, FOOD2_STATUS = ti.Element("FOOD2_STATUS").Value, FOOD3_STATUS = ti.Element("FOOD3_STATUS").Value, TIMER_STATUS = ti.Element("TIMER_STATUS").Value, DEG_UNITS = ti.Element("DEG_UNITS").Value, COOK_PROPBAND = ti.Element("COOK_PROPBAND").Value, COOK_RAMP = ti.Element("COOK_RAMP").Value }).FirstOrDefault(); var cyberQom = new CyberQObjectModel { COOK_PROPBAND = dt.COOK_PROPBAND.SafeReadObject<int>(0), COOK_RAMP = dt.COOK_RAMP.SafeReadObject<int>(0), COOK_STATUS = dt.COOK_STATUS.SafeReadObject<int>(0), COOK_TEMP = dt.COOK_TEMP.SafeReadObject<int>(0), DEG_UNITS = dt.DEG_UNITS.SafeReadObject<int>(0), FOOD1_STATUS = dt.FOOD1_STATUS.SafeReadObject<int>(0), FOOD1_TEMP = dt.FOOD1_TEMP.SafeReadObject<int>(0), FOOD2_STATUS = dt.FOOD2_STATUS.SafeReadObject<int>(0), FOOD2_TEMP = dt.FOOD2_TEMP.SafeReadObject<int>(0), FOOD3_STATUS = dt.FOOD3_STATUS.SafeReadObject<int>(0), FOOD3_TEMP = dt.FOOD3_TEMP.SafeReadObject<int>(0), OUTPUT_PERCENT = dt.OUTPUT_PERCENT.SafeReadObject<decimal>(0m), TIMER_CURR = TimeSpan.Parse(dt.TIMER_CURR).SafeReadObject<TimeS pan>(TimeSpan.Zero), TIMER_STATUS = dt.TIMER_STATUS.SafeReadObject<int>(0) }; return cyberQom; } } } And here is the implementation... YAY WE HAVE DATA Ill start working on charting next and a way to save the chart for future reference. |
1 members found this post helpful. |
05-09-2012, 07:17 PM | #18 |
Is lookin for wood to cook with.
Join Date: 04-12-12
Location: Atlanta GA
|
palmtreerfb,
I've never used Ximarin before, but I do love C# and Mono. Is there a free/open/comunity version of the tools, or do you have to buy both the Android and iOS versions? I built this little monitor toy in about an hour as a Flex mobile app (yeah, gross, I know..) so I'd have something to monitor with this weekend. Unless I can find an open source cross-platform toolkit this may be my first Android app that is more complex than "Hello World" |
|
05-09-2012, 07:38 PM | #19 | |
is one Smokin' Farker
Join Date: 01-22-11
Location: Indian Hills, California
|
Quote:
|
|
|
Thanks from:---> |
05-10-2012, 09:00 AM | #20 |
Got Wood.
Join Date: 01-29-12
Location: St. Louis, MO
|
I started my app last night (thanks to this great info). I am not going with a mobile app, instead I am going with a windows forms app. I have plans to implement charting, data exporting, etc. I will post some screenshots when I have it more fleshed out. Again...thanks for posting this for us nerds.
__________________
Lg & Med BGE, CyberQ, UDS, Shirley Fab 24x50 elevated cabinet w/warmer (Possibly Coming Soon) |
|
05-10-2012, 09:12 AM | #21 |
Babbling Farker
Join Date: 02-16-12
Location: Long Island, NY
|
This is cool stuff.
I did some basic (does that count?), dBase coding and Unix shell scripting in the past. I'm not learning a new language for this though. I'll wait for you guys. Bob
__________________
"Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin | [COLOR=RoyalBlue][COLOR=Red]Weber[/COLOR] 18 1/2" & 22 1/2" WSM[/COLOR], [COLOR=SeaGreen]22 1/2" & 26 3/4" OTG[/COLOR][COLOR=DimGray][COLOR=Black],[/COLOR] [COLOR=DeepSkyBlue]Genesis S-330[/COLOR][/COLOR] |[COLOR=DarkRed] [COLOR=Black]|[/COLOR] BBQ Guru CyberQ WiFi [/COLOR]| [COLOR=DarkOrange]Maverick ET-732[/COLOR] | [COLOR=Gray]Gray Thermapen[/COLOR] | |
|
05-10-2012, 09:15 AM | #22 |
Babbling Farker
Join Date: 01-01-11
Location: Southern NJ...exit 36
|
Man...you dudes are SMART....I can barely check email...
__________________
Proud owner of 4 VERY ugly drum smokers....and a Greasy Hill reverse flow.... |
|
05-10-2012, 09:18 AM | #23 |
somebody shut me the fark up.
Join Date: 02-07-08
Location: Framingham, MA
Name/Nickname : George
|
It is all Greek to me
I have seen it in action It looks really nice |
|
05-10-2012, 11:27 AM | #24 |
Is lookin for wood to cook with.
Join Date: 04-12-12
Location: Atlanta GA
|
Does anyone know if any of the BBQ Guru folks hang out around here? I'd love to know how receptive they are to feature requests for future releases (or if they even have future software updates planned).
Some of the things that I think could be added with nearly trivial effort, but would yield big advantages for application developers:
Other suggestions or ideas? |
|
05-10-2012, 12:08 PM | #25 |
is One Chatty Farker
Join Date: 10-22-08
Location: Philly, PA
|
Are you guys talking english?
__________________
AKA "Huck" BBQ Resource: [URL="http://www.huckshut.com"]www.huckshut.com[/URL] Streaming BBQ Podcast: [URL]http://www.inthehut.com[/URL] |
|
05-10-2012, 02:02 PM | #26 | |
Got Wood.
Join Date: 01-29-12
Location: St. Louis, MO
|
Quote:
__________________
Lg & Med BGE, CyberQ, UDS, Shirley Fab 24x50 elevated cabinet w/warmer (Possibly Coming Soon) |
|
|
05-10-2012, 03:36 PM | #27 | |
Is lookin for wood to cook with.
Join Date: 04-12-12
Location: Atlanta GA
|
Quote:
We made a shockingly similar set of requests for enhancements and it was not much effort at all for the developer to add them. The setpoint enhancements and jsonp presentation should be very simple - that is just a new presentation of variables that already exist in the web pages. The fan override stuff is probably doesn't exist as-is internally, but should be straightforward to add. |
|
|
05-10-2012, 03:53 PM | #28 |
Got Wood.
Join Date: 01-29-12
Location: St. Louis, MO
|
@fatdoggie - I sent an email to the BBQ Guru folks and linked this thread. I think there is a lot opportunity for them to work with us and if third party apps start hitting the street - it could mean more sales for them. I'll let you know what they say.
__________________
Lg & Med BGE, CyberQ, UDS, Shirley Fab 24x50 elevated cabinet w/warmer (Possibly Coming Soon) |
|
05-10-2012, 03:56 PM | #29 | |
Is lookin for wood to cook with.
Join Date: 04-12-12
Location: Atlanta GA
|
Quote:
I guess now they know we're interested and enthused about their product! |
|
|
Thread Tools | |
|
|