I tried to use the analog clock from Highcharts. This is not working at PHP on the Raspberry.
Does somebody knows a nice analog clock to present in PHP/ JS on a Rasberry?
Thanks in advance.
- DougieLawson
- Posts: 40821
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: PHP/ JS ->Show analog clock
Please post a link to the PHP code you've downloaded.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: PHP/ JS ->Show analog clock
DougieLawson wrote:Please post a link to the PHP code you've downloaded.
I tried to make this code working:
http://jsfiddle.net/gh/get/jquery/1.9.1 ... uge-clock/
I do use other codes from this side which are working
Re: PHP/ JS ->Show analog clock
where is the php?Canedje wrote:DougieLawson wrote:Please post a link to the PHP code you've downloaded.
I tried to make this code working:
http://jsfiddle.net/gh/get/jquery/1.9.1 ... uge-clock/
I do use other codes from this side which are working
Re: PHP/ JS ->Show analog clock
PHP is not required to get that working. Just serve up that page.
You will also need a script tga to pull the jquery into your page.
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
What errors do you get it the dev tools in Chrome or Firefox browsers?
You will also need a script tga to pull the jquery into your page.
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
What errors do you get it the dev tools in Chrome or Firefox browsers?
Last edited by Heater on Wed May 06, 2015 9:40 am, edited 3 times in total.
Memory in C++ is a leaky abstraction .
- DougieLawson
- Posts: 40821
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: PHP/ JS ->Show analog clock
Create a file called /var/www/hc.clock.js (with the Javascript analog clock code from that website).
Create a HTML file /var/www/hc.clock.htmlPoint your web browser at http://pi.local/hc.clock.html
Create a HTML file /var/www/hc.clock.html
Code: Select all
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Analog clock</title>
<script src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="hc.clock.js"></script>
<head>
<body>
<div id="container" style="width: 300px; height: 300px; margin: 0 auto"></div>
</body>
</html>
Last edited by DougieLawson on Wed May 06, 2015 9:40 am, edited 1 time in total.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: PHP/ JS ->Show analog clock
betting 5 euros on thisHeater wrote:You will also need a script tga to pull the jquery into your page.

- DougieLawson
- Posts: 40821
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: PHP/ JS ->Show analog clock
You lose. Pay up.Massi wrote:betting 5 euros on thisHeater wrote:You will also need a script tga to pull the jquery into your page.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: PHP/ JS ->Show analog clock
you have to wait for the op to say "oh, i forgot this"DougieLawson wrote:You lose. Pay up.Massi wrote:betting 5 euros on thisHeater wrote:You will also need a script tga to pull the jquery into your page.

Re: PHP/ JS ->Show analog clock
Thanks for the help.DougieLawson wrote:Create a file called /var/www/hc.clock.js (with the Javascript analog clock code from that website).
Create a HTML file /var/www/hc.clock.htmlPoint your web browser at http://pi.local/hc.clock.htmlCode: Select all
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Analog clock</title> <script src='http://code.jquery.com/jquery-1.9.1.js'></script> <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/highcharts-more.js"></script> <script src="hc.clock.js"></script> <head> <body> <div id="container" style="width: 300px; height: 300px; margin: 0 auto"></div> </body> </html>
Indeed it is no PHP code needed. Apologize.

I'll try at home.
I did put straight the code into my header without the source line you mentioned
There where no errors. The clock just didn´t show up
Re: PHP/ JS ->Show analog clock
This works. See attachment.
Somebody owes me 5 Euro
Somebody owes me 5 Euro

- Attachments
-
- clock.html.gz
- (1.58 KiB) Downloaded 99 times
Memory in C++ is a leaky abstraction .