Beiträge von bashy

    Genau, die Meldung:


    [Fri Jan 24 12:41:21 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html


    Bei:


    http://rpi/main.php


    Sehe ich den Quelltext, wird also wohl gar nicht ausgeführt.


    Code
    = CURDATE()") or die("Error" . mysql_error()); $p4dCountDay = mysql_numrows($result); // ------------------ // State of S 3200 $state = requestAction("s3200-state", 3, 0, "", $response); if ($state == 0) list($time, $state, $status, $mode) = split("#", $response, 4); echo "
    \n"; if ($state == 19) echo "


    usw.

    Das habe ich gemacht?



    Setup and configure WEBIF:
    --------------------------

    - copy content of folder /tmp/linux-p4d/htdocs to your webroot (/var/www is used as example in the next steps)
    - download the tool pChart2.1.x from http://www.pchart.net/download (version 2.1.3 in our example)
    - store the extracted download in the webroot folder (eg. /var/www/pChart2.1.3)
    - create symbolic link
    ln -s /var/www/pChart2.1.3/ /var/www/pChart
    - change access to cache folder
    chmod 777 /var/www/pChart/cache
    - change owner of www folder
    chown www-data /var/www
    - for a test enter the web address http://<IP_of_RPi>/index.php

    The default username and password for the login is
    Benutzername: p4
    Passwort: p4-3200

    Mal in den Apache log geschaut?


    [Fri Jan 24 12:12:16 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html
    [Fri Jan 24 12:13:17 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html
    [Fri Jan 24 12:13:31 2014] [error] [client 192.168.178.25] File does not exist: /var/www/status.html
    [Fri Jan 24 12:14:17 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html
    [Fri Jan 24 12:15:17 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html
    [Fri Jan 24 12:15:21 2014] [error] [client 192.168.178.25] File does not exist: /var/www/status.html
    [Fri Jan 24 12:16:17 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html
    [Fri Jan 24 12:17:18 2014] [error] [client 192.168.178.25] File does not exist: /var/www/main.html


    root@rpi:/var/log/apache2# ls /var/www
    basecfg.php error.php functions.php index.php logout.php pChart schema.php stylesheet-blue.css wait.png
    chart.php error.png header.php jfunctions.php main.php pChart2.1.4 schema.png stylesheet.css
    config.php fire.png index.html LICENSE menu.php schemacfg.php settings.php stylesheet-orange.css
    detail.php footer.php index.lighttpd.html login.php p4.png schemadsp.php setup.php test.php

    Im Browser tut sich aber nix.


    It works!


    This is the default web page for this server.


    The web server software is running but no content has been added, yet.


    ---------


    Das scheint zu klappen`?


    root@rpi:~# p4d -t -n
    Read 8 option from /etc/p4d.conf
    Try conneting to database
    SQL client character now 'utf8'
    Initialy creating table 'valuefacts'
    Initialy creating table 'errors'
    Initialy creating table 'menu'
    Initialy creating table 'samples'
    Initialy creating table 'jobs'
    Initialy creating table 'schemaconf'
    Initialy creating table 'config'
    Connection to database established
    Storing 'mail' with value ''
    Storing 'mailScript' with value '/usr/local/bin/p4d-mail.sh'
    Storing 'stateMailStates' with value ''
    Storing 'stateMailTo' with value ''
    Storing 'errorMailTo' with value ''
    Storing 'tsync' with value ''
    Storing 'maxTimeLeak' with value ''
    State changed to 'Heizen'
    Processed 0 samples, state is 'Heizen'
    Processed 0 samples, state is 'Heizen'
    Processed 0 samples, state is 'Heizen'
    Processed 0 samples, state is 'Heizen'

    p4d -t -n
    Read 8 option from /etc/p4d.conf
    Try conneting to database
    SQL client character now 'utf8'
    Initialy creating table 'valuefacts'
    Initialy creating table 'errors'
    Initialy creating table 'menu'
    Initialy creating table 'samples'
    Initialy creating table 'jobs'
    Initialy creating table 'schemaconf'
    Initialy creating table 'config'
    Connection to database established
    Storing 'mail' with value ''
    Storing 'mailScript' with value '/usr/local/bin/p4d-mail.sh'
    Storing 'stateMailStates' with value ''
    Storing 'stateMailTo' with value ''
    Storing 'errorMailTo' with value ''
    Storing 'tsync' with value ''
    Storing 'maxTimeLeak' with value ''
    State changed to 'Heizen'
    Processed 0 samples, state is 'Heizen'

    root@rpi:~# mysql -Dp4 -u p4 -pp4
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 4075
    Server version: 5.5.35-0+wheezy1 (Debian)


    Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.


    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.


    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


    mysql> show tables;
    Empty set (0.00 sec)

    Hallo


    Habe heute mal versucht zu installieren, ist ein Fröling S3.


    Mit philipphunger seinem Skript.


    Startet immer wieder neu, im Syslog (loglevel auf 4) ist auch nichts ersichtlich.


    Code
    root@rpi:/etc/init.d# ./p4d restart
    Restarting Deamon to capture data of the P4 pellet heating: p4d - seems not to be running./p4d: line 44: warning: setlocale: LC_TIME: cannot change locale (de_DE.UTF-8): No such file or directory
    .
    root@rpi:/etc/init.d# tail -f /var/log/syslog
    Jan 24 11:25:04 rpi runp4d: restarting p4d
    Jan 24 11:25:05 rpi runp4d: restarting p4d
    Jan 24 11:25:05 rpi runp4d: restarting p4d
    Jan 24 11:25:05 rpi runp4d: restarting p4d


    MFG bashy

    Nabend Jörg


    Hier sind 2 Sensoren angeschlossen.


    Es werden Devices angelegt, lese die aktuell per Shell-Skript aus.


    Code
    root@rpi:~# ls /sys/bus/w1/devices/w1_bus_master1/10-*/w1_slave
    /sys/bus/w1/devices/w1_bus_master1/10-0008028fdcff/w1_slave
    /sys/bus/w1/devices/w1_bus_master1/10-0008028ff102/w1_slave
    
    
    root@rpi:~# cat /sys/bus/w1/devices/w1_bus_master1/10-0008028ff102/w1_slave
    38 00 4b 46 ff ff 0b 10 a9 : crc=a9 YES
    38 00 4b 46 ff ff 0b 10 a9 t=28062
                                ^^^^^


    Eine c/c++ lib ist mir nicht bekannt.


    MFG bashy

    Warum sollte man die Arbeit mit einberechnen?
    Hat mir den "reinen" Kosten ja nichts zu tun.


    Nabend


    Stimmt schon, die Zeit kann man nicht mit ein rechnen (würde man dies tun, wären das ganz andere Preise).


    Keinen Plan ob die 3,61 cent KW/h für Ofen fertiges Holz gedacht sind (also welches das vor die Haustür ab geladen wird).


    Möchte meinen es kommt ja noch eine ganze Ecke für den Selbstwerber dazu ...


    * Motorsäge(n)
    * Betriebsstoffe
    * Schutzausrüstung
    * Spalter
    * Kreissäge / Wippsäge / Sägespalter etc.
    * Strom


    Ganz zu schweigen vom Transport (Traktor, Anhänger usw).


    Holz muß man sich schön rechnen ;)


    MFG bashy

    Morgen


    Solch eine Klappe könnte schon was bringen, Kesseltemperatur hat sich länger gehalten (letzter Balken), und auch was wärmer in Heizhaus.





    Dabei erst 6 Stunden nach dem das Feuer aus war, das Heizhaus dicht gemacht.


    Heute mal gleich nach dem Abbrand ab-dichten, und schauen ...


    Es waren beim anheizen noch 53 Grad im Kessel (sonst immer so was um die 40 +).


    MFG bashy