Motherboard-specific configurations (sensors4mobo)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hans,

On Wed, 28 Mar 2007 13:20:33 +0200, Hans de Goede wrote:
> Ivo Manca wrote:
> > Hey Ed,
> > 
> >> I looked at sqlite when developing sensors4mobo but many ISPs do not 
> >> include it and I did not want to add any dependencies that would limit 
> >> usage or make installation harder.
> 
> <lots of explanation by Ivo about sqlite plans snipped>
> 
> Actually I have been thinking about using the annotating of sensors.conf file 
> myself in the past, but I thought sqlite would be easier to use, esp. on the 
> web-side. Since with sensors4mobo we kinda get the web-side for free, and I 
> also _really_ like the idea of the database being a dir of textfiles with one 
> file per motherboard allowing for easy tinkering / experimenting by end users, 
> I think it might be a good idea to go with the dir with one textfile per mobo.
> 
> But less discuss this further tomorrow at our (face to face) meeting. Jean, any 
> thoughts / preferences on this?

For the local data, I'd go for text files. Each motherboard being
uniquely identified by a finite number of DMI strings, we can
combine them to form a unique identifier and use that in the
configuration file name. Ideally this should be something like
sensors-$manufacturer-$model-$version.conf, but we'll see how it goes
in practice. With this naming convention, lookups are in O(1), which is
perfect.

Now, it might still be good to have a database as the backend of the
website, that's a different story. It should be easy enough to generate
all the text files from the database, adding metadata as comments at
the beginning of the files.

-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux