Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
/ iot-dashboard Public archive

Exchange rate, stock, and weather information on your MXChip AZ3166 IoT Devkit

License

Notifications You must be signed in to change notification settings

JeffreyCA/iot-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT-Dashboard

View forex, stock, and weather information on your MXChip AZ3166 IoT Devkit

Forex view Stock view Weather view

Requirements

Getting Started

  1. Go through the IoT DevKit Get Started Guide
  2. git clone this repo
  3. Fill in the details for the deployed iot-dashboard-functions Azure Function in Device/api.h (FUNCTION_KEY and FUNCTION_URL)
  4. Configure dashboard properties in Device/config.h (BASE_CURRENCY, QUOTE_CURRENCY, STOCK_TICKER, and WEATHER_LOCATION)
  5. Upload code to DevKit

Controls

A Button - Press to manually switch between foreign exchange rate, stock price, and weather information.

B Button - Press to manually refresh data.

Configuration

api.h

Config Value Description
FUNCTION_KEY iot-dashboard-functions Azure Function API key
FUNCTION_URL iot-dashboard-functions Azure Function URL

config.h

Config Value Description
BASE_CURRENCY Base currency symbol (e.g. USD / CAD)
QUOTE_CURRENCY Quote currency symbol (e.g. CAD / USD)
STOCK_TICKER Stock ticker symbol (e.g. MSFT / AAPL)
WEATHER_LOCATION Weather location (e.g. Toronto / Toronto,CA / Toronto,Canada)
CHANGE_VIEW_INTERVAL Ticks before view changes
FAIL_REFRESH_INTERVAL Ticks before refreshing data due to failure
SUCCESS_REFRESH_INTERVAL Ticks before refreshing data when previously successful
SPLASH_DURATION_MS Splash image duration in milliseconds
UPDATE_INTERVAL_MS Length of each tick in milliseconds (e.g. 1000 means each tick is a second)
WIFI_RETRY_STARTING_INTERVAL_MS Milliseconds before attempting to reconnect to Wi-Fi for the first time after connection loss
WIFI_RETRY_MULT_FACTOR Factor to multiply retry interval by after consecutive connection failures

About

Exchange rate, stock, and weather information on your MXChip AZ3166 IoT Devkit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published