Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IOT Final Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
a-j.towse
IOT Final Project
Commits
e7553d2c
Commit
e7553d2c
authored
Jan 15, 2024
by
a-j.towse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
3904e43f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
Low
MATLAB Ice Bath Temps High/ Low
+24
-0
No files found.
MATLAB Ice Bath Temps High/ Low
0 → 100644
View file @
e7553d2c
readChannelID = 2394292;
TemperatureFieldID = 1;
readAPIKey = 'WOX3EPH2YUWISIC2';
[tempF,timeStamp] = thingSpeakRead(readChannelID,'Fields',TemperatureFieldID, ...
'numDays',1,'ReadKey',readAPIKey);
[maxTempF,maxTempIndex] = max(tempF);
[minTempF,minTempIndex] = min(tempF);
timeMaxTemp = timeStamp(maxTempIndex);
timeMinTemp = timeStamp(minTempIndex);
display(maxTempF,'Maximum Temperature for the past 24 hours is');
display(minTempF,'Minimum Temperature for the past 24 hours is');
pause(10)
writeChannelID = 2394292;
writeAPIKey = '4AX6F1QBBZK9XIK7';
thingSpeakWrite(readChannelID,[minTempF,maxTempF],'WriteKey',writeAPIKey,'Fields',[2,3]);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment