Lamp
ODROID-Magazine-201509
ODROID-Magazine-201509
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
SAMIIO<br />
The output format is useful to write<br />
the Python application to submit the<br />
weather data to the SAMIIO website.<br />
SAMIIO account and<br />
device setup<br />
Details of the SAMIIO platform can<br />
be found at the main SAMIIO website.<br />
Access the SAMIIO account setup<br />
website at http://bit.ly/1ds2ONj. You<br />
should see a page as shown in Figure 8.<br />
Since a user account has not been setup<br />
yet, we cannot login yet. Click on the<br />
Sign up here link and you should see the<br />
page as shown in Figure 9.<br />
field should appear that re-displays the<br />
phrase Temp Sensor. Change that new<br />
name phrase to C1-temp-sensor, so it is<br />
obvious what we will be working with.<br />
We will essentially be submitting temperature<br />
data from the weather board.<br />
You will be presented with an updated<br />
page as shown in Figure 11. Click on<br />
the blue CONNECT DEVICE button.<br />
Figure 10: Post-login screen<br />
It will take you to a new page as shown<br />
in Figure 12.<br />
Figure 13: Device ID<br />
Figure 14: Device Token<br />
Figure 8: SAMIIO account access<br />
Figure 11: Device creation<br />
communication process.<br />
The SAMIIO website provides a<br />
mechanism to obtain additional device<br />
data (bearer-id for authentication) and<br />
test the SAMIIO API to submit data.<br />
Before writing an application to submit<br />
the data, the API can be tested via this<br />
test website.<br />
Access the API test site at http://bit.<br />
ly/1NeVs1I. Login to the site using your<br />
credentials that you setup earlier. Under<br />
Figure 15: User information<br />
Figure 9: SAMIIO account setup<br />
Enter information relevant to your<br />
account and click the Continue button.<br />
Get back to the login screen as shown in<br />
Figure 8, enter the login info click the<br />
Sign In button. You will be presented a<br />
page as shown in Figure 10:<br />
Enter the phrase Temp Sensor in the<br />
field that has a grayed-our prompt: Start<br />
typing the name of your sensor. A new<br />
Figure 12: Device main screen<br />
Click on the blue gear icon to create<br />
some IDs useful in the communication<br />
process. You will be presented with a<br />
page that looks like Figure 13. Note the<br />
Device ID that is generated by the system.<br />
Click on the link that has the caption:<br />
GENERATE DEVICE TOKEN.<br />
You will be presented with the screen as<br />
shown in Figure 14. Note the Device<br />
Token that is generated by the system.<br />
The device ID is especially used in the<br />
ODROID MAGAZINE 35