- /
-
You know the rules ...
on 16 Oct 2021
- 43
- 802
- 2
- 0
- 229
%%% ... And So Do I :)
%
% I had a lovely HD image, but ran into two issues:
% 1) execution time limite to 55 seconds
% 2) and Thingspeak was garbling data (I think I killed my account!)
%
% Explanation at the bottom :) For now, enjoy my 3rd Rick Roll reference :)
%
s=1628703553;
c=@(x)datetime(x,'ConvertFrom','posixtime');
h=1537855;
d=[];
t=[0];
x=0;
for x=1:40
[t,p]=thingSpeakRead(h,'DateRange',c([0,s]));
d=[uint8(t);d];
s=uint64(convertTo(p(1),'posixtime'))-60;
end
i=reshape(d(1761:end,:),624,[],3);
imshow(i);
% Explanation
%
% I spent some time thinking of ways to access data and realized that the
% Thingspeak commands were left unbanned. So, I carefully calibrated
% several tempature senosrs over the last year to update precise data to
% Thingspeak. :) just kidding
% Throw up some data on Thingspeak (with some hacky bulk updates) and then
% bring down the data into Matlab (with more hacks due to the restrictions
% and time ordering).
%
% Thingspeak channel (field 1 is r, field 2 is g, field 3 is b data going
% back to March 2020 I believe)
%
% https://thingspeak.com/channels/1537855