Go to advanced search

by huygens
Wed Nov 16, 2016 2:08 pm
Forum: Advanced users
Topic: rtc_ds1307 - Can't read temp on DS3231
Replies: 4
Views: 985

Re: rtc_ds1307 - Can't read temp on DS3231

Actually there is something even simpler :-)

Once your module is loaded it is recognised by the sensors command (package lm-sensors).

So simply do:
$ sensors
ds3231-i2c-1-68
Adapter: 3f804000.i2c
temp1: +21.5°C
You can install lm-sensors by doing:
sudo apt-get install lm-sensors
by huygens
Wed Nov 16, 2016 1:58 pm
Forum: Advanced users
Topic: rtc_ds1307 - Can't read temp on DS3231
Replies: 4
Views: 985

Re: rtc_ds1307 - Can't read temp on DS3231

There is a way to get the temperature for the sysfs pseudo-filesystem (aka /sys). It does not require to unload the module because it is information that the module expose directly to the system. Simply read the following file: /sys/class/i2c-adapter/i2c-1/1-0068/hwmon/hwmon0/temp1_input (note that ...
by huygens
Tue Dec 01, 2015 2:05 pm
Forum: Raspbian
Topic: Predictable SSH host keys
Replies: 18
Views: 38210

Re: Predictable SSH host keys

This issue is not specific to Raspbian/Raspberry Pi. This problem of the SSH host keys generated at first boot after installation of a system affects all Linux distributions. On systems with low entropy gathering capabilities (such a VM guests, some embedded systems, headless servers, etc.) it can b...

Go to advanced search