Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Special LUG Meeting this Saturday! 24/01/15 (Chris)
----------------------------------------------------------------------
Message: 1
Date: Sat, 24 Jan 2015 10:55:43 +0000
From: Chris <cshorler@googlemail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Special LUG Meeting this Saturday! 24/01/15
Message-ID: <14A6A9CC-00BD-4F69-8909-C29A982FA922@googlemail.com>
Content-Type: text/plain; charset=UTF-8
On 21 January 2015 15:08:56 GMT+00:00, Sebastian <sebsebseb_mageia@gmx.com> wrote:
>Hi
>
>Yes it's nearly time again for yet another informal LUG meeting that is
>
>the first one of 2015 as well at the Knight's Templar Pub in Temple
>Quay
>near Temple Meads train station:
>http://www.jdwetherspoon.co.uk/home/pubs/the-knights-templar However
>this time it should be a special meeting, because of how I have
>arranged
>for a suprise guest/newcomer to join us, and they should be there with
>another guest/newcomer as well. If for some reason they don't turn up
>though I'll still have a quite interseting tech device that I can show
>with me :).
>
>If you are new and would like to come along I suggest not turning up
>until 2pm by the earliest when at least someone else is likely to be
>there as well, and people tend to leave between 4pm to 5:30pm,
>sometimes
>a bit later than that even. We sit on the lower level at the back when
>
>entering the pub on the left by the plugs in the corner, or near there
>instead if someone else is already there.
>
>I hope to meet quite a few of you there this Saturday :) and I'll try
>to
>get there for 2pm, but may get there a bit later instead.
>
>Who is intending on being there as well and at what time?
>
>Regards
>
>Sebastian
>
>_______________________________________________
>Bristol mailing list
>Bristol@mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/bristol
I'm aiming to arrive for lunch before 13.30
Chris
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 6
***************************************
Sabtu, 24 Januari 2015
Jumat, 23 Januari 2015
Bristol Digest, Vol 586, Issue 5
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: NRPE/Nagios (Martin Moore)
2. Re: NRPE/Nagios (Martin Moore)
3. Re: NRPE/Nagios (Keith Edmunds)
4. Re: NRPE/Nagios (Martin Moore)
5. Off Topic: Google API's (Fernando Orus)
----------------------------------------------------------------------
Message: 1
Date: Thu, 22 Jan 2015 14:07:39 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <112501d0364c$caaaccf0$600066d0$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Nagios server is Ubuntu 10.04.4 LTS
Not sure where it came from, sources.list
deb http://mirrors.webfusion.com/ubuntu lucid main restricted universe
multiverse
deb http://mirrors.webfusion.com/ubuntu lucid-updates main restricted
universe multiverse
deb http://mirrors.webfusion.com/ubuntu lucid-security main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-backports main restricted
universe multiverse
deb http://archive.canonical.com/ lucid partner
Remotes are both CentOS release 6.5
not use Centos before, I'm guessing the repos are epel and dag from
yum --enablerepo=dag -y install nagios-nrpe nagios-plugins-nrpe
yum --enablerepo=epel -y install nrpe nagios-plugins-all.x86_64
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of David Corking
Sent: 22 January 2015 11:03
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] NRPE/Nagios
Martin, CentOS and Ubuntu version numbers may help too, as well as which
package repo you got Nagios/NPRE from (IME init scripts vary according to
the tastes of the package maintainer.) David
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 2
Date: Thu, 22 Jan 2015 14:19:21 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <112c01d0364e$6cbe1550$463a3ff0$@co.uk>
Content-Type: text/plain; charset="utf-8"
telnet remote1 5666
Trying xx.xx.xx.xx...
Connected to remote1.
Escape character is '^]'.
Connection closed by foreign host.
So doesn't look too good!
Check_nrpe returns the infamous 'CHECK_NRPE: Error - Could not complete SSL handshake.'
Not sure if/what firewall is running. Not shorewall. How can I tell?
Still doesn't explain why the server appears to be connecting to the localhost for all servers though.
I've installed Zabbix on one server but that is having problems connecting to itself...... And looks a bit complex - I like to simple grid in Nagios, but not the config files :(
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Shane McEwan
Sent: 22 January 2015 11:54
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] NRPE/Nagios
On 22/01/15 09:25, Martin Moore wrote:
> I?ve installed Nagios/NRPE on 3 boxes.
>
>
>
> The Nagios server is on an Ubuntu box, the slaves are Centos.
NRPE might be running via xinetd so there might not be a process running all the time. The best way to check is from the Nagios server run:
telnet nrpe_client_host 5666
If you get a connection then NRPE is probably OK. If you don't get a connection then either NRPE isn't running, xinetd isn't configured correctly (if it's using xinetd), the CentOS firewall is blocking it, or something else. :-)
Also, on the Nagios host there should be a check_nrpe Nagios check command (in the Nagios libexec directory, usually) that you can run:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host
You can also use check_nrpe to check specific items:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host -c check_load
When all that is working for you then you need to make sure your Nagios config uses the check_nrpe command for each remote service, otherwise you'll end up just checking the local machine:
define service{
use generic-service
host_name tecmint
service_description CPU Load
check_command check_nrpe!check_load
}
Or . . . do yourself a favour and install Zabbix. :-P
Shane.
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 3
Date: Thu, 22 Jan 2015 18:49:10 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <20150122184910.0688b444@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
On Thu, 22 Jan 2015 10:54:09 -0000, martinm@it-helps.co.uk said:
> However nagios fails to start with check_remote_procs
Have you defined check_remote_procs?
> Not sure if/what firewall is running. Not shorewall. How can I tell?
iptables -L
> Still doesn't explain why the server appears to be connecting to the
> localhost for all servers though.
Check the command definitions.
> I've installed Zabbix on one server but that is having problems
> connecting to itself...... And looks a bit complex - I like to simple
> grid in Nagios, but not the config files :(
OK, what are you trying to achieve? You've started with Nagios, and now
you're looking at Zabbix. Both work, both can be effective, but neither is
a five minute setup. I suggest you define your requirements (a single
sheet of A4 will do for that), then you need to spend some time reading
the docs to see which of Nagios or Zabbix (or any of the other myriad of
monitoring utilities there are) best meets your neeeds. You then start
building up checks from a few local through a few remote to as many checks
as you need.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
------------------------------
Message: 4
Date: Thu, 22 Jan 2015 19:11:49 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAADgmnA/3RsNLtrG1L7cJMNIBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
>Have you defined check_remote_procs?
Not sure. I assumed it was part of nagios. I'll check.
>> Not sure if/what firewall is running. Not shorewall. How can I tell?
>iptables -L
Ta.
>> Still doesn't explain why the server appears to be connecting to the
>> localhost for all servers though.
>Check the command definitions.
Will do.
Nagios is perfect for the situation - I tried Zabbix as it was recommended.
I'll stick with Nagios!
Cheers,
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Keith Edmunds
Sent: 22 January 2015 18:49
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] NRPE/Nagios
On Thu, 22 Jan 2015 10:54:09 -0000, martinm@it-helps.co.uk said:
> However nagios fails to start with check_remote_procs
Have you defined check_remote_procs?
> Not sure if/what firewall is running. Not shorewall. How can I tell?
iptables -L
> Still doesn't explain why the server appears to be connecting to the
> localhost for all servers though.
Check the command definitions.
> I've installed Zabbix on one server but that is having problems
> connecting to itself...... And looks a bit complex - I like to simple
> grid in Nagios, but not the config files :(
OK, what are you trying to achieve? You've started with Nagios, and now
you're looking at Zabbix. Both work, both can be effective, but neither is a
five minute setup. I suggest you define your requirements (a single sheet of
A4 will do for that), then you need to spend some time reading the docs to
see which of Nagios or Zabbix (or any of the other myriad of monitoring
utilities there are) best meets your neeeds. You then start building up
checks from a few local through a few remote to as many checks as you need.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8952 - Release Date: 01/18/15
------------------------------
Message: 5
Date: Fri, 23 Jan 2015 01:46:27 +0000
From: Fernando Orus <forus@bts-usa.com>
To: 'Bristol and Bath Linux User Group' <bristol@mailman.lug.org.uk>
Subject: [bristol] Off Topic: Google API's
Message-ID: <9177792.HMG9dXm8d3@fernando-lemur-ultra>
Content-Type: text/plain; charset="us-ascii"
Hi guys,
I realise this is rather off topic but after having spent
quite a long time trying to figure out what I am doing wrong
I've decided to try and ask if any of you have done
something similar before.
I've written a small modification of the GMailAPIQuickStart
sample to try to read the emails with a certain label. Now,
I'd say reading the labels (that works) and reading the
messages (that doesn't) would be allowed with a
"https://www.googleapis.com/auth/gmail.modify" scope but
apparently it is not true or I am doing something else
wrong. This is what I get:
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Delegation denied for ferorus@gmail.com",
"reason" : "forbidden"
} ],
"message" : "Delegation denied for ferorus@gmail.com"
}
Am I in luck? Has any of you had done something like this
before? I'm using java but I would happily use any other
language.
See you on Saturday, anyway.
Cheers,
Fernando
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GmailApiQuickstart.java
Type: text/x-java
Size: 3779 bytes
Desc: not available
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150123/8b9c5553/attachment-0001.java>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 5
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: NRPE/Nagios (Martin Moore)
2. Re: NRPE/Nagios (Martin Moore)
3. Re: NRPE/Nagios (Keith Edmunds)
4. Re: NRPE/Nagios (Martin Moore)
5. Off Topic: Google API's (Fernando Orus)
----------------------------------------------------------------------
Message: 1
Date: Thu, 22 Jan 2015 14:07:39 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <112501d0364c$caaaccf0$600066d0$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Nagios server is Ubuntu 10.04.4 LTS
Not sure where it came from, sources.list
deb http://mirrors.webfusion.com/ubuntu lucid main restricted universe
multiverse
deb http://mirrors.webfusion.com/ubuntu lucid-updates main restricted
universe multiverse
deb http://mirrors.webfusion.com/ubuntu lucid-security main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-backports main restricted
universe multiverse
deb http://archive.canonical.com/ lucid partner
Remotes are both CentOS release 6.5
not use Centos before, I'm guessing the repos are epel and dag from
yum --enablerepo=dag -y install nagios-nrpe nagios-plugins-nrpe
yum --enablerepo=epel -y install nrpe nagios-plugins-all.x86_64
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of David Corking
Sent: 22 January 2015 11:03
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] NRPE/Nagios
Martin, CentOS and Ubuntu version numbers may help too, as well as which
package repo you got Nagios/NPRE from (IME init scripts vary according to
the tastes of the package maintainer.) David
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 2
Date: Thu, 22 Jan 2015 14:19:21 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <112c01d0364e$6cbe1550$463a3ff0$@co.uk>
Content-Type: text/plain; charset="utf-8"
telnet remote1 5666
Trying xx.xx.xx.xx...
Connected to remote1.
Escape character is '^]'.
Connection closed by foreign host.
So doesn't look too good!
Check_nrpe returns the infamous 'CHECK_NRPE: Error - Could not complete SSL handshake.'
Not sure if/what firewall is running. Not shorewall. How can I tell?
Still doesn't explain why the server appears to be connecting to the localhost for all servers though.
I've installed Zabbix on one server but that is having problems connecting to itself...... And looks a bit complex - I like to simple grid in Nagios, but not the config files :(
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Shane McEwan
Sent: 22 January 2015 11:54
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] NRPE/Nagios
On 22/01/15 09:25, Martin Moore wrote:
> I?ve installed Nagios/NRPE on 3 boxes.
>
>
>
> The Nagios server is on an Ubuntu box, the slaves are Centos.
NRPE might be running via xinetd so there might not be a process running all the time. The best way to check is from the Nagios server run:
telnet nrpe_client_host 5666
If you get a connection then NRPE is probably OK. If you don't get a connection then either NRPE isn't running, xinetd isn't configured correctly (if it's using xinetd), the CentOS firewall is blocking it, or something else. :-)
Also, on the Nagios host there should be a check_nrpe Nagios check command (in the Nagios libexec directory, usually) that you can run:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host
You can also use check_nrpe to check specific items:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host -c check_load
When all that is working for you then you need to make sure your Nagios config uses the check_nrpe command for each remote service, otherwise you'll end up just checking the local machine:
define service{
use generic-service
host_name tecmint
service_description CPU Load
check_command check_nrpe!check_load
}
Or . . . do yourself a favour and install Zabbix. :-P
Shane.
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 3
Date: Thu, 22 Jan 2015 18:49:10 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <20150122184910.0688b444@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
On Thu, 22 Jan 2015 10:54:09 -0000, martinm@it-helps.co.uk said:
> However nagios fails to start with check_remote_procs
Have you defined check_remote_procs?
> Not sure if/what firewall is running. Not shorewall. How can I tell?
iptables -L
> Still doesn't explain why the server appears to be connecting to the
> localhost for all servers though.
Check the command definitions.
> I've installed Zabbix on one server but that is having problems
> connecting to itself...... And looks a bit complex - I like to simple
> grid in Nagios, but not the config files :(
OK, what are you trying to achieve? You've started with Nagios, and now
you're looking at Zabbix. Both work, both can be effective, but neither is
a five minute setup. I suggest you define your requirements (a single
sheet of A4 will do for that), then you need to spend some time reading
the docs to see which of Nagios or Zabbix (or any of the other myriad of
monitoring utilities there are) best meets your neeeds. You then start
building up checks from a few local through a few remote to as many checks
as you need.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
------------------------------
Message: 4
Date: Thu, 22 Jan 2015 19:11:49 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAADgmnA/3RsNLtrG1L7cJMNIBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
>Have you defined check_remote_procs?
Not sure. I assumed it was part of nagios. I'll check.
>> Not sure if/what firewall is running. Not shorewall. How can I tell?
>iptables -L
Ta.
>> Still doesn't explain why the server appears to be connecting to the
>> localhost for all servers though.
>Check the command definitions.
Will do.
Nagios is perfect for the situation - I tried Zabbix as it was recommended.
I'll stick with Nagios!
Cheers,
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Keith Edmunds
Sent: 22 January 2015 18:49
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] NRPE/Nagios
On Thu, 22 Jan 2015 10:54:09 -0000, martinm@it-helps.co.uk said:
> However nagios fails to start with check_remote_procs
Have you defined check_remote_procs?
> Not sure if/what firewall is running. Not shorewall. How can I tell?
iptables -L
> Still doesn't explain why the server appears to be connecting to the
> localhost for all servers though.
Check the command definitions.
> I've installed Zabbix on one server but that is having problems
> connecting to itself...... And looks a bit complex - I like to simple
> grid in Nagios, but not the config files :(
OK, what are you trying to achieve? You've started with Nagios, and now
you're looking at Zabbix. Both work, both can be effective, but neither is a
five minute setup. I suggest you define your requirements (a single sheet of
A4 will do for that), then you need to spend some time reading the docs to
see which of Nagios or Zabbix (or any of the other myriad of monitoring
utilities there are) best meets your neeeds. You then start building up
checks from a few local through a few remote to as many checks as you need.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8952 - Release Date: 01/18/15
------------------------------
Message: 5
Date: Fri, 23 Jan 2015 01:46:27 +0000
From: Fernando Orus <forus@bts-usa.com>
To: 'Bristol and Bath Linux User Group' <bristol@mailman.lug.org.uk>
Subject: [bristol] Off Topic: Google API's
Message-ID: <9177792.HMG9dXm8d3@fernando-lemur-ultra>
Content-Type: text/plain; charset="us-ascii"
Hi guys,
I realise this is rather off topic but after having spent
quite a long time trying to figure out what I am doing wrong
I've decided to try and ask if any of you have done
something similar before.
I've written a small modification of the GMailAPIQuickStart
sample to try to read the emails with a certain label. Now,
I'd say reading the labels (that works) and reading the
messages (that doesn't) would be allowed with a
"https://www.googleapis.com/auth/gmail.modify" scope but
apparently it is not true or I am doing something else
wrong. This is what I get:
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Delegation denied for ferorus@gmail.com",
"reason" : "forbidden"
} ],
"message" : "Delegation denied for ferorus@gmail.com"
}
Am I in luck? Has any of you had done something like this
before? I'm using java but I would happily use any other
language.
See you on Saturday, anyway.
Cheers,
Fernando
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GmailApiQuickstart.java
Type: text/x-java
Size: 3779 bytes
Desc: not available
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150123/8b9c5553/attachment-0001.java>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 5
***************************************
Kamis, 22 Januari 2015
Bristol Digest, Vol 586, Issue 4
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Special LUG Meeting this Saturday! 24/01/15 (Sebastian)
2. NRPE/Nagios (Martin Moore)
3. Re: NRPE/Nagios (Richard Stearn)
4. Re: NRPE/Nagios (Martin Moore)
5. Re: NRPE/Nagios (David Corking)
6. Re: NRPE/Nagios (Shane McEwan)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jan 2015 15:08:56 +0000
From: Sebastian <sebsebseb_mageia@gmx.com>
To: bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>,
sebastian <sebsebseb_mageia@gmx.com>
Subject: [bristol] Special LUG Meeting this Saturday! 24/01/15
Message-ID: <54BFC108.10105@gmx.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Hi
Yes it's nearly time again for yet another informal LUG meeting that is
the first one of 2015 as well at the Knight's Templar Pub in Temple Quay
near Temple Meads train station:
http://www.jdwetherspoon.co.uk/home/pubs/the-knights-templar However
this time it should be a special meeting, because of how I have arranged
for a suprise guest/newcomer to join us, and they should be there with
another guest/newcomer as well. If for some reason they don't turn up
though I'll still have a quite interseting tech device that I can show
with me :).
If you are new and would like to come along I suggest not turning up
until 2pm by the earliest when at least someone else is likely to be
there as well, and people tend to leave between 4pm to 5:30pm, sometimes
a bit later than that even. We sit on the lower level at the back when
entering the pub on the left by the plugs in the corner, or near there
instead if someone else is already there.
I hope to meet quite a few of you there this Saturday :) and I'll try to
get there for 2pm, but may get there a bit later instead.
Who is intending on being there as well and at what time?
Regards
Sebastian
------------------------------
Message: 2
Date: Thu, 22 Jan 2015 09:25:23 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: [bristol] NRPE/Nagios
Message-ID: <10a001d03625$5b680d20$12382760$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Me again!
I've installed Nagios/NRPE on 3 boxes.
The Nagios server is on an Ubuntu box, the slaves are Centos.
With the default checks (current load, users, disk space, total processes)
all looks OK - except the disk space is the same on all of them, and is
reporting localhost values for both the remote units as well.
The correct server names are showing in the nagios page, so it looks like
the config is correct.
Current load is different on localhost but same on both remotes which is
suspicious.
I've tried stopping NRPE on the remotes to see if nagios starts complaining
(indicate it's trying the correct remote) but it fails. When rsestarted it's
not showing in in the process list either. Starting it reports success.
service nrpe stop
Shutting down Nagios NRPE daemon (nrpe): [FAILED]
/etc/init.d/nrpe stop
Shutting down Nagios NRPE daemon (nrpe): [FAILED]
ps aux | grep nrpe
root 5322 0.0 0.0 103252 836 pts/3 S+ 09:07 0:00 grep nrpe
Any clues?
Cheers,
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150122/05bb5419/attachment-0001.html>
------------------------------
Message: 3
Date: Thu, 22 Jan 2015 10:16:16 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <54C0CDF0.4090205@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Martin Moore wrote:
> Me again!
> I've installed Nagios/NRPE on 3 boxes.
Version numbers?
--
Regards
Richard
------------------------------
Message: 4
Date: Thu, 22 Jan 2015 10:54:09 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <10cc01d03631$c2414820$46c3d860$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Nagios 3.2.0
NRPE v2.12
I've spotted that it's using
check_command check_procs!250!400
instead of
check_command check_remote_procs
which is what I've used in my last job.
However nagios fails to start with check_remote_procs
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Richard Stearn
Sent: 22 January 2015 10:16
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] NRPE/Nagios
Martin Moore wrote:
> Me again!
> I've installed Nagios/NRPE on 3 boxes.
Version numbers?
--
Regards
Richard
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 5
Date: Thu, 22 Jan 2015 11:03:03 +0000
From: David Corking <lists@dcorking.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID:
<CAG+Z5JfnG+vjGahQDz90GdDLR76wypVZ7C5H-tqZYgHSYg5F5Q@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Martin, CentOS and Ubuntu version numbers may help too, as well as
which package repo you got Nagios/NPRE from (IME init scripts vary
according to the tastes of the package maintainer.)
David
------------------------------
Message: 6
Date: Thu, 22 Jan 2015 11:53:59 +0000
From: Shane McEwan <shane@mcewan.id.au>
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <54C0E4D7.5020305@mcewan.id.au>
Content-Type: text/plain; charset=utf-8
On 22/01/15 09:25, Martin Moore wrote:
> I?ve installed Nagios/NRPE on 3 boxes.
>
>
>
> The Nagios server is on an Ubuntu box, the slaves are Centos.
NRPE might be running via xinetd so there might not be a process running
all the time. The best way to check is from the Nagios server run:
telnet nrpe_client_host 5666
If you get a connection then NRPE is probably OK. If you don't get a
connection then either NRPE isn't running, xinetd isn't configured
correctly (if it's using xinetd), the CentOS firewall is blocking it, or
something else. :-)
Also, on the Nagios host there should be a check_nrpe Nagios check
command (in the Nagios libexec directory, usually) that you can run:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host
You can also use check_nrpe to check specific items:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host -c check_load
When all that is working for you then you need to make sure your Nagios
config uses the check_nrpe command for each remote service, otherwise
you'll end up just checking the local machine:
define service{
use generic-service
host_name tecmint
service_description CPU Load
check_command check_nrpe!check_load
}
Or . . . do yourself a favour and install Zabbix. :-P
Shane.
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 4
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Special LUG Meeting this Saturday! 24/01/15 (Sebastian)
2. NRPE/Nagios (Martin Moore)
3. Re: NRPE/Nagios (Richard Stearn)
4. Re: NRPE/Nagios (Martin Moore)
5. Re: NRPE/Nagios (David Corking)
6. Re: NRPE/Nagios (Shane McEwan)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jan 2015 15:08:56 +0000
From: Sebastian <sebsebseb_mageia@gmx.com>
To: bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>,
sebastian <sebsebseb_mageia@gmx.com>
Subject: [bristol] Special LUG Meeting this Saturday! 24/01/15
Message-ID: <54BFC108.10105@gmx.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Hi
Yes it's nearly time again for yet another informal LUG meeting that is
the first one of 2015 as well at the Knight's Templar Pub in Temple Quay
near Temple Meads train station:
http://www.jdwetherspoon.co.uk/home/pubs/the-knights-templar However
this time it should be a special meeting, because of how I have arranged
for a suprise guest/newcomer to join us, and they should be there with
another guest/newcomer as well. If for some reason they don't turn up
though I'll still have a quite interseting tech device that I can show
with me :).
If you are new and would like to come along I suggest not turning up
until 2pm by the earliest when at least someone else is likely to be
there as well, and people tend to leave between 4pm to 5:30pm, sometimes
a bit later than that even. We sit on the lower level at the back when
entering the pub on the left by the plugs in the corner, or near there
instead if someone else is already there.
I hope to meet quite a few of you there this Saturday :) and I'll try to
get there for 2pm, but may get there a bit later instead.
Who is intending on being there as well and at what time?
Regards
Sebastian
------------------------------
Message: 2
Date: Thu, 22 Jan 2015 09:25:23 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: [bristol] NRPE/Nagios
Message-ID: <10a001d03625$5b680d20$12382760$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Me again!
I've installed Nagios/NRPE on 3 boxes.
The Nagios server is on an Ubuntu box, the slaves are Centos.
With the default checks (current load, users, disk space, total processes)
all looks OK - except the disk space is the same on all of them, and is
reporting localhost values for both the remote units as well.
The correct server names are showing in the nagios page, so it looks like
the config is correct.
Current load is different on localhost but same on both remotes which is
suspicious.
I've tried stopping NRPE on the remotes to see if nagios starts complaining
(indicate it's trying the correct remote) but it fails. When rsestarted it's
not showing in in the process list either. Starting it reports success.
service nrpe stop
Shutting down Nagios NRPE daemon (nrpe): [FAILED]
/etc/init.d/nrpe stop
Shutting down Nagios NRPE daemon (nrpe): [FAILED]
ps aux | grep nrpe
root 5322 0.0 0.0 103252 836 pts/3 S+ 09:07 0:00 grep nrpe
Any clues?
Cheers,
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150122/05bb5419/attachment-0001.html>
------------------------------
Message: 3
Date: Thu, 22 Jan 2015 10:16:16 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <54C0CDF0.4090205@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Martin Moore wrote:
> Me again!
> I've installed Nagios/NRPE on 3 boxes.
Version numbers?
--
Regards
Richard
------------------------------
Message: 4
Date: Thu, 22 Jan 2015 10:54:09 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <10cc01d03631$c2414820$46c3d860$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Nagios 3.2.0
NRPE v2.12
I've spotted that it's using
check_command check_procs!250!400
instead of
check_command check_remote_procs
which is what I've used in my last job.
However nagios fails to start with check_remote_procs
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Richard Stearn
Sent: 22 January 2015 10:16
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] NRPE/Nagios
Martin Moore wrote:
> Me again!
> I've installed Nagios/NRPE on 3 boxes.
Version numbers?
--
Regards
Richard
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 5
Date: Thu, 22 Jan 2015 11:03:03 +0000
From: David Corking <lists@dcorking.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID:
<CAG+Z5JfnG+vjGahQDz90GdDLR76wypVZ7C5H-tqZYgHSYg5F5Q@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Martin, CentOS and Ubuntu version numbers may help too, as well as
which package repo you got Nagios/NPRE from (IME init scripts vary
according to the tastes of the package maintainer.)
David
------------------------------
Message: 6
Date: Thu, 22 Jan 2015 11:53:59 +0000
From: Shane McEwan <shane@mcewan.id.au>
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <54C0E4D7.5020305@mcewan.id.au>
Content-Type: text/plain; charset=utf-8
On 22/01/15 09:25, Martin Moore wrote:
> I?ve installed Nagios/NRPE on 3 boxes.
>
>
>
> The Nagios server is on an Ubuntu box, the slaves are Centos.
NRPE might be running via xinetd so there might not be a process running
all the time. The best way to check is from the Nagios server run:
telnet nrpe_client_host 5666
If you get a connection then NRPE is probably OK. If you don't get a
connection then either NRPE isn't running, xinetd isn't configured
correctly (if it's using xinetd), the CentOS firewall is blocking it, or
something else. :-)
Also, on the Nagios host there should be a check_nrpe Nagios check
command (in the Nagios libexec directory, usually) that you can run:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host
You can also use check_nrpe to check specific items:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host -c check_load
When all that is working for you then you need to make sure your Nagios
config uses the check_nrpe command for each remote service, otherwise
you'll end up just checking the local machine:
define service{
use generic-service
host_name tecmint
service_description CPU Load
check_command check_nrpe!check_load
}
Or . . . do yourself a favour and install Zabbix. :-P
Shane.
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 4
***************************************
Rabu, 21 Januari 2015
Bristol Digest, Vol 586, Issue 3
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Rubbish Garmin S/W - OT (Alex Butcher)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jan 2015 09:53:16 +0000 (GMT)
From: Alex Butcher <lug@assursys.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Rubbish Garmin S/W - OT
Message-ID:
<alpine.LFD.2.11.1501210952230.2961@sbhezbfg.of5.nffheflf.cev>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 20 Jan 2015, Peter Hemmings wrote:
> Why the S/W cannot be configured to just delete the map file(s) on the SD
> card without all this procedure I don't know, but maybe someone can give a
> sensible reason?
Because then people would use it, wipe their GPS, and end up needing to call
support and being talked through restoring it, I would guess.
Best Regards,
Alex
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 3
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Rubbish Garmin S/W - OT (Alex Butcher)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jan 2015 09:53:16 +0000 (GMT)
From: Alex Butcher <lug@assursys.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Rubbish Garmin S/W - OT
Message-ID:
<alpine.LFD.2.11.1501210952230.2961@sbhezbfg.of5.nffheflf.cev>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 20 Jan 2015, Peter Hemmings wrote:
> Why the S/W cannot be configured to just delete the map file(s) on the SD
> card without all this procedure I don't know, but maybe someone can give a
> sensible reason?
Because then people would use it, wipe their GPS, and end up needing to call
support and being talked through restoring it, I would guess.
Best Regards,
Alex
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 3
***************************************
Selasa, 20 Januari 2015
Bristol Digest, Vol 586, Issue 2
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) - Success (Peter Hemmings)
2. Rubbish Garmin S/W - OT (Peter Hemmings)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Jan 2015 12:25:06 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor) - Success
Message-ID: <54BCF7A2.4040803@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
I have modified the script like so:
>>
>>>> #define TEMP_OFFSET -27
>>>> #define MULTIPLIER 10
>> define constants
>>
>>
>>>> int deciC;
>> define variables
>>
>>
>>>> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
>>>> deciC = deciC + (TEMP_OFFSET);
and added this to the second part of original "printf":
>>>> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
It all works and I adjusted offset to agree with other thermometers so
hope its a bit more accurate!
Not tried below freezing yet but I would assume that as my offset is
-19, I should get down to -1.9!
A useful (but a little long) project.
Thanks for all the advice on "c" and dygraph.
Regards
--
Peter H
------------------------------
Message: 2
Date: Tue, 20 Jan 2015 10:00:19 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: [bristol] Rubbish Garmin S/W - OT
Message-ID: <54BE2733.2080003@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Hi,
I thought mainstream suppliers would have sorted their S/W out to make
map updating as stress-less as possible, but it seems that's not the case.
I have an oldish Nuvi 765 GPS that had previously been updated with maps
onto a SD card as its internal memory was too small for the latest
updated map.
I had a "lifetime update" card and it worked OK a couple of years ago,
since then Garmin have standardized their S/W and it is now done through
"Garmin Express", where any Garmin GPS's can be registered and updated.
The S/W worked OK in recognizing my old GPS and updating firmware on the
H/W but when trying to update European map it took forever and stoped
(overnight) when about halfway through the download.
I did the twice and it stopped again without any warning/explanation.
The Garmin site say I should have had an option to install on to the SD
card but I didn't!
After a bit of googling I found how to solve the problem:
Switch off and remove GPS.
Remove registration from "Garmin Express"
Remove SD card (with old maps) and remove files
Put SD card into GPS and re-register.
It then gave me an option to put the files onto the card and updated OK.
Apparently the GPS has an OS based on Linux but with S/W like theirs it
noes not help promote our OS!
The "Garmin Express" is a Windoze program and it will not work on a
virtual machine so its the only reason I have still got XP, however it
does give a critical warning to upgrade to Vista!!! when it runs.
Why the S/W cannot be configured to just delete the map file(s) on the
SD card without all this procedure I don't know, but maybe someone can
give a sensible reason?
Regards
--
Peter H
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 2
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) - Success (Peter Hemmings)
2. Rubbish Garmin S/W - OT (Peter Hemmings)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Jan 2015 12:25:06 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor) - Success
Message-ID: <54BCF7A2.4040803@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
I have modified the script like so:
>>
>>>> #define TEMP_OFFSET -27
>>>> #define MULTIPLIER 10
>> define constants
>>
>>
>>>> int deciC;
>> define variables
>>
>>
>>>> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
>>>> deciC = deciC + (TEMP_OFFSET);
and added this to the second part of original "printf":
>>>> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
It all works and I adjusted offset to agree with other thermometers so
hope its a bit more accurate!
Not tried below freezing yet but I would assume that as my offset is
-19, I should get down to -1.9!
A useful (but a little long) project.
Thanks for all the advice on "c" and dygraph.
Regards
--
Peter H
------------------------------
Message: 2
Date: Tue, 20 Jan 2015 10:00:19 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: [bristol] Rubbish Garmin S/W - OT
Message-ID: <54BE2733.2080003@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Hi,
I thought mainstream suppliers would have sorted their S/W out to make
map updating as stress-less as possible, but it seems that's not the case.
I have an oldish Nuvi 765 GPS that had previously been updated with maps
onto a SD card as its internal memory was too small for the latest
updated map.
I had a "lifetime update" card and it worked OK a couple of years ago,
since then Garmin have standardized their S/W and it is now done through
"Garmin Express", where any Garmin GPS's can be registered and updated.
The S/W worked OK in recognizing my old GPS and updating firmware on the
H/W but when trying to update European map it took forever and stoped
(overnight) when about halfway through the download.
I did the twice and it stopped again without any warning/explanation.
The Garmin site say I should have had an option to install on to the SD
card but I didn't!
After a bit of googling I found how to solve the problem:
Switch off and remove GPS.
Remove registration from "Garmin Express"
Remove SD card (with old maps) and remove files
Put SD card into GPS and re-register.
It then gave me an option to put the files onto the card and updated OK.
Apparently the GPS has an OS based on Linux but with S/W like theirs it
noes not help promote our OS!
The "Garmin Express" is a Windoze program and it will not work on a
virtual machine so its the only reason I have still got XP, however it
does give a critical warning to upgrade to Vista!!! when it runs.
Why the S/W cannot be configured to just delete the map file(s) on the
SD card without all this procedure I don't know, but maybe someone can
give a sensible reason?
Regards
--
Peter H
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 2
***************************************
Senin, 19 Januari 2015
Bristol Digest, Vol 586, Issue 1
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Richard Stearn)
2. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
3. Re: LDAP (Steve King)
4. Re: LDAP (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Sun, 18 Jan 2015 13:47:07 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BBB95B.6040702@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Peter Hemmings wrote:
> On 17/01/15 17:36, Richard Stearn wrote:
> Are the names limited by libraries etc, for example "deciC"
No. Completely arbitary. DeCiC, dEcIc, Temp_Offset tempoffset, ...
There are common conventions, e.g. anything "#define"d tends to be
in capitals, variables and function names lower or mixed case.
Some use camel case e.g. AFunctionToDoSomething, some use "_" to
punctuate the name e.g. a_function_to_do_something, some do not care
and just run it all together e.g. afunctiontodosomething.
You may also find names like fAFunction or iAnInteger where the type
of the name is indicated by the initial letter. Very common where
a coding standard (a document setting out _exactly_ how function/variable
names _will_ be constructed) has been defined.
>> #define TEMP_OFFSET -27
>> #define MULTIPLIER 10
define constants
>> int deciC;
define variables
>> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
>
> calculate make the whole number byte into tenths and add the decimal
> byte to give the total temperature in tenths of degrees C.
Yes.
>> deciC = deciC + (TEMP_OFFSET);
>
> add tenths offset to deciC
Yes.
>> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
>
> Print the 2 values "deciC divided by 10 to give whole degrees, plus
> "desic % MULTIPLIER".
The % sign means "return the remainder (modulus) of the division".
Thus for a temperature of 9.8C, deciC = 98,
printf( "%d\n", deciC / MULTIPLIER );
would print "9" and
printf( "%d\n", deciC % MULTIPLIER );
would print "8".
--
Regards
Richard
------------------------------
Message: 2
Date: Sun, 18 Jan 2015 14:21:50 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BBC17E.2020208@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 18/01/15 13:47, Richard Stearn wrote:
> Peter Hemmings wrote:
>> On 17/01/15 17:36, Richard Stearn wrote:
>> Are the names limited by libraries etc, for example "deciC"
>
> No. Completely arbitary. DeCiC, dEcIc, Temp_Offset tempoffset, ...
OK
>
> There are common conventions, e.g. anything "#define"d tends to be
> in capitals, variables and function names lower or mixed case.
>
> Some use camel case e.g. AFunctionToDoSomething, some use "_" to
> punctuate the name e.g. a_function_to_do_something, some do not care
> and just run it all together e.g. afunctiontodosomething.
>
> You may also find names like fAFunction or iAnInteger where the type
> of the name is indicated by the initial letter. Very common where
> a coding standard (a document setting out _exactly_ how function/variable
> names _will_ be constructed) has been defined.
>
>
>>> #define TEMP_OFFSET -27
>>> #define MULTIPLIER 10
> define constants
>
>
>>> int deciC;
> define variables
>
>
>>> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
>>
>> calculate make the whole number byte into tenths and add the decimal
>> byte to give the total temperature in tenths of degrees C.
>
> Yes.
>
>>> deciC = deciC + (TEMP_OFFSET);
>>
>> add tenths offset to deciC
>
> Yes.
>
>>> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
>>
>> Print the 2 values "deciC divided by 10 to give whole degrees, plus
>> "desic % MULTIPLIER".
>
> The % sign means "return the remainder (modulus) of the division".
OK thanks, that was my main problem.
>
> Thus for a temperature of 9.8C, deciC = 98,
> printf( "%d\n", deciC / MULTIPLIER );
> would print "9" and
> printf( "%d\n", deciC % MULTIPLIER );
> would print "8".
>
OK that's now "crystal".
BTW for any other lurkers new to all this, like me (and for
completeness), the "/n" is for a new line without flushing the output
buffer.
Regards
--
Peter H
------------------------------
Message: 3
Date: Sun, 18 Jan 2015 23:44:29 -0000
From: "Steve King" <debian@invux.com>
To: "Bristol and Bath Linux User Group" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<9f5843b8e66a05272c6194f1aa4db2c6.squirrel@jarate.invux.com>
Content-Type: text/plain;charset=iso-8859-1
Keith said:
> LDAP isn't overly complex, but it does need some understanding before you
> try implementing it. I'd suggest you read up on it and set it up in a test
> environment first. Setting up replication and LDAPS access is a bit more
> complex.
>
> Useful tools:
>
> - phpLdapAdmin
> - ldapvi
>
SSL is a must if you don't want plain text passwords flying around your LAN
And I have found smbldap-tools helpful, although you have to configure
your LDAP in the way the authors expected (and just because you haven't
doesn't mean you did it wrong)
Is it still the case that the two separate password fields: POSIX password
and NT Password have to be synchronised at account creation or password
change? Or is best practice to use libpam-winbind?
--
Steve
------------------------------
Message: 4
Date: Mon, 19 Jan 2015 08:56:21 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GJmqvMyCektc9kuH9Zcxdi47JeFfKbyt1hBmR3DvLUoRw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
> Keith said:
>> LDAP isn't overly complex, but it does need some understanding before you
>> try implementing it. I'd suggest you read up on it and set it up in a test
>> environment first. Setting up replication and LDAPS access is a bit more
>> complex.
>>
>> Useful tools:
>>
>> - phpLdapAdmin
>> - ldapvi
>>
>
> SSL is a must if you don't want plain text passwords flying around your LAN
> And I have found smbldap-tools helpful, although you have to configure
> your LDAP in the way the authors expected (and just because you haven't
> doesn't mean you did it wrong)
Don't forget ldaps isn't a standard and is deprecated. StartTLS on
port 389 vs port 636 for ldaps is preferred. All decent software
should support StartTLS.
> Is it still the case that the two separate password fields: POSIX password
> and NT Password have to be synchronised at account creation or password
> change? Or is best practice to use libpam-winbind?
smbtools can do it or if you use the contrib module
http://labs.opinsys.com/blog/2010/05/05/smbkrb5pwd-password-syncing-for-openldap-mit-kerberos-and-samba/
--
Kind Regards,
Gavin Henry.
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 1
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Richard Stearn)
2. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
3. Re: LDAP (Steve King)
4. Re: LDAP (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Sun, 18 Jan 2015 13:47:07 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BBB95B.6040702@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Peter Hemmings wrote:
> On 17/01/15 17:36, Richard Stearn wrote:
> Are the names limited by libraries etc, for example "deciC"
No. Completely arbitary. DeCiC, dEcIc, Temp_Offset tempoffset, ...
There are common conventions, e.g. anything "#define"d tends to be
in capitals, variables and function names lower or mixed case.
Some use camel case e.g. AFunctionToDoSomething, some use "_" to
punctuate the name e.g. a_function_to_do_something, some do not care
and just run it all together e.g. afunctiontodosomething.
You may also find names like fAFunction or iAnInteger where the type
of the name is indicated by the initial letter. Very common where
a coding standard (a document setting out _exactly_ how function/variable
names _will_ be constructed) has been defined.
>> #define TEMP_OFFSET -27
>> #define MULTIPLIER 10
define constants
>> int deciC;
define variables
>> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
>
> calculate make the whole number byte into tenths and add the decimal
> byte to give the total temperature in tenths of degrees C.
Yes.
>> deciC = deciC + (TEMP_OFFSET);
>
> add tenths offset to deciC
Yes.
>> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
>
> Print the 2 values "deciC divided by 10 to give whole degrees, plus
> "desic % MULTIPLIER".
The % sign means "return the remainder (modulus) of the division".
Thus for a temperature of 9.8C, deciC = 98,
printf( "%d\n", deciC / MULTIPLIER );
would print "9" and
printf( "%d\n", deciC % MULTIPLIER );
would print "8".
--
Regards
Richard
------------------------------
Message: 2
Date: Sun, 18 Jan 2015 14:21:50 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BBC17E.2020208@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 18/01/15 13:47, Richard Stearn wrote:
> Peter Hemmings wrote:
>> On 17/01/15 17:36, Richard Stearn wrote:
>> Are the names limited by libraries etc, for example "deciC"
>
> No. Completely arbitary. DeCiC, dEcIc, Temp_Offset tempoffset, ...
OK
>
> There are common conventions, e.g. anything "#define"d tends to be
> in capitals, variables and function names lower or mixed case.
>
> Some use camel case e.g. AFunctionToDoSomething, some use "_" to
> punctuate the name e.g. a_function_to_do_something, some do not care
> and just run it all together e.g. afunctiontodosomething.
>
> You may also find names like fAFunction or iAnInteger where the type
> of the name is indicated by the initial letter. Very common where
> a coding standard (a document setting out _exactly_ how function/variable
> names _will_ be constructed) has been defined.
>
>
>>> #define TEMP_OFFSET -27
>>> #define MULTIPLIER 10
> define constants
>
>
>>> int deciC;
> define variables
>
>
>>> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
>>
>> calculate make the whole number byte into tenths and add the decimal
>> byte to give the total temperature in tenths of degrees C.
>
> Yes.
>
>>> deciC = deciC + (TEMP_OFFSET);
>>
>> add tenths offset to deciC
>
> Yes.
>
>>> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
>>
>> Print the 2 values "deciC divided by 10 to give whole degrees, plus
>> "desic % MULTIPLIER".
>
> The % sign means "return the remainder (modulus) of the division".
OK thanks, that was my main problem.
>
> Thus for a temperature of 9.8C, deciC = 98,
> printf( "%d\n", deciC / MULTIPLIER );
> would print "9" and
> printf( "%d\n", deciC % MULTIPLIER );
> would print "8".
>
OK that's now "crystal".
BTW for any other lurkers new to all this, like me (and for
completeness), the "/n" is for a new line without flushing the output
buffer.
Regards
--
Peter H
------------------------------
Message: 3
Date: Sun, 18 Jan 2015 23:44:29 -0000
From: "Steve King" <debian@invux.com>
To: "Bristol and Bath Linux User Group" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<9f5843b8e66a05272c6194f1aa4db2c6.squirrel@jarate.invux.com>
Content-Type: text/plain;charset=iso-8859-1
Keith said:
> LDAP isn't overly complex, but it does need some understanding before you
> try implementing it. I'd suggest you read up on it and set it up in a test
> environment first. Setting up replication and LDAPS access is a bit more
> complex.
>
> Useful tools:
>
> - phpLdapAdmin
> - ldapvi
>
SSL is a must if you don't want plain text passwords flying around your LAN
And I have found smbldap-tools helpful, although you have to configure
your LDAP in the way the authors expected (and just because you haven't
doesn't mean you did it wrong)
Is it still the case that the two separate password fields: POSIX password
and NT Password have to be synchronised at account creation or password
change? Or is best practice to use libpam-winbind?
--
Steve
------------------------------
Message: 4
Date: Mon, 19 Jan 2015 08:56:21 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GJmqvMyCektc9kuH9Zcxdi47JeFfKbyt1hBmR3DvLUoRw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
> Keith said:
>> LDAP isn't overly complex, but it does need some understanding before you
>> try implementing it. I'd suggest you read up on it and set it up in a test
>> environment first. Setting up replication and LDAPS access is a bit more
>> complex.
>>
>> Useful tools:
>>
>> - phpLdapAdmin
>> - ldapvi
>>
>
> SSL is a must if you don't want plain text passwords flying around your LAN
> And I have found smbldap-tools helpful, although you have to configure
> your LDAP in the way the authors expected (and just because you haven't
> doesn't mean you did it wrong)
Don't forget ldaps isn't a standard and is deprecated. StartTLS on
port 389 vs port 636 for ldaps is preferred. All decent software
should support StartTLS.
> Is it still the case that the two separate password fields: POSIX password
> and NT Password have to be synchronised at account creation or password
> change? Or is best practice to use libpam-winbind?
smbtools can do it or if you use the contrib module
http://labs.opinsys.com/blog/2010/05/05/smbkrb5pwd-password-syncing-for-openldap-mit-kerberos-and-samba/
--
Kind Regards,
Gavin Henry.
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 1
***************************************
Minggu, 18 Januari 2015
Bristol Digest, Vol 585, Issue 11
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
----------------------------------------------------------------------
Message: 1
Date: Sun, 18 Jan 2015 11:32:53 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BB99E5.5000600@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 17/01/15 17:36, Richard Stearn wrote:
snip
>
> It is a matter of how you represent the information in your program.
>
> 1.0 C = 10 deciC = 100 centiC = 1000 milliC
>
THAT, I should have known!!
> I have not studied what you are doing in detail, however you appear to
> have two values (humidity and temperature) both represented as a byte
> to the left of the decimal point and one byte to the right.
Correct
>
> The range of the above representation potentially covers from -128.99 to
> +127.99 or 0.00 to 255.99 (given the printf statement, only 0 .. 9 is used
> for the decimal part). So, if you multiply the LHS by 10 and add the RHS
> you have a value in deciC (10ths of a deg C).
I am not sure exactly how the print line works (see below).
Are the names limited by libraries etc, for example "deciC"
TEMP_OFFSET" and so must be exactly as typed?
Here are my assumptions:
>
> e.g.
>
> #define TEMP_OFFSET -27
> #define MULTIPLIER 10
Define variables
>
> int deciC;
>
> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
calculate make the whole number byte into tenths and add the decimal
byte to give the total temperature in tenths of degrees C.
> deciC = deciC + (TEMP_OFFSET);
add tenths offset to deciC
> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
Print the 2 values "deciC divided by 10 to give whole degrees, plus
"desic % MULTIPLIER".
How does this last part produce the decimal from deciC, and has it
limited significant places?
>
>
> If the RHS represented 0 .. 99 then use 100 as the multiplier and you have
> a value in centiC.
>
> Although the sensor is only rated for 0 .. 50 C, you might want to check
> what the output is when you stick it in the freezer. It might just curl
> up and report 0C, it might attempt to give a sane output. If it gives
> something sane then you will need to account for the sign in your
> manipulations.
>
> Or. You could do as Alex suggests and use a float or double representation.
> You will still need to account for sign of the temperature (if relevant).
>
Thanks for your perseverance
Regards
--
Peter H
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 11
****************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
----------------------------------------------------------------------
Message: 1
Date: Sun, 18 Jan 2015 11:32:53 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BB99E5.5000600@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 17/01/15 17:36, Richard Stearn wrote:
snip
>
> It is a matter of how you represent the information in your program.
>
> 1.0 C = 10 deciC = 100 centiC = 1000 milliC
>
THAT, I should have known!!
> I have not studied what you are doing in detail, however you appear to
> have two values (humidity and temperature) both represented as a byte
> to the left of the decimal point and one byte to the right.
Correct
>
> The range of the above representation potentially covers from -128.99 to
> +127.99 or 0.00 to 255.99 (given the printf statement, only 0 .. 9 is used
> for the decimal part). So, if you multiply the LHS by 10 and add the RHS
> you have a value in deciC (10ths of a deg C).
I am not sure exactly how the print line works (see below).
Are the names limited by libraries etc, for example "deciC"
TEMP_OFFSET" and so must be exactly as typed?
Here are my assumptions:
>
> e.g.
>
> #define TEMP_OFFSET -27
> #define MULTIPLIER 10
Define variables
>
> int deciC;
>
> deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
calculate make the whole number byte into tenths and add the decimal
byte to give the total temperature in tenths of degrees C.
> deciC = deciC + (TEMP_OFFSET);
add tenths offset to deciC
> printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
Print the 2 values "deciC divided by 10 to give whole degrees, plus
"desic % MULTIPLIER".
How does this last part produce the decimal from deciC, and has it
limited significant places?
>
>
> If the RHS represented 0 .. 99 then use 100 as the multiplier and you have
> a value in centiC.
>
> Although the sensor is only rated for 0 .. 50 C, you might want to check
> what the output is when you stick it in the freezer. It might just curl
> up and report 0C, it might attempt to give a sane output. If it gives
> something sane then you will need to account for the sign in your
> manipulations.
>
> Or. You could do as Alex suggests and use a float or double representation.
> You will still need to account for sign of the temperature (if relevant).
>
Thanks for your perseverance
Regards
--
Peter H
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 11
****************************************
Sabtu, 17 Januari 2015
Bristol Digest, Vol 585, Issue 10
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: LDAP (Martin Moore)
2. Re: LDAP (Gavin Henry)
3. Re: LDAP (Martin Moore)
4. Re: LDAP (Gavin Henry)
5. Re: LDAP (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jan 2015 18:51:40 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAJVuUXlGpDRGvkx98r7ve/4BAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
>Single SignOn across multiple apps isn't the same as the same username and
password to be used on different apps. Does your client understand that?
The client has apparently 'suggested' LDAP (new job for me, been there 2
weeks), I'm making sure it'll do what is needed before I approve it.
The idea is that a new user creates an account once that is used on both
systems, and any pwd etc. change is propagated.
>What do these domains look like?
Client1.myco.com
Client2.myco.com
Client3.myco.com
>You can serve as many suffixes as you like, but each needs it's own config
etc. How many do you see serving? It may be better to design your DIT to
suit this application.
Not sure - not more than 10, maybe just the one on LDAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/22a35cff/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 17 Jan 2015 19:22:41 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GLJia2kB8GYgW-MTs=+As=yWsmj2HDWRYRAxgwgo29m8Q@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 17 January 2015 at 18:51, Martin Moore <martinm@it-helps.co.uk> wrote:
>>Single SignOn across multiple apps isn't the same as the same username and
>> password to be used on different apps. Does your client understand that?
>
> The client has apparently 'suggested' LDAP (new job for me, been there 2
> weeks), I'm making sure it'll do what is needed before I approve it.
>
Check if they mean Single SignOn then. That's signon once to one app
and be authenticated and/or authorised to access/use the other apps.
If just same user/pass and prompted for them by each app, then fine.
That doesn't mean LDAP can't still to the auth/authz part just that
something like http://shibboleth.net/ could be used to share the "I've
already be authorized by another app" stuff.
>
> The idea is that a new user creates an account once that is used on both
> systems, and any pwd etc. change is propagated.
OK. Well a directory server would hold the password, so any app that
changes it only changes it there. Unless you are meaning that all the
systems have their own local password store?
>>What do these domains look like?
>
> Client1.myco.com
>
> Client2.myco.com
>
> Client3.myco.com
Ok, these could translate to:
ou=users,ou=client1,dc=myco,dc=com
ou=groups,ou=client1,dc=myco,dc=com
etc. with regex ACL's to work on the ou=client1/2 part.
>
>>You can serve as many suffixes as you like, but each needs it's own config
>> etc. How many do you see serving? It may be better to design your DIT to
>> suit this application.
>
> Not sure - not more than 10, maybe just the one on LDAP.
See above. Just one suffix of dc=myco,dc=com
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry@suretec.co.uk
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie,
Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api
------------------------------
Message: 3
Date: Sat, 17 Jan 2015 20:42:16 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAO6prMr3FoxOhkAyt8WaU/YBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
Thanks - SingleSignon looks most likely from the very brief comment I've
had, but it's useful to know the difference as it could be either method!
>OK. Well a directory server would hold the password, so any app that
changes it only changes it there. Unless you are meaning that all the
systems have their own local password store?
Whatever works - I've never used LDAP so not quite sure how it works yet. I
was under the impression that it replicated user/access data - are you
saying it is retrieved from a master server (the directory server?) on
demand?
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Gavin Henry
Sent: 17 January 2015 19:23
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] LDAP
On 17 January 2015 at 18:51, Martin Moore <martinm@it-helps.co.uk> wrote:
>>Single SignOn across multiple apps isn't the same as the same username
>>and password to be used on different apps. Does your client understand
that?
>
> The client has apparently 'suggested' LDAP (new job for me, been there
> 2 weeks), I'm making sure it'll do what is needed before I approve it.
>
Check if they mean Single SignOn then. That's signon once to one app and be
authenticated and/or authorised to access/use the other apps.
If just same user/pass and prompted for them by each app, then fine.
That doesn't mean LDAP can't still to the auth/authz part just that
something like http://shibboleth.net/ could be used to share the "I've
already be authorized by another app" stuff.
>
> The idea is that a new user creates an account once that is used on
> both systems, and any pwd etc. change is propagated.
OK. Well a directory server would hold the password, so any app that changes
it only changes it there. Unless you are meaning that all the systems have
their own local password store?
>>What do these domains look like?
>
> Client1.myco.com
>
> Client2.myco.com
>
> Client3.myco.com
Ok, these could translate to:
ou=users,ou=client1,dc=myco,dc=com
ou=groups,ou=client1,dc=myco,dc=com
etc. with regex ACL's to work on the ou=client1/2 part.
>
>>You can serve as many suffixes as you like, but each needs it's own
>>config etc. How many do you see serving? It may be better to design
>>your DIT to suit this application.
>
> Not sure - not more than 10, maybe just the one on LDAP.
See above. Just one suffix of dc=myco,dc=com
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry@suretec.co.uk
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie, Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8931 - Release Date: 01/14/15
------------------------------
Message: 4
Date: Sat, 17 Jan 2015 21:10:08 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GLfoJoe84p+89GrHtOHE6MvH4c_PyyY6A92n7ADqP9DNQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 17 January 2015 at 20:42, Martin Moore <martinm@it-helps.co.uk> wrote:
> Thanks - SingleSignon looks most likely from the very brief comment I've
> had, but it's useful to know the difference as it could be either method!
>
>>OK. Well a directory server would hold the password, so any app that
> changes it only changes it there. Unless you are meaning that all the
> systems have their own local password store?
>
> Whatever works - I've never used LDAP so not quite sure how it works yet. I
> was under the impression that it replicated user/access data - are you
> saying it is retrieved from a master server (the directory server?) on
> demand?
>
>
> -----Original Message-----
> From: bristol-bounces@mailman.lug.org.uk
> [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Gavin Henry
> Sent: 17 January 2015 19:23
> To: Bristol and Bath Linux User Group
> Subject: Re: [bristol] LDAP
>
> On 17 January 2015 at 18:51, Martin Moore <martinm@it-helps.co.uk> wrote:
>>>Single SignOn across multiple apps isn't the same as the same username
>>>and password to be used on different apps. Does your client understand
> that?
>>
>> The client has apparently 'suggested' LDAP (new job for me, been there
>> 2 weeks), I'm making sure it'll do what is needed before I approve it.
>>
>
> Check if they mean Single SignOn then. That's signon once to one app and be
> authenticated and/or authorised to access/use the other apps.
>
> If just same user/pass and prompted for them by each app, then fine.
> That doesn't mean LDAP can't still to the auth/authz part just that
> something like http://shibboleth.net/ could be used to share the "I've
> already be authorized by another app" stuff.
>
>>
>> The idea is that a new user creates an account once that is used on
>> both systems, and any pwd etc. change is propagated.
>
> OK. Well a directory server would hold the password, so any app that changes
> it only changes it there. Unless you are meaning that all the systems have
> their own local password store?
>
>>>What do these domains look like?
>>
>> Client1.myco.com
>>
>> Client2.myco.com
>>
>> Client3.myco.com
>
> Ok, these could translate to:
>
> ou=users,ou=client1,dc=myco,dc=com
> ou=groups,ou=client1,dc=myco,dc=com
>
> etc. with regex ACL's to work on the ou=client1/2 part.
>
>>
>>>You can serve as many suffixes as you like, but each needs it's own
>>>config etc. How many do you see serving? It may be better to design
>>>your DIT to suit this application.
>>
>> Not sure - not more than 10, maybe just the one on LDAP.
>
> See above. Just one suffix of dc=myco,dc=com
>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
>
>
> --
> Kind Regards,
>
> Gavin Henry.
> Managing Director.
>
> T +44 (0) 1224 279484
> M +44 (0) 7930 323266
> F +44 (0) 1224 824887
> E ghenry@suretec.co.uk
>
> Open Source. Open Solutions(tm).
>
> http://www.suretecsystems.com/
>
> Suretec Systems is a limited company registered in Scotland. Registered
> number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
> Inverurie, Aberdeenshire, AB51 8GL.
>
> Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
>
> Do you know we have our own VoIP provider called SureVoIP? See
> http://www.surevoip.co.uk
>
> Did you see our API? http://www.surevoip.co.uk/api
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2015.0.5645 / Virus Database: 4260/8931 - Release Date: 01/14/15
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry@suretec.co.uk
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie,
Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api
------------------------------
Message: 5
Date: Sat, 17 Jan 2015 21:54:01 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GK2Y+EymBULzBhvPv_HEfYRLaAVRAFd8jH+NC__6bsiHA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
>>>OK. Well a directory server would hold the password, so any app that
>> changes it only changes it there. Unless you are meaning that all the
>> systems have their own local password store?
>>
>> Whatever works - I've never used LDAP so not quite sure how it works yet. I
>> was under the impression that it replicated user/access data - are you
>> saying it is retrieved from a master server (the directory server?) on
>> demand?
To be correct, LDAP is the protocol. You'd actually be using a
Directory Server. This server is accessed using the LDAP protocol in
the same way a Web Server could accessed over HTTP. Calling it LDAP on
the openldap mailing will get you shouted at :-)
The Directory server holds entries that contain passwords. There isn't
such a thing as a user, merely an entity that you can bind to the
directory with. That entity will have a userPassword attribute in it.
--
Kind Regards,
Gavin Henry.
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 10
****************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: LDAP (Martin Moore)
2. Re: LDAP (Gavin Henry)
3. Re: LDAP (Martin Moore)
4. Re: LDAP (Gavin Henry)
5. Re: LDAP (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jan 2015 18:51:40 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAJVuUXlGpDRGvkx98r7ve/4BAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
>Single SignOn across multiple apps isn't the same as the same username and
password to be used on different apps. Does your client understand that?
The client has apparently 'suggested' LDAP (new job for me, been there 2
weeks), I'm making sure it'll do what is needed before I approve it.
The idea is that a new user creates an account once that is used on both
systems, and any pwd etc. change is propagated.
>What do these domains look like?
Client1.myco.com
Client2.myco.com
Client3.myco.com
>You can serve as many suffixes as you like, but each needs it's own config
etc. How many do you see serving? It may be better to design your DIT to
suit this application.
Not sure - not more than 10, maybe just the one on LDAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/22a35cff/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 17 Jan 2015 19:22:41 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GLJia2kB8GYgW-MTs=+As=yWsmj2HDWRYRAxgwgo29m8Q@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 17 January 2015 at 18:51, Martin Moore <martinm@it-helps.co.uk> wrote:
>>Single SignOn across multiple apps isn't the same as the same username and
>> password to be used on different apps. Does your client understand that?
>
> The client has apparently 'suggested' LDAP (new job for me, been there 2
> weeks), I'm making sure it'll do what is needed before I approve it.
>
Check if they mean Single SignOn then. That's signon once to one app
and be authenticated and/or authorised to access/use the other apps.
If just same user/pass and prompted for them by each app, then fine.
That doesn't mean LDAP can't still to the auth/authz part just that
something like http://shibboleth.net/ could be used to share the "I've
already be authorized by another app" stuff.
>
> The idea is that a new user creates an account once that is used on both
> systems, and any pwd etc. change is propagated.
OK. Well a directory server would hold the password, so any app that
changes it only changes it there. Unless you are meaning that all the
systems have their own local password store?
>>What do these domains look like?
>
> Client1.myco.com
>
> Client2.myco.com
>
> Client3.myco.com
Ok, these could translate to:
ou=users,ou=client1,dc=myco,dc=com
ou=groups,ou=client1,dc=myco,dc=com
etc. with regex ACL's to work on the ou=client1/2 part.
>
>>You can serve as many suffixes as you like, but each needs it's own config
>> etc. How many do you see serving? It may be better to design your DIT to
>> suit this application.
>
> Not sure - not more than 10, maybe just the one on LDAP.
See above. Just one suffix of dc=myco,dc=com
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry@suretec.co.uk
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie,
Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api
------------------------------
Message: 3
Date: Sat, 17 Jan 2015 20:42:16 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAO6prMr3FoxOhkAyt8WaU/YBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
Thanks - SingleSignon looks most likely from the very brief comment I've
had, but it's useful to know the difference as it could be either method!
>OK. Well a directory server would hold the password, so any app that
changes it only changes it there. Unless you are meaning that all the
systems have their own local password store?
Whatever works - I've never used LDAP so not quite sure how it works yet. I
was under the impression that it replicated user/access data - are you
saying it is retrieved from a master server (the directory server?) on
demand?
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Gavin Henry
Sent: 17 January 2015 19:23
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] LDAP
On 17 January 2015 at 18:51, Martin Moore <martinm@it-helps.co.uk> wrote:
>>Single SignOn across multiple apps isn't the same as the same username
>>and password to be used on different apps. Does your client understand
that?
>
> The client has apparently 'suggested' LDAP (new job for me, been there
> 2 weeks), I'm making sure it'll do what is needed before I approve it.
>
Check if they mean Single SignOn then. That's signon once to one app and be
authenticated and/or authorised to access/use the other apps.
If just same user/pass and prompted for them by each app, then fine.
That doesn't mean LDAP can't still to the auth/authz part just that
something like http://shibboleth.net/ could be used to share the "I've
already be authorized by another app" stuff.
>
> The idea is that a new user creates an account once that is used on
> both systems, and any pwd etc. change is propagated.
OK. Well a directory server would hold the password, so any app that changes
it only changes it there. Unless you are meaning that all the systems have
their own local password store?
>>What do these domains look like?
>
> Client1.myco.com
>
> Client2.myco.com
>
> Client3.myco.com
Ok, these could translate to:
ou=users,ou=client1,dc=myco,dc=com
ou=groups,ou=client1,dc=myco,dc=com
etc. with regex ACL's to work on the ou=client1/2 part.
>
>>You can serve as many suffixes as you like, but each needs it's own
>>config etc. How many do you see serving? It may be better to design
>>your DIT to suit this application.
>
> Not sure - not more than 10, maybe just the one on LDAP.
See above. Just one suffix of dc=myco,dc=com
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry@suretec.co.uk
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie, Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8931 - Release Date: 01/14/15
------------------------------
Message: 4
Date: Sat, 17 Jan 2015 21:10:08 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GLfoJoe84p+89GrHtOHE6MvH4c_PyyY6A92n7ADqP9DNQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 17 January 2015 at 20:42, Martin Moore <martinm@it-helps.co.uk> wrote:
> Thanks - SingleSignon looks most likely from the very brief comment I've
> had, but it's useful to know the difference as it could be either method!
>
>>OK. Well a directory server would hold the password, so any app that
> changes it only changes it there. Unless you are meaning that all the
> systems have their own local password store?
>
> Whatever works - I've never used LDAP so not quite sure how it works yet. I
> was under the impression that it replicated user/access data - are you
> saying it is retrieved from a master server (the directory server?) on
> demand?
>
>
> -----Original Message-----
> From: bristol-bounces@mailman.lug.org.uk
> [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Gavin Henry
> Sent: 17 January 2015 19:23
> To: Bristol and Bath Linux User Group
> Subject: Re: [bristol] LDAP
>
> On 17 January 2015 at 18:51, Martin Moore <martinm@it-helps.co.uk> wrote:
>>>Single SignOn across multiple apps isn't the same as the same username
>>>and password to be used on different apps. Does your client understand
> that?
>>
>> The client has apparently 'suggested' LDAP (new job for me, been there
>> 2 weeks), I'm making sure it'll do what is needed before I approve it.
>>
>
> Check if they mean Single SignOn then. That's signon once to one app and be
> authenticated and/or authorised to access/use the other apps.
>
> If just same user/pass and prompted for them by each app, then fine.
> That doesn't mean LDAP can't still to the auth/authz part just that
> something like http://shibboleth.net/ could be used to share the "I've
> already be authorized by another app" stuff.
>
>>
>> The idea is that a new user creates an account once that is used on
>> both systems, and any pwd etc. change is propagated.
>
> OK. Well a directory server would hold the password, so any app that changes
> it only changes it there. Unless you are meaning that all the systems have
> their own local password store?
>
>>>What do these domains look like?
>>
>> Client1.myco.com
>>
>> Client2.myco.com
>>
>> Client3.myco.com
>
> Ok, these could translate to:
>
> ou=users,ou=client1,dc=myco,dc=com
> ou=groups,ou=client1,dc=myco,dc=com
>
> etc. with regex ACL's to work on the ou=client1/2 part.
>
>>
>>>You can serve as many suffixes as you like, but each needs it's own
>>>config etc. How many do you see serving? It may be better to design
>>>your DIT to suit this application.
>>
>> Not sure - not more than 10, maybe just the one on LDAP.
>
> See above. Just one suffix of dc=myco,dc=com
>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
>
>
> --
> Kind Regards,
>
> Gavin Henry.
> Managing Director.
>
> T +44 (0) 1224 279484
> M +44 (0) 7930 323266
> F +44 (0) 1224 824887
> E ghenry@suretec.co.uk
>
> Open Source. Open Solutions(tm).
>
> http://www.suretecsystems.com/
>
> Suretec Systems is a limited company registered in Scotland. Registered
> number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
> Inverurie, Aberdeenshire, AB51 8GL.
>
> Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
>
> Do you know we have our own VoIP provider called SureVoIP? See
> http://www.surevoip.co.uk
>
> Did you see our API? http://www.surevoip.co.uk/api
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2015.0.5645 / Virus Database: 4260/8931 - Release Date: 01/14/15
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry@suretec.co.uk
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie,
Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api
------------------------------
Message: 5
Date: Sat, 17 Jan 2015 21:54:01 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GK2Y+EymBULzBhvPv_HEfYRLaAVRAFd8jH+NC__6bsiHA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
>>>OK. Well a directory server would hold the password, so any app that
>> changes it only changes it there. Unless you are meaning that all the
>> systems have their own local password store?
>>
>> Whatever works - I've never used LDAP so not quite sure how it works yet. I
>> was under the impression that it replicated user/access data - are you
>> saying it is retrieved from a master server (the directory server?) on
>> demand?
To be correct, LDAP is the protocol. You'd actually be using a
Directory Server. This server is accessed using the LDAP protocol in
the same way a Web Server could accessed over HTTP. Calling it LDAP on
the openldap mailing will get you shouted at :-)
The Directory server holds entries that contain passwords. There isn't
such a thing as a user, merely an entity that you can bind to the
directory with. That entity will have a userPassword attribute in it.
--
Kind Regards,
Gavin Henry.
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 10
****************************************
Bristol Digest, Vol 585, Issue 9
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
2. Re: LDAP (Martin Moore)
3. Re: Simple script query (DHT11 Sensor) (James Cownie)
4. Re: Simple script query (DHT11 Sensor) (Richard Stearn)
5. Re: LDAP (Keith Edmunds)
6. Re: LDAP (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jan 2015 16:57:18 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA946E.4030605@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 17/01/15 16:30, James Cownie wrote:
> Searching for deciC is unlikely to be helpful, and, I think you have
> confusion between C (the language) and C (Centigrade).
>
ooooops!
> The suggestion is to use a fixed point format internally, which you
> can think of as enumerating your temperatures in 10ths of a degree
> (?deciC?) or hundredths (centiC).
OK
>
> (From a language point of view this would all be more easily done in
> C++ than C, since [aside from the fact that there are likely laready
> fixed point C++ libraries available], you can overload the operators
> on this new type, making it much easier to work with at the user
> level).
OK its all a bit over the top for me and as its only a hobby for a
retired person, I will accept the 0.3 degree inaccuracy, at least I
did make a correction!
>
> -- -- Jim -- James Cownie <jcownie@cantab.net>
>
>
>
> On 17 Jan 2015, at 16:24, Peter Hemmings
> <peter@hemmings.eclipse.co.uk> wrote:
>
>> On 17/01/15 12:13, Richard Stearn wrote:
>>> Alex Butcher (LUG) wrote:
>>>> As it is, that C source is using integer arithmetic, so it'll
>>>> need a littlebit of reworking to use float or double types for
>>>> the temperature instead.
>>>
>>> Or convert the value to deciC, centiC or milliC as appropriate,
>>> do the corrections (offset, slope, ...), sort the decimal point
>>> on output.
>>>
>>
>> As I am a beginner with "C" I do not know exactly how to do it!!,
>> I will probably do as Alex says but if you could point me to where
>> deciC etc is explained I will have a go (had a quick google with no
>> luck).
>>
>> Regards
>>
>> -- Peter H
>>
>> _______________________________________________ Bristol mailing
>> list Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
>
> _______________________________________________ Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
Regards
--
Peter H
------------------------------
Message: 2
Date: Sat, 17 Jan 2015 17:17:46 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAEgCy9vgvYBHvdKA20g7w3sBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
Great, cheers Keith.
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Keith Edmunds
Sent: 17 January 2015 16:18
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
On Sat, 17 Jan 2015 16:03:05 -0000, martinm@it-helps.co.uk said:
> Before I say OK and with possible similar requests from other clients
> in mind, is it possible to have multiple 'separate' LDAP
> domains/clients on one server
Yes.
> will LDAP be able to restrict access to just the web stuff
You can restrict LDAP.
> or do I need a separate server for each LDAP client?
No.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8931 - Release Date: 01/14/15
------------------------------
Message: 3
Date: Sat, 17 Jan 2015 18:21:41 +0100
From: James Cownie <jcownie@cantab.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <27D01EAC-6B20-48E9-A149-761C583C8C91@cantab.net>
Content-Type: text/plain; charset="windows-1252"
> OK its all a bit over the top for me and as its only a hobby for a retired person
Don?t knock retired people! It?s approaching for me fast :-)
--
-- Jim
--
James Cownie <jcownie@cantab.net>
On 17 Jan 2015, at 17:57, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
>
>
> On 17/01/15 16:30, James Cownie wrote:
>> Searching for deciC is unlikely to be helpful, and, I think you have
>> confusion between C (the language) and C (Centigrade).
>>
>
> ooooops!
>
>> The suggestion is to use a fixed point format internally, which you
>> can think of as enumerating your temperatures in 10ths of a degree
>> (?deciC?) or hundredths (centiC).
>
> OK
>
>>
>> (From a language point of view this would all be more easily done in
>> C++ than C, since [aside from the fact that there are likely laready
>> fixed point C++ libraries available], you can overload the operators
>> on this new type, making it much easier to work with at the user
>> level).
>
> OK its all a bit over the top for me and as its only a hobby for a retired person, I will accept the 0.3 degree inaccuracy, at least I did make a correction!
>
>>
>> -- -- Jim -- James Cownie <jcownie@cantab.net>
>>
>>
>>
>> On 17 Jan 2015, at 16:24, Peter Hemmings
>> <peter@hemmings.eclipse.co.uk> wrote:
>>
>>> On 17/01/15 12:13, Richard Stearn wrote:
>>>> Alex Butcher (LUG) wrote:
>>>>> As it is, that C source is using integer arithmetic, so it'll
>>>>> need a littlebit of reworking to use float or double types for
>>>>> the temperature instead.
>>>>
>>>> Or convert the value to deciC, centiC or milliC as appropriate,
>>>> do the corrections (offset, slope, ...), sort the decimal point
>>>> on output.
>>>>
>>>
>>> As I am a beginner with "C" I do not know exactly how to do it!!,
>>> I will probably do as Alex says but if you could point me to where
>>> deciC etc is explained I will have a go (had a quick google with no
>>> luck).
>>>
>>> Regards
>>>
>>> -- Peter H
>>>
>>> _______________________________________________ Bristol mailing
>>> list Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>>
>> _______________________________________________ Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>
> Regards
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/67089bda/attachment-0001.html>
------------------------------
Message: 4
Date: Sat, 17 Jan 2015 17:36:27 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA9D9B.2040703@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Peter Hemmings wrote:
> As I am a beginner with "C" I do not know exactly how to do it!!, I
> will probably do as Alex says but if you could point me to where deciC
> etc is explained I will have a go (had a quick google with no luck).
It is a matter of how you represent the information.
One of the tricks when programming is representing the information in a
way that allows you to manipulate it simply and retain the required precision.
Hint: converting from integer to floating point involves loss of precision.
This loss of precision may or may not be important.
In your case the loss of precision is not important. Anyway, I am attempting
to explain what I mean by deciC, centiC, ....
It is a matter of how you represent the information in your program.
1.0 C = 10 deciC = 100 centiC = 1000 milliC
I have not studied what you are doing in detail, however you appear to
have two values (humidity and temperature) both represented as a byte
to the left of the decimal point and one byte to the right.
The range of the above representation potentially covers from -128.99 to
+127.99 or 0.00 to 255.99 (given the printf statement, only 0 .. 9 is used
for the decimal part). So, if you multiply the LHS by 10 and add the RHS
you have a value in deciC (10ths of a deg C).
e.g.
#define TEMP_OFFSET -27
#define MULTIPLIER 10
int deciC;
deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
deciC = deciC + (TEMP_OFFSET);
printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
If the RHS represented 0 .. 99 then use 100 as the multiplier and you have
a value in centiC.
Although the sensor is only rated for 0 .. 50 C, you might want to check
what the output is when you stick it in the freezer. It might just curl
up and report 0C, it might attempt to give a sane output. If it gives
something sane then you will need to account for the sign in your
manipulations.
Or. You could do as Alex suggests and use a float or double representation.
You will still need to account for sign of the temperature (if relevant).
--
Regards
Richard
------------------------------
Message: 5
Date: Sat, 17 Jan 2015 17:44:36 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
Message-ID: <20150117174436.7dbb8d03@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
LDAP isn't overly complex, but it does need some understanding before you
try implementing it. I'd suggest you read up on it and set it up in a test
environment first. Setting up replication and LDAPS access is a bit more
complex.
Useful tools:
- phpLdapAdmin
- ldapvi
--
"Soccer is one of those things that the rest of world cares about more
than [Americans] do - you know, like healthcare, education and gun
control" - David Letterman
------------------------------
Message: 6
Date: Sat, 17 Jan 2015 18:27:42 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>,
martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GJD0q7o6q+Z_Za0Ex3akFKwHKAEtG1WjSztTZMYRDfDfQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
On 17 Jan 2015 16:36, "Martin Moore" <martinm@it-helps.co.uk> wrote:
>
> I've a potential client who wishes to have a single sign on to their
system and our system using LDAP.
>
Sorry, lurker here.
Single SignOn across multiple apps isn't the same as the same username and
password to be used on different apps. Does your client understand that?
>
> We have multiple sub-domains (different clients) on one box and currently
user access is via a mysql db for each sub-domian/client.
>
What do these domains look like?
>
> Before I say OK and with possible similar requests from other clients in
mind, is it possible to have multiple 'separate' LDAP domains/clients on
one server, will LDAP be able to restrict access to just the web stuff or
do I need a separate server for each LDAP client?
You can serve as many suffixes as you like, but each needs it's own config
etc. How many do you see serving? It may be better to design your DIT to
suit this application.
OpenLDAP ACLs rule :)
Only one instance of slapd is needed, yeah.
Gavin (ghenry@OpenLDAP.org)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/68296378/attachment.html>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 9
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
2. Re: LDAP (Martin Moore)
3. Re: Simple script query (DHT11 Sensor) (James Cownie)
4. Re: Simple script query (DHT11 Sensor) (Richard Stearn)
5. Re: LDAP (Keith Edmunds)
6. Re: LDAP (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jan 2015 16:57:18 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA946E.4030605@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 17/01/15 16:30, James Cownie wrote:
> Searching for deciC is unlikely to be helpful, and, I think you have
> confusion between C (the language) and C (Centigrade).
>
ooooops!
> The suggestion is to use a fixed point format internally, which you
> can think of as enumerating your temperatures in 10ths of a degree
> (?deciC?) or hundredths (centiC).
OK
>
> (From a language point of view this would all be more easily done in
> C++ than C, since [aside from the fact that there are likely laready
> fixed point C++ libraries available], you can overload the operators
> on this new type, making it much easier to work with at the user
> level).
OK its all a bit over the top for me and as its only a hobby for a
retired person, I will accept the 0.3 degree inaccuracy, at least I
did make a correction!
>
> -- -- Jim -- James Cownie <jcownie@cantab.net>
>
>
>
> On 17 Jan 2015, at 16:24, Peter Hemmings
> <peter@hemmings.eclipse.co.uk> wrote:
>
>> On 17/01/15 12:13, Richard Stearn wrote:
>>> Alex Butcher (LUG) wrote:
>>>> As it is, that C source is using integer arithmetic, so it'll
>>>> need a littlebit of reworking to use float or double types for
>>>> the temperature instead.
>>>
>>> Or convert the value to deciC, centiC or milliC as appropriate,
>>> do the corrections (offset, slope, ...), sort the decimal point
>>> on output.
>>>
>>
>> As I am a beginner with "C" I do not know exactly how to do it!!,
>> I will probably do as Alex says but if you could point me to where
>> deciC etc is explained I will have a go (had a quick google with no
>> luck).
>>
>> Regards
>>
>> -- Peter H
>>
>> _______________________________________________ Bristol mailing
>> list Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
>
> _______________________________________________ Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
Regards
--
Peter H
------------------------------
Message: 2
Date: Sat, 17 Jan 2015 17:17:46 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAEgCy9vgvYBHvdKA20g7w3sBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
Great, cheers Keith.
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Keith Edmunds
Sent: 17 January 2015 16:18
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
On Sat, 17 Jan 2015 16:03:05 -0000, martinm@it-helps.co.uk said:
> Before I say OK and with possible similar requests from other clients
> in mind, is it possible to have multiple 'separate' LDAP
> domains/clients on one server
Yes.
> will LDAP be able to restrict access to just the web stuff
You can restrict LDAP.
> or do I need a separate server for each LDAP client?
No.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8931 - Release Date: 01/14/15
------------------------------
Message: 3
Date: Sat, 17 Jan 2015 18:21:41 +0100
From: James Cownie <jcownie@cantab.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <27D01EAC-6B20-48E9-A149-761C583C8C91@cantab.net>
Content-Type: text/plain; charset="windows-1252"
> OK its all a bit over the top for me and as its only a hobby for a retired person
Don?t knock retired people! It?s approaching for me fast :-)
--
-- Jim
--
James Cownie <jcownie@cantab.net>
On 17 Jan 2015, at 17:57, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
>
>
> On 17/01/15 16:30, James Cownie wrote:
>> Searching for deciC is unlikely to be helpful, and, I think you have
>> confusion between C (the language) and C (Centigrade).
>>
>
> ooooops!
>
>> The suggestion is to use a fixed point format internally, which you
>> can think of as enumerating your temperatures in 10ths of a degree
>> (?deciC?) or hundredths (centiC).
>
> OK
>
>>
>> (From a language point of view this would all be more easily done in
>> C++ than C, since [aside from the fact that there are likely laready
>> fixed point C++ libraries available], you can overload the operators
>> on this new type, making it much easier to work with at the user
>> level).
>
> OK its all a bit over the top for me and as its only a hobby for a retired person, I will accept the 0.3 degree inaccuracy, at least I did make a correction!
>
>>
>> -- -- Jim -- James Cownie <jcownie@cantab.net>
>>
>>
>>
>> On 17 Jan 2015, at 16:24, Peter Hemmings
>> <peter@hemmings.eclipse.co.uk> wrote:
>>
>>> On 17/01/15 12:13, Richard Stearn wrote:
>>>> Alex Butcher (LUG) wrote:
>>>>> As it is, that C source is using integer arithmetic, so it'll
>>>>> need a littlebit of reworking to use float or double types for
>>>>> the temperature instead.
>>>>
>>>> Or convert the value to deciC, centiC or milliC as appropriate,
>>>> do the corrections (offset, slope, ...), sort the decimal point
>>>> on output.
>>>>
>>>
>>> As I am a beginner with "C" I do not know exactly how to do it!!,
>>> I will probably do as Alex says but if you could point me to where
>>> deciC etc is explained I will have a go (had a quick google with no
>>> luck).
>>>
>>> Regards
>>>
>>> -- Peter H
>>>
>>> _______________________________________________ Bristol mailing
>>> list Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>>
>> _______________________________________________ Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>
> Regards
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/67089bda/attachment-0001.html>
------------------------------
Message: 4
Date: Sat, 17 Jan 2015 17:36:27 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA9D9B.2040703@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Peter Hemmings wrote:
> As I am a beginner with "C" I do not know exactly how to do it!!, I
> will probably do as Alex says but if you could point me to where deciC
> etc is explained I will have a go (had a quick google with no luck).
It is a matter of how you represent the information.
One of the tricks when programming is representing the information in a
way that allows you to manipulate it simply and retain the required precision.
Hint: converting from integer to floating point involves loss of precision.
This loss of precision may or may not be important.
In your case the loss of precision is not important. Anyway, I am attempting
to explain what I mean by deciC, centiC, ....
It is a matter of how you represent the information in your program.
1.0 C = 10 deciC = 100 centiC = 1000 milliC
I have not studied what you are doing in detail, however you appear to
have two values (humidity and temperature) both represented as a byte
to the left of the decimal point and one byte to the right.
The range of the above representation potentially covers from -128.99 to
+127.99 or 0.00 to 255.99 (given the printf statement, only 0 .. 9 is used
for the decimal part). So, if you multiply the LHS by 10 and add the RHS
you have a value in deciC (10ths of a deg C).
e.g.
#define TEMP_OFFSET -27
#define MULTIPLIER 10
int deciC;
deciC = (dht11_val[2] * MULTIPLIER) + dht11_val[3];
deciC = deciC + (TEMP_OFFSET);
printf( "%d.%d\n", deciC / MULTIPLIER, deciC % MULTIPLIER );
If the RHS represented 0 .. 99 then use 100 as the multiplier and you have
a value in centiC.
Although the sensor is only rated for 0 .. 50 C, you might want to check
what the output is when you stick it in the freezer. It might just curl
up and report 0C, it might attempt to give a sane output. If it gives
something sane then you will need to account for the sign in your
manipulations.
Or. You could do as Alex suggests and use a float or double representation.
You will still need to account for sign of the temperature (if relevant).
--
Regards
Richard
------------------------------
Message: 5
Date: Sat, 17 Jan 2015 17:44:36 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
Message-ID: <20150117174436.7dbb8d03@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
LDAP isn't overly complex, but it does need some understanding before you
try implementing it. I'd suggest you read up on it and set it up in a test
environment first. Setting up replication and LDAPS access is a bit more
complex.
Useful tools:
- phpLdapAdmin
- ldapvi
--
"Soccer is one of those things that the rest of world cares about more
than [Americans] do - you know, like healthcare, education and gun
control" - David Letterman
------------------------------
Message: 6
Date: Sat, 17 Jan 2015 18:27:42 +0000
From: Gavin Henry <ghenry@suretecsystems.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>,
martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
Message-ID:
<CAPcb_GJD0q7o6q+Z_Za0Ex3akFKwHKAEtG1WjSztTZMYRDfDfQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
On 17 Jan 2015 16:36, "Martin Moore" <martinm@it-helps.co.uk> wrote:
>
> I've a potential client who wishes to have a single sign on to their
system and our system using LDAP.
>
Sorry, lurker here.
Single SignOn across multiple apps isn't the same as the same username and
password to be used on different apps. Does your client understand that?
>
> We have multiple sub-domains (different clients) on one box and currently
user access is via a mysql db for each sub-domian/client.
>
What do these domains look like?
>
> Before I say OK and with possible similar requests from other clients in
mind, is it possible to have multiple 'separate' LDAP domains/clients on
one server, will LDAP be able to restrict access to just the web stuff or
do I need a separate server for each LDAP client?
You can serve as many suffixes as you like, but each needs it's own config
etc. How many do you see serving? It may be better to design your DIT to
suit this application.
OpenLDAP ACLs rule :)
Only one instance of slapd is needed, yeah.
Gavin (ghenry@OpenLDAP.org)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/68296378/attachment.html>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 9
***************************************
Bristol Digest, Vol 585, Issue 8
Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Richard Stearn)
2. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
3. LDAP (Martin Moore)
4. Re: LDAP (Keith Edmunds)
5. Re: Simple script query (DHT11 Sensor) (James Cownie)
6. Re: Simple script query (DHT11 Sensor) (Alex Butcher (LUG))
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jan 2015 12:13:20 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA51E0.8070302@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Alex Butcher (LUG) wrote:
> As it is, that C source is using integer arithmetic, so it'll need a
> littlebit of reworking to use float or double types for the
> temperature instead.
Or convert the value to deciC, centiC or milliC as appropriate, do the
corrections (offset, slope, ...), sort the decimal point on output.
--
Regards
Richard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is not madness to talk to yourself. Just ensures sane answers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Message: 2
Date: Sat, 17 Jan 2015 15:24:01 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA7E91.4090507@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 17/01/15 12:13, Richard Stearn wrote:
> Alex Butcher (LUG) wrote:
>> As it is, that C source is using integer arithmetic, so it'll need a
> > littlebit of reworking to use float or double types for the
> > temperature instead.
>
> Or convert the value to deciC, centiC or milliC as appropriate, do the
> corrections (offset, slope, ...), sort the decimal point on output.
>
As I am a beginner with "C" I do not know exactly how to do it!!, I
will probably do as Alex says but if you could point me to where deciC
etc is explained I will have a go (had a quick google with no luck).
Regards
--
Peter H
------------------------------
Message: 3
Date: Sat, 17 Jan 2015 16:03:05 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAEYHRVU5We1Ers1rvFPrFQUBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
I've a potential client who wishes to have a single sign on to their system
and our system using LDAP.
We have multiple sub-domains (different clients) on one box and currently
user access is via a mysql db for each sub-domian/client.
Before I say OK and with possible similar requests from other clients in
mind, is it possible to have multiple 'separate' LDAP domains/clients on one
server, will LDAP be able to restrict access to just the web stuff or do I
need a separate server for each LDAP client?
Ta,
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/8fb66d2d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 92 bytes
Desc: not available
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/8fb66d2d/attachment-0001.gif>
------------------------------
Message: 4
Date: Sat, 17 Jan 2015 16:17:46 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
Message-ID: <20150117161746.7492ffe4@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
On Sat, 17 Jan 2015 16:03:05 -0000, martinm@it-helps.co.uk said:
> Before I say OK and with possible similar requests from other clients in
> mind, is it possible to have multiple 'separate' LDAP domains/clients on
> one server
Yes.
> will LDAP be able to restrict access to just the web stuff
You can restrict LDAP.
> or do I need a separate server for each LDAP client?
No.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
------------------------------
Message: 5
Date: Sat, 17 Jan 2015 17:30:31 +0100
From: James Cownie <jcownie@cantab.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <A5886EB6-98DA-4DE0-AF73-FD11987AE18B@cantab.net>
Content-Type: text/plain; charset=windows-1252
Searching for deciC is unlikely to be helpful, and, I think you have confusion between C (the language) and C (Centigrade).
The suggestion is to use a fixed point format internally, which you can think of as enumerating your temperatures in 10ths of a degree (?deciC?) or hundredths (centiC).
(From a language point of view this would all be more easily done in C++ than C, since [aside from the fact that there are likely laready fixed point C++ libraries available], you can overload the operators on this new type, making it much easier to work with at the user level).
--
-- Jim
--
James Cownie <jcownie@cantab.net>
On 17 Jan 2015, at 16:24, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
> On 17/01/15 12:13, Richard Stearn wrote:
>> Alex Butcher (LUG) wrote:
>>> As it is, that C source is using integer arithmetic, so it'll need a
>> > littlebit of reworking to use float or double types for the
>> > temperature instead.
>>
>> Or convert the value to deciC, centiC or milliC as appropriate, do the
>> corrections (offset, slope, ...), sort the decimal point on output.
>>
>
> As I am a beginner with "C" I do not know exactly how to do it!!, I will probably do as Alex says but if you could point me to where deciC etc is explained I will have a go (had a quick google with no luck).
>
> Regards
>
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 6
Date: Sat, 17 Jan 2015 16:36:22 +0000
From: "Alex Butcher (LUG)" <lug@assursys.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <626C0A8D-3EF4-41A1-ABA2-1915D9B1BA0E@assursys.co.uk>
Content-Type: text/plain; charset="utf-8"
Richard means to use different units internally (e.g. C*10=dC) then convert at the final stage of output.
On 17 January 2015 15:24:01 GMT+00:00, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
>On 17/01/15 12:13, Richard Stearn wrote:
>> Alex Butcher (LUG) wrote:
>>> As it is, that C source is using integer arithmetic, so it'll need a
>> > littlebit of reworking to use float or double types for the
>> > temperature instead.
>>
>> Or convert the value to deciC, centiC or milliC as appropriate, do
>the
>> corrections (offset, slope, ...), sort the decimal point on output.
>>
>
>As I am a beginner with "C" I do not know exactly how to do it!!, I
>will probably do as Alex says but if you could point me to where deciC
>etc is explained I will have a go (had a quick google with no luck).
>
>Regards
>
>--
>Peter H
>
>_______________________________________________
>Bristol mailing list
>Bristol@mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/a42b2e48/attachment.html>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 8
***************************************
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: Simple script query (DHT11 Sensor) (Richard Stearn)
2. Re: Simple script query (DHT11 Sensor) (Peter Hemmings)
3. LDAP (Martin Moore)
4. Re: LDAP (Keith Edmunds)
5. Re: Simple script query (DHT11 Sensor) (James Cownie)
6. Re: Simple script query (DHT11 Sensor) (Alex Butcher (LUG))
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jan 2015 12:13:20 +0000
From: Richard Stearn <richard@rns-stearn.demon.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA51E0.8070302@rns-stearn.demon.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Alex Butcher (LUG) wrote:
> As it is, that C source is using integer arithmetic, so it'll need a
> littlebit of reworking to use float or double types for the
> temperature instead.
Or convert the value to deciC, centiC or milliC as appropriate, do the
corrections (offset, slope, ...), sort the decimal point on output.
--
Regards
Richard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is not madness to talk to yourself. Just ensures sane answers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Message: 2
Date: Sat, 17 Jan 2015 15:24:01 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <54BA7E91.4090507@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 17/01/15 12:13, Richard Stearn wrote:
> Alex Butcher (LUG) wrote:
>> As it is, that C source is using integer arithmetic, so it'll need a
> > littlebit of reworking to use float or double types for the
> > temperature instead.
>
> Or convert the value to deciC, centiC or milliC as appropriate, do the
> corrections (offset, slope, ...), sort the decimal point on output.
>
As I am a beginner with "C" I do not know exactly how to do it!!, I
will probably do as Alex says but if you could point me to where deciC
etc is explained I will have a go (had a quick google with no luck).
Regards
--
Peter H
------------------------------
Message: 3
Date: Sat, 17 Jan 2015 16:03:05 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: [bristol] LDAP
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAAEYHRVU5We1Ers1rvFPrFQUBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
I've a potential client who wishes to have a single sign on to their system
and our system using LDAP.
We have multiple sub-domains (different clients) on one box and currently
user access is via a mysql db for each sub-domian/client.
Before I say OK and with possible similar requests from other clients in
mind, is it possible to have multiple 'separate' LDAP domains/clients on one
server, will LDAP be able to restrict access to just the web stuff or do I
need a separate server for each LDAP client?
Ta,
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/8fb66d2d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 92 bytes
Desc: not available
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/8fb66d2d/attachment-0001.gif>
------------------------------
Message: 4
Date: Sat, 17 Jan 2015 16:17:46 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] LDAP
Message-ID: <20150117161746.7492ffe4@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
On Sat, 17 Jan 2015 16:03:05 -0000, martinm@it-helps.co.uk said:
> Before I say OK and with possible similar requests from other clients in
> mind, is it possible to have multiple 'separate' LDAP domains/clients on
> one server
Yes.
> will LDAP be able to restrict access to just the web stuff
You can restrict LDAP.
> or do I need a separate server for each LDAP client?
No.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
------------------------------
Message: 5
Date: Sat, 17 Jan 2015 17:30:31 +0100
From: James Cownie <jcownie@cantab.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <A5886EB6-98DA-4DE0-AF73-FD11987AE18B@cantab.net>
Content-Type: text/plain; charset=windows-1252
Searching for deciC is unlikely to be helpful, and, I think you have confusion between C (the language) and C (Centigrade).
The suggestion is to use a fixed point format internally, which you can think of as enumerating your temperatures in 10ths of a degree (?deciC?) or hundredths (centiC).
(From a language point of view this would all be more easily done in C++ than C, since [aside from the fact that there are likely laready fixed point C++ libraries available], you can overload the operators on this new type, making it much easier to work with at the user level).
--
-- Jim
--
James Cownie <jcownie@cantab.net>
On 17 Jan 2015, at 16:24, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
> On 17/01/15 12:13, Richard Stearn wrote:
>> Alex Butcher (LUG) wrote:
>>> As it is, that C source is using integer arithmetic, so it'll need a
>> > littlebit of reworking to use float or double types for the
>> > temperature instead.
>>
>> Or convert the value to deciC, centiC or milliC as appropriate, do the
>> corrections (offset, slope, ...), sort the decimal point on output.
>>
>
> As I am a beginner with "C" I do not know exactly how to do it!!, I will probably do as Alex says but if you could point me to where deciC etc is explained I will have a go (had a quick google with no luck).
>
> Regards
>
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 6
Date: Sat, 17 Jan 2015 16:36:22 +0000
From: "Alex Butcher (LUG)" <lug@assursys.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Simple script query (DHT11 Sensor)
Message-ID: <626C0A8D-3EF4-41A1-ABA2-1915D9B1BA0E@assursys.co.uk>
Content-Type: text/plain; charset="utf-8"
Richard means to use different units internally (e.g. C*10=dC) then convert at the final stage of output.
On 17 January 2015 15:24:01 GMT+00:00, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
>On 17/01/15 12:13, Richard Stearn wrote:
>> Alex Butcher (LUG) wrote:
>>> As it is, that C source is using integer arithmetic, so it'll need a
>> > littlebit of reworking to use float or double types for the
>> > temperature instead.
>>
>> Or convert the value to deciC, centiC or milliC as appropriate, do
>the
>> corrections (offset, slope, ...), sort the decimal point on output.
>>
>
>As I am a beginner with "C" I do not know exactly how to do it!!, I
>will probably do as Alex says but if you could point me to where deciC
>etc is explained I will have a go (had a quick google with no luck).
>
>Regards
>
>--
>Peter H
>
>_______________________________________________
>Bristol mailing list
>Bristol@mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/bristol
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150117/a42b2e48/attachment.html>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 585, Issue 8
***************************************
Langganan:
Komentar (Atom)