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: Are all Nano's the same!? (Nigel Sollars)
2. DyGraph on a Pi (Peter Hemmings)
----------------------------------------------------------------------
Message: 1
Date: Sat, 6 Dec 2014 13:04:03 -0500
From: Nigel Sollars <nsollars@gmail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Are all Nano's the same!?
Message-ID:
<CAG6aBkU-fCXFs53xeO01XmfiuytJmcN3ULhCsjYM=XhxSGGf6A@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Quick question,
Why does the dht userspace app need root?
Regards
On Fri, Dec 5, 2014 at 8:15 AM, Peter H <peter@hemmings.eclipse.co.uk>
wrote:
>
>
> On 5 December 2014 13:12:04 GMT+00:00, Peter H <
> peter@hemmings.eclipse.co.uk> wrote:
>>
>>
>>
>> On 5 December 2014 12:46:11 GMT+00:00, David Smith <David.Smith@imgtec.com> wrote:
>>
>>> From: bristol-bounces@mailman.lug.org.uk [mailto:bristol-
>>> bounces@mailman.lug.org.uk] On Behalf Of Alex Butcher (LUG)
>>>
>>>> On 4 December 2014 16:13:40 GMT+00:00, Shane McEwan
>>>> <shane@mcewan.id.au> wrote:
>>>>
>>>>> It looks to me like bash is treating the whole command as a single
>>>>> string.
>>>>>
>>>>
>>> That's what I thought, but I couldn't work out how it could happen.
>>>
>>> My guess is that Peter is copy and pasting from a webpage that isn't
>>>>
>>> using
>>>
>>>> spaces, but Unicode characters that /look identical to spaces/, to
>>>>
>>> separate
>>>
>>>> words.
>>>>
>>>
>>> If that's the case, then it's a particularly evil problem...
>>>
>>
>> Will type it in later today and confirm it works. Shame, I am such a slow typer and always copy and paste from webpages!
>>
>>
>> Welcome to the 21st century where
>>>> nothing works simply any more!
>>>>
>>>
>>> <UKIP> ******** foreigners! </UKIP>
>>>
>>> :-)
>>>
>>> ------------------------------
>>>
>>> Bristol mailing list
>>> Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>>
>>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
--
?Science is a differential equation. Religion is a boundary condition.?
Alan Turing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20141206/326db44c/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 06 Dec 2014 23:21:39 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: [bristol] DyGraph on a Pi
Message-ID: <54838F83.6010008@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
I have not got up to displaying graph on a local webpage (DHT11 sensor)
using the information:
https://chrisbaume.wordpress.com/2013/02/10/beer-monitoring/
I have installed apache2, and DyGraph. A cron job is running OK with
O/P's going to a temp.log in my home directory.
Checked I have dygraph-combined.js in /var/www/.
I have made a symlink to it from /var/www/ and checked that works works
OK but get the following on the webpage (and temp.html):
? ? function? addZero(num) ? ? { ? ? ? ? var? s=num+"";
? ? ? ? if? (s.length? <? 2)? s="0"+s; ? ? ? ? return? s; ? ? }
? ? function? dateFormat(indate) ? ? {
? ? ? ? var? hh? =? addZero(indate.getHours());
? ? ? ? var? MM? =? addZero(indate.getMinutes());
? ? ? ? //var? ss? =? addZero(indate.getSeconds());
? ? ? ? var? dd? =? addZero(indate.getDate());
? ? ? ? var? mm? =? addZero(indate.getMonth()+1);
? ? ? ? var? yyyy? =? addZero(indate.getFullYear());
? ? ? ? return? dd+'/'+mm+'? '+hh+':'+MM; ? ? } ? ? g? =? new? Dygraph(
? ? ? ? document.getElementById("graphdiv"), ? ? ? ? "temp.log",
? ? ? ? { ? ? ? ? ? ? xValueParser:? function(x)? {
? ? ? ? ? ? ? ? var? date? =? new? Date(x.replace(
? ? ? ? ? ? ? ? ? ? /^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/,
? ? ? ? ? ? ? ? ? ? '$4:$5:$6? $2/$3/$1' ? ? ? ? ? ? ? ? ));
? ? ? ? ? ? ? ? return? date.getTime(); ? ? ? ? ? ? },
? ? ? ? ? ? axes:? { ? ? ? ? ? ? ? ? x:? {
? ? ? ? ? ? ? ? ? ? ticker:? Dygraph.dateTicker,
? ? ? ? ? ? ? ? ? ? axisLabelFormatter:? function(x)? {
? ? ? ? ? ? ? ? ? ? ? ? return? dateFormat(new? Date(x));
? ? ? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? ? ? valueFormatter:? function(x)? {
? ? ? ? ? ? ? ? ? ? ? ? return? dateFormat(new? Date(x));
? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? } ? ? ? ? ? ? },
? ? ? ? ? ? labelsDivWidth:? 310, ? ? ? ? ? ? rollPeriod:? 30,
? ? ? ? ? ? strokeWidth:? 2.0,
? ? ? ? ? ? labels:? ['Date','Humidity? (%)','Temp? (?C)'] ? ? ? ? } ? ? );
This is just the code with lots of A circumflex's, what have I
forgotten to do or is not mentioned in the instructions!?
Could it be due to me cutting and pasting again!?
Will have another play tomorrow, but can now use it to monitor my loft.
Regards
--
Peter H
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 579, Issue 10
****************************************
Tidak ada komentar:
Posting Komentar