Log in
E-mail
Password
Remember
Forgot password ?
Become a member for free
Sign up
Sign up
New member
Sign up for FREE
New customer
Discover our services
Settings
Settings
Dynamic quotes 
OFFON

MarketScreener Homepage  >  Equities  >  NASDAQ OMX HELSINKI LTD.  >  Digia Oyj    DIGIA   FI0009007983

DIGIA OYJ

(DIGIA)
  Report  
SummaryQuotesChartsNewsRatingsCalendarCompanyFinancialsConsensusRevisions 
News SummaryMost relevantAll newsPress ReleasesOfficial PublicationsSector newsAnalyst Recommendations

Experimenting with IoT: Building a display for HSL timetables

share with twitter share with LinkedIn share with facebook
share via e-mail
0
04/16/2019 | 02:21am EST

Have you ever wanted to see how IoT works on a code level, this blog will introduce you to using GraphQL REST API, parsing data and finally displaying it.

A famous Finnish hacker Windytan has already created instructions for creating a display for showing data about bus stops. However, her instructionsmight seem too complicated for not so tech savvy audience. Still, this is a good read to acknowledge that not everything is as they seem on a first glance.

We will take a less complicated route and will consume the HSL API accessible via the internet. This blog will go through getting the data from the internet using a public REST service and display the data on the display of our IoT device. To put this on the layman's terms: we will build a display to show data about buses that will stop on the bus stop near you. This will work at least in my hometown Helsinki.

If you have not completed the steps to setup development environment,read and complete the steps on the 1st chapter »

There is only a couple of steps needed to achieve this:

  1. Find a correct bus stop.
  2. Edit WiFi settings in the source code.
  3. Edit the source code to have the correct bus stop id on the row that has XXX in the comments
  4. Compile and upload code to the dev board.

You can download the source code here »

Finding the correct bus stop ID:

Browse to https://www.hsl.fi/en/timetables-and-routes. I was able to find the stop using a line number (54) that I know to stop on the stop next to our office.

So key in 54 into the timetables textbox, hit 'enter' and then 'search timetables'.

Next select correct direction from the dropdown menu (1) and locate correct stop (2). Click stop on the list.

URL for this bus stop ishttps://reittiopas.hsl.fi/pysakit/HSL%3A1465136(This is on the address line of your browser). From this we can get the bus stop ID which is 1465136. Change this to the source code on a line that has XXX in the comments.

Now what is left to be done is flashing the board with the software we just created, to do this:

  1. Select a correct board from tools - board: 'Heltec_WIFI_LoRa_32'
  2. Select a correct COM port from tools - port
  3. Compile the source code from Sketch - Verify/compile
  4. And finally upload the sketch from Sketch - Upload (you can go directly in here if you don't want to verify since this will also trigger the verification)

At this point read the comments on the source code. This is a good point to grasp understanding of the whole solution and great way to learn.

To summarize all this, IoT devices can utilize similar patterns for connecting to the internet services as normal computers do. In this example we used quite modern standards: Restful service, Json message format and WiFi to establish the connection.

On the next chapter we will create a sketch that will post data to a web service and then we will create visualizations to do this.

Disclaimer

Digia Oyj published this content on 16 April 2019 and is solely responsible for the information contained herein. Distributed by Public, unedited and unaltered, on 16 April 2019 06:17:07 UTC

share with twitter share with LinkedIn share with facebook
share via e-mail
0
Latest news on DIGIA OYJ
11/06DIGIA OYJ : Financial Calendar and Annual General Meeting in 2020
AQ
10/31DIGIA OYJ : Plc's business review January-September 2019
AQ
10/15Digia Plc will publish its business review January-September 2019 on October ..
GL
08/16UBS hires Damergy to run medical device investment banking - memo
RE
08/09DIGIA OYJ : Plc's Half Year Financial Report 2019
AQ
08/01DIGIA OYJ : has closed the acquisition of Accountor Enterprise Solutions Oy
AQ
07/11Digia Plc will publish its half year financial report 2019 on August 9, 2019
GL
06/27DIGIA OYJ : acquires Accountor Enterprise Solutions Oy in order to strengthen it..
AQ
05/13DIGIA PLC : Announcement of a change in shareholding according to Chapter 9, Sec..
AQ
05/13DIGIA OYJ : Managers' Transactions
AQ
More news
Financials (EUR)
Sales 2019 131 M
EBIT 2019 9,68 M
Net income 2019 7,00 M
Debt 2019 23,3 M
Yield 2019 2,49%
P/E ratio 2019 14,4x
P/E ratio 2020 11,4x
EV / Sales2019 0,95x
EV / Sales2020 0,81x
Capitalization 102 M
Chart DIGIA OYJ
Duration : Period :
Digia Oyj Technical Analysis Chart | MarketScreener
Full-screen chart
Technical analysis trends DIGIA OYJ
Short TermMid-TermLong Term
TrendsBullishBullishBullish
Income Statement Evolution
Consensus
Sell
Buy
Mean consensus BUY
Number of Analysts 2
Average target price 4,10  €
Last Close Price 3,82  €
Spread / Highest target 9,95%
Spread / Average Target 7,33%
Spread / Lowest Target 4,71%
EPS Revisions
Managers
NameTitle
Timo Levoranta President & Chief Executive Officer
Carl Robert Ingman Chairman
Kristiina Simola Chief Financial Officer
Juhana Juppo CTO & Senior VP-Horizontal Services
Suvi Päivi Johanna Hokkanen Independent Director
Sector and Competitors
1st jan.Capitalization (M$)
DIGIA OYJ34.39%112
APPLE INC.68.48%1 180 842
SAMSUNG ELECTRONICS CO LTD--.--%305 964
XIAOMI CORP--.--%26 034
WINGTECH TECHNOLOGY CO.,LTD302.51%12 578
FITBIT, INC.36.82%1 769