Moodle and the Internet of Things
-
Upload
k-scott-huntley -
Category
Education
-
view
272 -
download
0
Transcript of Moodle and the Internet of Things
![Page 1: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/1.jpg)
If you know about how the web works,
you know that when you request a webpage…
![Page 2: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/2.jpg)
…you get sent back a response code.
![Page 3: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/3.jpg)
“200” means everything OK, so you never see that one.
That’s why most people don’t know about these codes.
![Page 4: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/4.jpg)
Occasionally you’ll get a “404”, meaning the HTML file wasn’t found.
![Page 5: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/5.jpg)
Maybe you’ll get a “301”, “307” or “308” if the page has moved…
![Page 6: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/6.jpg)
…or a “504” if the Internet is a little slow today.
![Page 7: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/7.jpg)
You might get a “403 - Forbidden” if you’re not supposed to access that page.
Or a “407” if you have to authorise your proxy connection.
![Page 8: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/8.jpg)
Or maybe you’ll get a “418” if the webserver is actually a teapot.
![Page 9: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/9.jpg)
True story, 418 is the response code if the server is actually a little teapot.
![Page 10: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/10.jpg)
How odd…
![Page 11: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/11.jpg)
This makes more sense if you look at the date the “Hyper Text Coffee Pot Control Protocol” was published on.
![Page 12: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/12.jpg)
April 1, 1998
![Page 13: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/13.jpg)
It’s an April Fool’s Day joke.
![Page 14: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/14.jpg)
But now, in 2015, appliances like televisions and refrigerators are connected to the Internet.
![Page 15: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/15.jpg)
2015: An time when an old April Fool’s Day joke can be mistaken for prophecy.
![Page 16: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/16.jpg)
Moodle Moot Australia 2015
Moodle and the Internet of Things
Kenneth Scott Huntley
Miller College of SWSi TAFEMiller, NSW, Australia
#MootAU15 @MillerTAFEScott
![Page 17: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/17.jpg)
My name is Scott.
I’m a Canadian-Australian from Miller College, part of South Western Sydney Institute of TAFE (SWSi), Sydney, Australia.
#MootAU15 @MillerTAFEScott
![Page 18: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/18.jpg)
I’m a “hacker” but not that kind of hacker.❖ Not the cool sneak into systems and hold
governments for ransom hacker❖ In the hack something together quickly sense of
the word.❖ In the “I need more duct tape” sense of the word.❖ In the “Oh God, I hope I don’t have to show my
code” sense of the word.❖ In the “It’s 3 AM the night before the my Invited
Speaker presentation, and everything has broken” sense of the word.
❖ I more often identify with the right side of this picture.
#MootAU15 @MillerTAFEScott
![Page 19: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/19.jpg)
Also, I hacked together this presentation
❖ I only submitted for a 20 minute talk.
❖ I presented this talk at Moodle Moot Japan in February, to a much smaller crowd.
❖ Figured I’d just recycle that.
❖ Recycling is good!
❖ So if this is going bad, I’m going to go hide behind this screen and cry for awhile.
#MootAU15 @MillerTAFEScott
![Page 20: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/20.jpg)
So What is “The Internet of Things”?
#MootAU15 @MillerTAFEScott
![Page 21: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/21.jpg)
So What is “The Internet of Things”?Internet of Things
(according to Huntley’s Consolidated Dictionary)
noun
1. A Thing connected to the Internet.
2. Smart cities, smart building, smart homes and things out of the future that are promised for tomorrow but we don’t have yet, so who cares?
#MootAU15 @MillerTAFEScott
![Page 22: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/22.jpg)
#MootAU15 @MillerTAFEScott
![Page 23: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/23.jpg)
#MootAU15 @MillerTAFEScott
![Page 24: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/24.jpg)
So What is “The Internet of Things”?Internet of Things
(according to Huntley’s Consolidated Dictionary)
noun
1. A Thing connected to the Internet.
2. Smart cities, smart building, smart homes and things out of the future that are promised for tomorrow but we don’t have yet, so who cares?
#MootAU15 @MillerTAFEScott
![Page 25: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/25.jpg)
So What is “The Internet of Things”?Internet of Things
(according to Huntley’s Consolidated Dictionary)
noun
1. A Thing connected to the Internet.
2. Smart cities, smart building, smart homes and things out of the future that are promised for tomorrow but we don’t have yet, so who cares?
#MootAU15 @MillerTAFEScott
![Page 26: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/26.jpg)
So What is “The Internet of Things”?Internet of Things
(according to Huntley’s Consolidated Dictionary)
noun
1. A Thing connected to the Internet.
2. Cool things I could make right now using a microcontroller board.
#MootAU15 @MillerTAFEScott
![Page 27: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/27.jpg)
So what’s a micro controller board?So there’s this thing called Arduino
❖ Designed by some Italian guys
❖ Open Source hardware
❖ Often used for DIY projects
❖ It’s totally cool stuff I always wanted to play with
❖ But I’m a web teacher so I always figured this is not for me
❖ Last October, I said “Stuff it, I’m going to buy some Arduinos and start having fun.”
#MootAU15 @MillerTAFEScott
![Page 28: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/28.jpg)
Arduino (and clones)
❖ Turns out one of my hobbies is buying Arduinos and Arduino like things.
❖ I almost have a full spectrum, of varying quality and/or authenticity
![Page 29: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/29.jpg)
An authentic Arduino. ~ $35. I was disappointed it’s a
new green one.Sparkfun Redboard.
~ $25
Some knock off from China. $5, but I had to wait 3 weeks, and download weird
drivers.
A fake! Made to look like an authentic Arduino.
~$15Adafruit Metro.
~$30
![Page 30: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/30.jpg)
So What is “The Internet of Things”?Internet of Things
(according to Huntley’s Consolidated Dictionary)
noun
1. A Thing connected to the Internet.
2. Cool things I could make right now using a microcontroller board (that’s connected some how, some way to the Internet).
#MootAU15 @MillerTAFEScott
![Page 31: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/31.jpg)
Does it come in purple?
![Page 32: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/32.jpg)
Does it come in purple?
Yes!(and no)
![Page 33: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/33.jpg)
#MootAU15 #UglyTie @MillerTAFEScott
Getting the tie working was a very long and difficult process for a software guy.
I experimented with two boards designed for wearables, the Lilypad USB and the Adafruit Flora.
The tie I took to Japan was working* off a Lilypad USB.
![Page 34: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/34.jpg)
But is this the Internet of Things?
Well… funny thing about that…
The Flora board was the one I selected for the tie…
#MootAU15 #UglyTie @MillerTAFEScott
![Page 35: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/35.jpg)
#MootAU15 #UglyTie @MillerTAFEScott
The “Backend” The “Frontend”
![Page 36: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/36.jpg)
But is this the Internet of Things?
Originally the “backend” was hooked up to Bluetooth.
The idea was a message could be sent to the tie.
Like if an RSS feed changed.
And Moodle events can generate RSS feeds…
#MootAU15 #UglyTie @MillerTAFEScott
Adafruit “Bluefruit”
![Page 37: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/37.jpg)
But is this the Internet of Things?
But…
Getting a stable connection was difficult because of Unknown Reason X and “I’m a software guy”.
Actually, I’m pretty sure Unknown Reason X is that Bluetooth and the Neopixel LEDs are drawing too much power at the same time. But I don’t know how to fix that.
#MootAU15 #UglyTie @MillerTAFEScott
![Page 38: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/38.jpg)
#MootAU15 #UglyTie @MillerTAFEScott
The “Backend” The “Frontend”
So let’s just quickly swap out the backend so I at least have something
to show…
![Page 39: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/39.jpg)
Oh noes
During debugging (on Feb 10th), I actually broke a Lilypad USB.
This day sucked.
I found enough spare parts to sew together another backend.
#MootAU15 #UglyTie @MillerTAFEScott
![Page 40: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/40.jpg)
Oh noes
During debugging (on Feb 10th), I actually broke a Lilypad USB.
This day sucked.
We found enough spare parts to sew together another backend
#MootAU15 #UglyTie @MillerTAFEScott
![Page 41: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/41.jpg)
It turns out I had the answer weeks before…PunchThrough Design’s LightBlue Bean
❖ It arrived mid January
❖ Didn’t play with it much trying to get other demos ready
❖ Four days before I left for Japan, I started playing with it, and realised:
BEAN + PYTHON = MOODLE RSS THINGY I WANTED ALL ALONG
#MootAU15 #UglyTie @MillerTAFEScott
![Page 42: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/42.jpg)
#MootAU15 #UglyTie @MillerTAFEScott
The “Backend” The “Frontend”
So for a Sydney PHP Meetup, a few weeks
after I got home, I decided to make a new
Backend
![Page 43: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/43.jpg)
So What is “The Internet of Things”?Internet of Things
(according to Huntley’s Consolidated Dictionary)
noun
1. A Thing connected to the Internet.
2. Cool things I could make right now using a microcontroller board.
3. Cool things I could buy right now that are designed to connect to the Internet.
#MootAU15 @MillerTAFEScott
![Page 44: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/44.jpg)
#MootAU15 @MillerTAFEScott
![Page 45: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/45.jpg)
Time for Answers?
❖ Don’t ask me questions, I don’t know anything.
❖ Tell me answers!
❖ How are you going to use the Internet of Things in your course(s)?
❖ How can we build a bridge between Moodle and the Internet of Things?
![Page 46: Moodle and the Internet of Things](https://reader038.fdocuments.us/reader038/viewer/2022110313/55c4b036bb61eb132c8b459f/html5/thumbnails/46.jpg)
Reference Type Thingys
❖ Flinders Street Station by Brian Giesen, I gotta give a Creative Commons attribution, so here it is. https://www.flickr.com/photos/briangiesen/