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 Pi (Peter Hemmings)
2. Re: Dygraph on Pi (Alex Butcher (LUG))
3. Re: Dygraph on Pi (Peter Hemmings)
4. Re: Dygraph on Pi (David Smith)
5. Re: Dygraph on Pi (Peter Hemmings)
----------------------------------------------------------------------
Message: 1
Date: Sun, 04 Jan 2015 15:35:32 +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 Pi
Message-ID: <54A95DC4.6040708@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
Update:
On 30/12/14 10:54, Peter Hemmings wrote:
>
> I put a modified static index.html file in my /home/pi/public_html
> folder and got it to serve using "/local IP/~pi/index.html"
I have made some progress (and removed more errors in temp.html) but not
quite there yet!
I have a cron job running to output temperature/humidity into a
"temp.log" file in /pi/public_html folder and have configured apache2
with "userdir module" to read files from laptop using a browser to
Pi IP address/file.html.
I tested this works by using a dygraph tutorial for temperatures high
and low with "rollover" as per this page:
http://dygraphs.com/tutorial.html
I have put all files in my public_html folder including the
dygraph-combined-dev.js that was required for the tutorial graph only.
I still get a warning (using the beer making code and my data) that
there might be a problem using non US asci characters which I am
ignoring as the tutorial gives the same warning.
I am now getting constant results in that I have a scaled graph page
without date with just the 2 errors, the US asci and a syntax error in
line 1 of the data which I assume is now my only issue?!
I cannot seem to copy the first line from a remote desktop to here but
all the lines of data are now the same format and I still get the error,
so I am wondering if I have been over diligent when amending the dygraph
script!
FWIW the first 2 lines of data are:
20150102190201,43.0,22.0
20150102190301,42.0,22.0
Which were generated by the cron job (year/month/day/humidity/temperature).
Any suggestions as to why I still cannot see my data on the graph?
I have Firefox and Chrome so if there is a specific way of seeing
exactly what syntax is failing then maybe that would help!
Regards
--
Peter H
------------------------------
Message: 2
Date: Sun, 04 Jan 2015 18:00:59 +0000
From: "Alex Butcher (LUG)" <lug@assursys.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>,
Peter Hemmings <peter@hemmings.eclipse.co.uk>
Subject: Re: [bristol] Dygraph on Pi
Message-ID: <1D669753-BAE8-4FE9-A776-73C88007556C@assursys.co.uk>
Content-Type: text/plain; charset=UTF-8
On 4 January 2015 15:35:32 GMT+00:00, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
>Any suggestions as to why I still cannot see my data on the graph?
Probably the syntax error, as it's a PHP script, right?
>
>I have Firefox and Chrome so if there is a specific way of seeing
>exactly what syntax is failing then maybe that would help!
You'll need to look in the Apache error log.
>
>
>Regards
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
------------------------------
Message: 3
Date: Sun, 04 Jan 2015 19:12:11 +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 Pi
Message-ID: <54A9908B.3010909@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 04/01/15 18:00, Alex Butcher (LUG) wrote:
>
>
> On 4 January 2015 15:35:32 GMT+00:00, Peter Hemmings <peter@hemmings.eclipse.co.uk> wrote:
>
>> Any suggestions as to why I still cannot see my data on the graph?
>
> Probably the syntax error, as it's a PHP script, right?
All this is still a bit new to me but I thought it was html making a
dygraph graph using a dygraph JS program!
I am still getting a graph using the tutorial with the extra
dygraph-conbined-dev.js, so I had assumed it was all OK.
>
>>
>> I have Firefox and Chrome so if there is a specific way of seeing
>> exactly what syntax is failing then maybe that would help!
>
> You'll need to look in the Apache error log.
>
Hmmm....
I get this:
[Sun Jan 04 14:16:42 2015] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Sun Jan 04 14:16:42 2015] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Sun Jan 04 14:19:01 2015] [error] [client 192.168.0.4] File does not
exist: /var/www/dygraph-combined.js.map
[Sun Jan 04 14:49:07 2015] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Sun Jan 04 14:49:19 2015] [error] [client 192.168.0.4] File does not
exist: /var/www/dygraph-combined.js.map
[Sun Jan 04 18:56:58 2015] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
pi@raspberry /var/log/apache2 $
192.168.0.4 is my laptop, I assume its looking for files on the pi!?
When I looked into this a few weeks ago I found there were many causes
for this error and could not find relevant information.
Will have another look.
Regards
--
Peter H
------------------------------
Message: 4
Date: Sun, 04 Jan 2015 21:26:17 +0000
From: David Smith <David.Smith@ds-electronics.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Dygraph on Pi
Message-ID: <1420406777.6541.10.camel@ubuntu>
Content-Type: text/plain
On Sun, 2015-01-04 at 19:12 +0000, Peter Hemmings wrote:
> All this is still a bit new to me but I thought it was html making a
> dygraph graph using a dygraph JS program!
>
> I am still getting a graph using the tutorial with the extra
> dygraph-conbined-dev.js, so I had assumed it was all OK.
>
> I get this:
>
> [Sun Jan 04 14:16:42 2015] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Sun Jan 04 14:16:42 2015] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Sun Jan 04 14:19:01 2015] [error] [client 192.168.0.4] File does not
> exist: /var/www/dygraph-combined.js.map
> [Sun Jan 04 14:49:07 2015] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Sun Jan 04 14:49:19 2015] [error] [client 192.168.0.4] File does not
> exist: /var/www/dygraph-combined.js.map
> [Sun Jan 04 18:56:58 2015] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> pi@raspberry /var/log/apache2 $
>
> 192.168.0.4 is my laptop, I assume its looking for files on the pi!?
Yes. These shouldn't be a problem. The favicon.ico is simply a bitmap
graphic that the web browser requests to put at the beginning of the
address bar (just to the left of "http://". For example, if you go to
"www.google.co.uk" then you get a white, lower-case "g" on a blue
background. Similarly, the BBC webpage gives you the BBC logo. Whilst
the web browser will always request this file, not having it won't cause
a problem.
I think that the "dygraph-combined.js.map" file that's being requested
is the mapping file from original JS code to the shortened version. If
your dygraph-combined.js file looks reasonably readable, then it's
probable that you don't need this file anyway. It's being requested
because there's an option enabled in your browser. It's supposed to
help with debugging in the browser (allowing you to match the errors
back to the original JS code), but if your code is un-shortened anyway,
it's irrelevant.
In short, I don't think these errors are indicative of your problem.
TBH, I think we've got beyond the point of what can be realistically be
debugged via list emails. Are you able to configure both your laptop
and Pi with static IPs? If so, bring them both to the KT with a
crossover cable (and appropriate power adapters) and we'll try to work
out what's going on.
------------------------------
Message: 5
Date: Sun, 04 Jan 2015 22:54:07 +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 Pi
Message-ID: <54A9C48F.50301@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=windows-1252; format=flowed
snip
>> 192.168.0.4 is my laptop, I assume its looking for files on the pi!?
>
> Yes. These shouldn't be a problem. The favicon.ico is simply a bitmap
> graphic that the web browser requests to put at the beginning of the
> address bar (just to the left of "http://". For example, if you go to
> "www.google.co.uk" then you get a white, lower-case "g" on a blue
> background. Similarly, the BBC webpage gives you the BBC logo. Whilst
> the web browser will always request this file, not having it won't cause
> a problem.
OK
>
> I think that the "dygraph-combined.js.map" file that's being requested
> is the mapping file from original JS code to the shortened version. If
> your dygraph-combined.js file looks reasonably readable, then it's
> probable that you don't need this file anyway. It's being requested
> because there's an option enabled in your browser. It's supposed to
> help with debugging in the browser (allowing you to match the errors
> back to the original JS code), but if your code is un-shortened anyway,
> it's irrelevant.
Ah Ha - I think this may have been mentioned to me before at the KT or
earlier in this long thread!
I though it might be shortened.
>
> In short, I don't think these errors are indicative of your problem.
OK
>
> TBH, I think we've got beyond the point of what can be realistically be
> debugged via list emails.
Yep - sorry but I hate being beaten!
Are you able to configure both your laptop
> and Pi with static IPs?
Yep
If so, bring them both to the KT with a
> crossover cable (and appropriate power adapters)
I am not sure if I have one but will look.
If I have one I will try it out but my laptops eth socket has
intermittent M/B connections that I have been unable to fix.
and we'll try to work
> out what's going on.
OK.
I will be amending the tutorial files that work and the data file to see
it it all works that way.
> _______________________________________________
> 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
End of Bristol Digest, Vol 584, Issue 1
***************************************
Tidak ada komentar:
Posting Komentar