New IT forum Follow us on Twitter
17 May 2012, 04:17:55 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: digitemp  (Read 1856 times)
nr
Newbie
*
Posts: 10


« on: 25 November 2009, 07:04:02 pm »

As mentioned in one of my earlier posts, I wanted to get digitemp working on the plug:

http://www.ronketti.org.uk/tempplot.png

Pretty easy in the end. I used a DS2490 USB bridge to the DS18B20 sensor. A cron job reads it every five minutes, and logs to /var/log/somethingorother. A bit of perl and GD later, and the tabular data is converted to the graph you see above and uploaded. I'll do a proper job of making it look nice at some point, but for now, the concept is proven.

Incidentally, I read somewhere or other that it's not a good idea to write to an SD card too often. As this job is logging every five minutes, should I be writing to another file system? Or is /var mounted on the internal 512K memory? Sorry for the newbie questions - I'm sure I'll get the hang of this stuff one day.

Ta,
Logged

DanielSjoholm
Newbie
*
Posts: 10


« Reply #1 on: 25 November 2009, 07:34:52 pm »

All flash based storage has a limited amount of writes, http://en.wikipedia.org/wiki/Flash_memory#Memory_wear , so it's up to you.. you could write to a tmpfs mount instead and then only dump to nand/sd-card once every 24 or so hours if you want to reduce wear. However the jffs2/ubifs filesystem on the nand should do wear-leveling and thus increase the life of the flash, but i would probably prefer hosing an sd-card over the internal storage.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!