Selasa, 09 Desember 2014

Bristol Digest, Vol 580, 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: DyGraph on a Pi (David Smith)
2. Re: DyGraph on a Pi (Peter Hemmings)
3. Re: DyGraph on a Pi (Peter Hemmings)
4. Re: DyGraph on a Pi (david)
5. Re: DyGraph on a Pi (Peter Hemmings)
6. Re: DyGraph on a Pi (Shane McEwan)
7. 2tb sd card recomendations? (trahern culver)
8. Re: 2tb sd card recomendations? (David Smith)


----------------------------------------------------------------------

Message: 1
Date: Mon, 8 Dec 2014 15:14:05 +0000
From: David Smith <David.Smith@imgtec.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID:
<15A9D35B5490FC49AC0524AE3A085F0874F9F8@BRMAIL01.br.imgtec.org>
Content-Type: text/plain; charset="us-ascii"

-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Peter Hemmings
>
> 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):
>
[snip]
>
> 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!?

What do you mean by "in the temp.html file"? How did you get that file? Is it the code you copy-and-pasted from the website, or code saved from the web browser after loading your webpage?

You could help us diagnose it by compressing the file with gzip (to prevent the mail system modifying it as plain text) and posting it to the list.



------------------------------

Message: 2
Date: Mon, 08 Dec 2014 17:16:19 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <5485DCE3.8050603@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed

On 08/12/14 15:14, David Smith wrote:
> -----Original Message----- From: bristol-bounces@mailman.lug.org.uk
> [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Peter
> Hemmings
>>
>> 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):
>>
> [snip]
>>
>> 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!?
>

After getting Chris's reply I have typed (to the best of my ability!) a
new "temp.html" of the code from the reference webpage.


> What do you mean by "in the temp.html file"?

temp(erature).html file

How did you get that
> file?

Typed from code

Is it the code you copy-and-pasted from the website, or code
> saved from the web browser after loading your webpage?

The code save from the web browser which (I think) was also what I got
when opening the "temp.html" file directly from the file manager.

I am now trying to use my new (typed) file and I get just a blank page.

I need to check my typing and go back over all I have done.

If (as is quite likely) I am unable to get it to run, I will do as
suggested below.

>
> You could help us diagnose it by compressing the file with gzip (to
> prevent the mail system modifying it as plain text) and posting it to
> the list.
>
> _______________________________________________ Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>

PS I have now resolved my leaking chimney so do not now need it, but
would like to get it to work and understand all the code so I can play
with it make adjustments!!

Regards

--
Peter H



------------------------------

Message: 3
Date: Mon, 08 Dec 2014 21:57:31 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <54861ECB.8020503@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"


Hi,

Just double checked my typos but now I get nothing on apache, it is
running as I get index.html page on browser.

My temp.log is still recording sensor O/P's OK and I have the symlink
to it in /var/www/.


On 08/12/14 15:14, David Smith wrote:
> You could help us diagnose it by compressing the file with gzip (to prevent the mail system modifying it as plain text) and posting it to the list.
Attached is what I now have in /var/www/temp.html.

Could someone confirm that all is well before I start looking elsewhere!?

I did change both temp.html and dygraph-combined.js to "executables" in
a vain attempt to get a graph but that was clutching at straws!

FYI this is the link (again) for making the graph:

https://chrisbaume.wordpress.com/2013/02/10/beer-monitoring/


Will play again later tomorrow

Regards

--
Peter H

-------------- next part --------------
A non-text attachment was scrubbed...
Name: temphtmlfile.gz
Type: application/x-gzip
Size: 633 bytes
Desc: not available
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20141208/9781bbca/attachment-0001.bin>

------------------------------

