Skip to content

Instantly share code, notes, and snippets.

@djdunc
djdunc / student-random-list-generator.ipynb
Created October 12, 2022 06:53
Student Random List Generator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@djdunc
djdunc / plantmonitor.sh
Last active October 14, 2022 16:34
CASA0014 plantmonitor RPi setup
#!/bin/bash
# CASA0014 - Plant Monitor RPi Setup Script
# Author: Duncan Wilson (@djdunc)
# Date: 14-10-2022
# Updated: 14-10-2022
# Version: 1.0.0
# -- Instructions --------------------------------------------------------------
# 1. Download this file to your desktop
@djdunc
djdunc / tweet2MQTT.py
Created October 20, 2022 16:29
script to run on RPi robot in lab to listen for tweets mentioning the lab and send them to the lab mqtt stream
# script to run on RPi robot in lab to listen for tweets mentioning the lab and
# send them to the lab mqtt stream
# D.Wilson Oct 2022
## settings.py file also needed in the same folder with these details:
# API_KEY=""
# API_SECRET=""
# ACCESS_TOKEN=""
# ACCESS_TOKEN_SECRET=""
@djdunc
djdunc / student-random-list-generator.ipynb
Last active October 24, 2023 10:18
student-random-list-generator.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@djdunc
djdunc / ttn-gw-console-parser.ipynb
Created January 3, 2023 18:19
TTN-GW-console-parser.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
* Testing reading from MQTT feed into JSON object in arduino
*
* Dependencies:
* WiFi101 library for connectivity
* ArduinoMqttClient library for subscribing to MQTT topic
* ArduinoJson library for parsing JSON
*
* Tested on Adafruit Feather MO Wifi with ATWINC500
*
@djdunc
djdunc / ProjectIdeas.md
Last active March 16, 2023 01:40
Project Ideas

Connected Environments Dissertation Project Ideas

Contact Duncan Wilson if you are interested in these projects.

Patient Journeys in a Pop Up eye clinic

CASA have been working with Moorfields Eye Hospital to explore the potential for the use of pop-up eye clinics in retail outlets (Brent Cross) to catch up on COVID appointment backlog. Time motion data (x,y data ever 10 seconds) from approximately 4000 patient journies and 4 different activity layouts are available. This project would explore different ways of analysing trends in patient throughput over time and space. Requires data visualisation to inform communication of trends and or data analysis to extract meaning from the data.

[2023]

@djdunc
djdunc / BIOS0031tmp36MQTT.ino
Last active January 22, 2024 12:19
BIOS0031 TMP36 to MQTT sketch
/*
WiFi TMP to MQTT
Circuit:
* LED attached to pin 9
* TMP36 attached to pin A0
created Feb 2023
by Duncan Wilson
*/
@djdunc
djdunc / TTN_Uno_TMP36.ino
Created March 10, 2023 12:57
TTN Uno Example for sending temperature from TMP36
/*
Circuit:
* TMP36 middle pin attached to pin A0, left to VCC, right to GND
created Feb 2023
by Duncan Wilson
*/
#include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
@djdunc
djdunc / TTNunoTMP36.ino
Created March 10, 2023 15:27
TTN Arduino Things Uno (Leonardo) with TMP36 sending to TTN
/*
Circuit:
* TMP36 middle pin attached to pin A0, left to VCC, right to GND
created Feb 2023
by Duncan Wilson
*/
#include <TheThingsNetwork.h>
// Set your AppEUI and AppKey