Title: Bitcoin Price App Post by: skilo on March 23, 2013, 03:12:03 AM So i'm a total noob at programming, I just started with visual basic trying to create a windows app for getting the current price of bitcoin.
So far i have created this app here - http://www.filedropper.com/btcpriceapp_1 (http://www.filedropper.com/btcpriceapp_1) available for testing, It's free software released under the GPLv3. So far all it it is is a simple windows form app witch has a function to connect to campbx.com/api/xticker.php fetch the current price data and display it in a textbox. The data it grabs is in json format and like i said im very new to programming so json deserialization is a bit over my head right now, But if anyone can help me out with that it would be a great way for me to learn and we could provide the bitcoin community with a nice free app for windows to easily get the price of bitcoin. Title: Re: Bitcoin Price App Post by: Ditto on March 23, 2013, 11:04:04 AM That link contains a .sln file, not the actual app.
There are plenty of .Net libraries for unserializing JSON - Take a look at http://json.codeplex.com/ for a library and http://forums.asp.net/t/1699212.aspx/1 for some simple code examples. Title: Re: Bitcoin Price App Post by: skilo on March 23, 2013, 02:26:00 PM That link contains a .sln file, not the actual app. There are plenty of .Net libraries for unserializing JSON - Take a look at http://json.codeplex.com/ for a library and http://forums.asp.net/t/1699212.aspx/1 for some simple code examples. Thanks for replying, I took a look at those examples and it still look sort of complicated, I'm still learning functions and classes, Maybe if i had a working example i could better understand what exactly is going on in the code at http://forums.asp.net/t/1699212.aspx/1. I updated the link in the first post it should have all the files now. Title: Re: Bitcoin Price App Post by: skilo on March 24, 2013, 02:39:09 AM Here is the .exe program http://www.filedropper.com/btcpriceapp_2 , It's doesn't deserialize the data but it could still be useful for windows 8 users like myself that can't use conky or gadgets.
Screenshot https://i.imgur.com/YjeMfbB.png Title: Re: Bitcoin Price App Post by: Ditto on March 24, 2013, 04:27:47 AM Title: Re: Bitcoin Price App Post by: daybyter on March 24, 2013, 12:13:05 PM I think you can run Phonegap on the desktop as well?
So this app would work, too? https://bitcointalk.org/index.php?topic=135392.0 And converting it to gox would require minor modifications... Title: Re: Bitcoin Price App Post by: skilo on March 24, 2013, 02:42:05 PM Very nice Ditto!
I think this will help me to understand JSON now that i see a working example of what it actually does. Title: Re: Bitcoin Price App Post by: Ditto on March 24, 2013, 04:21:45 PM Very nice Ditto! Make sure your .Net framework is on version 3.5 or above since the deserializer isn't available in earlier versions.I think this will help me to understand JSON now that i see a working example of what it actually does. Title: Re: Bitcoin Price App Post by: skilo on March 24, 2013, 06:25:04 PM Very nice Ditto! Make sure your .Net framework is on version 3 or above since the deserializer isn't available in earlier versions.I think this will help me to understand JSON now that i see a working example of what it actually does. Will VB 2010 Detect what framework i'm using or do i have to activate it in VB 2010 someway? Title: Re: Bitcoin Price App Post by: skilo on March 27, 2013, 02:03:05 AM Added some more stuff to it to make it more useful, I would have added the mt.gox api but it look incorrectly formatted so i left it out.
You can download it here - https://sourceforge.net/projects/btcpriceapp/ https://a.fsdn.com/con/app/proj/btcpriceapp/screenshots/Capture.PNG Title: Re: Bitcoin Price App Post by: MagicBit15 on March 27, 2013, 10:40:28 AM I need to get back into this, I use to love programming in high school. I want to learn PHP so bad!!
Title: Re: Bitcoin Price App Post by: skilo on March 27, 2013, 12:08:33 PM I need to get back into this, I use to love programming in high school. I want to learn PHP so bad!! For me the hard part about programming isn't writing the code its just trying to find a project to work on, It seems most of the stuff i would be interested in has already been created. I made this app (With some help) because i wanted to learn VB and at the same time i have an actual need for it since im on windows 8 i don't have gadgets and since im not on linux i cant use conky so i wanted a fast way to price data about bitcoin without having to fire up a browser and type in an address. Making this little app has been a good learning experience for me i know that much. |