Message: 4
Date: Mon, 08 Dec 2014 22:49:16 +0000
From: david <david@avoncliff.com>
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <54862AEC.6050401@avoncliff.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 08/12/14 21:57, Peter Hemmings wrote:
>
> Hi,
>
> Just double checked my typos but now I get nothing on apache, it is
> running as I get index.html page on browser.
>
> My temp.log is still recording sensor O/P's OK and I have the symlink
> to it in /var/www/.
>
>
> On 08/12/14 15:14, David Smith wrote:
>> You could help us diagnose it by compressing the file with gzip (to
>> prevent the mail system modifying it as plain text) and posting it to
>> the list.
> Attached is what I now have in /var/www/temp.html.
>
> Could someone confirm that all is well before I start looking elsewhere!?
>
Peter
In the last line of the script the &deg;C`] is missing a closing bracket
after the C
No idea if this is enough to fix it.
David





------------------------------

Message: 5
Date: Mon, 08 Dec 2014 23:59:35 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <54863B67.4020505@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


On 08/12/14 22:49, david wrote:
> On 08/12/14 21:57, Peter Hemmings wrote:
>>
>> Hi,
>>
>> Just double checked my typos but now I get nothing on apache, it is
>> running as I get index.html page on browser.
>>
>> My temp.log is still recording sensor O/P's OK and I have the symlink
>> to it in /var/www/.
>>
>>
>> On 08/12/14 15:14, David Smith wrote:
>>> You could help us diagnose it by compressing the file with gzip (to
>>> prevent the mail system modifying it as plain text) and posting it to
>>> the list.
>> Attached is what I now have in /var/www/temp.html.
>>
>> Could someone confirm that all is well before I start looking
>> elsewhere!?
>>
> Peter
> In the last line of the script the &deg;C`] is missing a closing
> bracket after the C

Just checked in the file and its there!

> No idea if this is enough to fix it.

Not atm

> David
>
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
Regards

--
Peter H




------------------------------

Message: 6
Date: Tue, 09 Dec 2014 10:05:42 +0000
From: Shane McEwan <shane@mcewan.id.au>
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <5486C976.6060907@mcewan.id.au>
Content-Type: text/plain; charset=utf-8

A few things to try:

Look in the Apache logs for errors. /var/log/apache/error.log,
/var/log/apache2/error.log or /var/log/www/error.log are likely locations.

You mentioned in your first E-Mail that you symlinked something in
/var/www? I think, by default, Apache won't follow symlinks for security
reasons so maybe that could be causing problems? Try copying all the
required files into /var/www and avoid symlinks.

You don't need to make files executable. They just need to be readable
by the web user (probably www-data on Raspbian) but making them world
readable (chmod 644) is easier than messing around with changing owners.

Change your HTML file to show something to tell you it's working.
Currently it's relying on the Javascript to display everything. Add this:

<h1>What temperature is it?</h1>

after the <body> line before the <div> line and reload the page in your
browser. If you see "What temperature is it?" then you're reading the
HTML file OK.

Also, on the <div id=...> line, the last <div> at the end of the line
should actually be </div> which could be causing problems. And the last
line of the file, "<html>", should be "</html>". In HTML when you open a
tag (<...>) you should have a matching closing tag (</...>). HTML is
pretty forgiving so it might work without the closing tags but it's best
to not tempt fate.

Good luck!

Shane.





------------------------------

Message: 7
Date: Mon, 8 Dec 2014 10:34:48 +0000
From: trahern culver <sound.warrior20@gmail.com>
To: Bristol and Bath Linux User Group <Bristol@mailman.lug.org.uk>
Subject: [bristol] 2tb sd card recomendations?
Message-ID: <5DF8CAB6-FC23-4CE5-A981-2133FF1A4A95@gmail.com>
Content-Type: text/plain; charset=utf-8

hey all, please can any one recommend an sd card that?s2tb or larger?

your help with this matter would be most welcome kind regards trey.


------------------------------

Message: 8
Date: Tue, 9 Dec 2014 10:42:11 +0000
From: David Smith <David.Smith@imgtec.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] 2tb sd card recomendations?
Message-ID:
<15A9D35B5490FC49AC0524AE3A085F0874FA92@BRMAIL01.br.imgtec.org>
Content-Type: text/plain; charset="utf-8"

-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of trahern culver
> hey all, please can any one recommend an sd card that?s2tb or larger?

Do they even exist? Searching around, I can't find any, and there's an article from the Independent where SanDisk announced the world's largest SD card at 512GB in September.

I'm pretty sure you won't find anything bigger than 2 TB, since that's the current limit for the SDXC specification.

------------------------------

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

End of Bristol Digest, Vol 580, Issue 2
***************************************

Tidak ada komentar:

Posting Komentar