Hey guys,
Hoping someone can help.
I’m pulling data from a JSON address and trying to put each of the results in an array into their own variable.
The array is returned with multiple [[[[ so im not sure what to do. Results will vary different time of the day; my example stars at TP38 as the first entry, though i plan to run this at midnight so will likely start with TP1.
In each result there is a unix time, price, TP XY
The purpose or aim is to basically get the values
$variable1 TP 1-14 (total, of price and then average it out, so add the values then divided by 14)
$variable2 TP 15-23 (again total averaged, so price added up divided by 9)
$variable3 TP 24-34 (price added and averaged, divided by 11)
$variable4 TP 35-43 (price averaged, divided by 9)
A backup of the piston can be downloaded using code ccrx5