Temperature and humidity Meteo project

Discussion in 'General Discussion' started by chilliman, Sep 5, 2014.

  1. chilliman

    chilliman New Member

    Joined:
    Dec 31, 2013
    Messages:
    8
    Likes Received:
    0
    hi
    i am tying to get the Temperature and humidity Meteo project from the tutorials on the udoo website , have got it working but when i try to use the PHP part of the tutorial i keep get an error listed below


    Warning: Unable to open the device in /var/www/METEO/php_serial.class.php on line 157 Warning: Device must be opened in /var/www/METEO/php_serial.class.php on line 541 Warning: Device must be opened to read it in /var/www/METEO/php_serial.class.php on line 474
    --UDOO SYSTEM--METEO DATA DETECTION--
    Last Detection 2014-09-05 02:49:18

    Humidity Temperature
    Notice: Undefined offset: 1 in /var/www/METEO/data_php.php on line 55

    i think i have changed the permissions using the 'chmod 777' command.
    can anyone help me with this issue.

    thanks
    chilliman
     
  2. chilliman

    chilliman New Member

    Joined:
    Dec 31, 2013
    Messages:
    8
    Likes Received:
    0
    i found the problem on another website is as follows

    "I found the error: You have to give www-data permissions to access the serial port: That means chmod 777 /dev/ttymxc3 and i did also added www-data to the intserial group. Then you have to restart and it should work."

    and it works fine

    chilliman
     
  3. THXC

    THXC New Member

    Joined:
    Nov 30, 2013
    Messages:
    4
    Likes Received:
    0
    sorry for diging up this thred but i have same problem with my meteo project and i get the same error

    Code:
    Notice: Undefined offset: 1 in /var/www/data_php.php on line 55
    
    try difrent solutions but they didint help
     

Share This Page