I think with the ideas above you should be fine for a while, even with DS18B20 and images - it basically halves your memory consumption minifying and saving to flash. Loading images from flash (especially if you have more) could be good - as would deleteing them if you're not planning on using them again.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think with the ideas above you should be fine for a while, even with DS18B20 and images - it basically halves your memory consumption minifying and saving to flash. Loading images from flash (especially if you have more) could be good - as would
delete
ing them if you're not planning on using them again.Also, for DS18B20 it's better to use a callback for the temperature: http://www.espruino.com/DS18B20
Using a normal function is the older way, but it means that your temperature readings are always from the previous call to
getTemp
.