Dev: https://dev001.rimpark.io
Test: https://test.rimpark.io
Dev: https://dev001.rimpark.io
Test: https://test.rimpark.io
// This code is is an adaptation of | |
// https://github.com/freedomtan/sensors/blob/master/sensors/sensors.m that | |
// prints the temperatures for Apple M1 MacBooks to the standard output. | |
// WARNING: ONLY USE WITH APPLE M1 MACBOOKS | |
// To compile run: | |
// `clang -Wall -O3 -v sensors.m -framework IOKit -framework Foundation -o sensors` | |
// Example ouput: | |
// > ./sensors |
const cellCoords = cells.map( | |
(cell) => [ | |
{lat: cell.lat, lng: cell.long}, | |
{lat: cell.lat + incrementlat, lng: cell.long}, | |
{lat: cell.lat + incrementlat, lng: cell.long + incrementlong}, | |
{lat: cell.lat, lng: cell.long + incrementlong}, | |
] | |
); | |
const cellColors = cells.filter(cell => !isCost || cell.humidity > 80).map( |