Requirements

Preparation

Account at Wia
You will need to be registered and /or logged in to your Wia account at https://www.wia.io/.

Set up your Dot One
You will need to have a set up Dot One and you can find the tutorial on how to do that Here.

Set up your code project
Now you will need to create a space and then a code project on your Wia Dashboard

Writing the Code Project

Note: This portion requires a decent background in coding, specifically in C++ in order to understand how the Dot One and TFT Screen work to print the stock opening and closing prices

Below is the code for this project which you can follow by reading the comments attached to the side of the code.

Feel free to try and rewrite this code yourself so you can better understand the device! Some advice; if you are having trouble, make a temporary Block Project and take note of what code is pasted into the preview window when you drag certain blocks over!

Note:
These links are actually all on one line they are just too long to physically fit on one line on this page. If you would like to use these http request to find other stocks you can do this by simply changing the MSFT at the end of the link to whatever other stock you want such as AAPL for Apple, or GOOGL for Google. It can be hard to read these JSON files so this is not required but I recommend you add a JSON viewer extension to your browser. I use JSON Viewer Awesome which can be found in the Google Chrome Web store under extensions here.

Creating a Flow

Now we will create a flow that will go to this link and parse through the data so we can get the opening and closing prices.
1. Proceed by going to your dashboard and create a new flow
2. Drag Timer node which can be found under Trigger > Wia and set the timer to trigger every 30 minutes as seen in figure 3.

* This code takes the input from the http request and parses through it to find the "Open" and "Close" price. It is like a following the path of "Time Series (Daily)" to "2019-07-09" to "1. open" and "4. close". If you have the JSON viewer when you put the http request in your own search bar you can see this path as I see it in figure 5.

Figure 5

Now drag two Update State nodes from logic > Wia into the workspace and select your Dot One from the list in both nodes and one of these update states will be responsible for the Open and one for the Close.

The Open key should be what you named the state in the code project which for us is MSFT_Open while the value parses through the data input to open, thus the value should be ${input.body.data.open} as seen in figure 6.

The Close key should be what you named the state in the code project which for us is MSFT_Close while the value parses through the data input to open. Thus, value should be ${input.body.data.close} as seen in figure 7.

Figure 6

Figure 7

Now connect your nodes as seen on figure 8, turn on the flow, deploy your code to your Dot One and you're all set!