Autor
|
Tema: Manual per fer anar Oregon amb Linux Part1 (Llegit 5670 vegades)
|
|
|
saba
Estrat

Desconnectat
Missatges: 10
|
be, m'he quedat aquí el perl no funciona o no troba el wmrplot.cgi
perls esta a /usr/bin
particularitats de la meva instal·lació - els html estan a l'arrel d'una web ja que les gràfiques seran un link de la mateixa web - els cgi+pl els he posat a /arrel_web/cgi-bin/ ja que si miro l'adreça d'un gràfic sembla que es on busca el cgi http://lloc_web/cgi-bin/wmrplot.cgi?plot=outtemp (a /usr/local/cgi-bin feia al mateix) - els permisos de tots el arxius son 755
no se perquè el datafilter no m'agafa el path (les dades les tinc en un altre partició) vaig modificar el path abans de compilar
datafilter opening 20070128.tab: No such file or directory
amb
datafilter -p /mnt/sata1/oregon/data va perfecte (o m'ho sembla)
Wind Data 2007/01/28 10:50:30 gust : 0.0 m/s average : 0.0 m/s chill : 1 C direction: 176 (S) Rain Data 2007/01/28 10:50:43 rate : 0 mm/h yesterday: 0 mm total (since 2099/01/01 00:00): 8.4 mm Outdoor Temperature, Humidity 2007/01/28 10:50:07 Temp : 1.4 C Humidity : 60 % Dew Temp underflow In House Baro, Temperature, Humidity 2007/01/28 10:50:06 Baro : 978 hpa (sea level: 600.0) Temp : 19.0 C Humidity : 25 % Dew Temp underflow no BTH sensor data no data from extra temperature sensor 0 no data from extra temperature sensor 1 no data from extra temperature sensor 2 no data from extra temp/humidity sensor 0 no data from extra temp/humidity sensor 1 no data from extra temp/humidity sensor 2
jo diria que el path el va agafar bé
sudo wxreportd -h usage: wxreportd [-h] [-d] [-a] [-b] [-r] [-z] [-p port] [-s device] [-w path] -h show this help and exit -d debug; don't fork to be a daemon -a don't record hex data files -b don't record sensor specific data files -c don't use WMR918 internal clock -r output raw hex frame (overrides option -f) -z don't gZip daily data files after collection -f raw|clear|decoded data format output to to tcp socket (default: clear) -p <port> listen for client connections on port instead of 9754 -s <device> get WMR918 data from device instead of /dev/ttyS0 -w <path> write data files to path instead of /mnt/sata1/oregon/data -v show version and exit
per acabar quan pico el link "actual weather station data. " el firefox m'obre la finestra de baixades i em diu si el vull obrir amb less  si executo el cgi en una consola surt aixo (que son els errors que trovo al log d'errors de l'apache)
./wmrplot.cgi Scalar found where operator expected at ./wmrplot.cgi line 84, near "$datafilepath$datafile" (Missing operator before $datafile?) syntax error at ./wmrplot.cgi line 84, near "$datafilepath$datafile" syntax error at ./wmrplot.cgi line 90, near "}" Execution of ./wmrplot.cgi aborted due to compilation errors.
ja no se que mes mirar
|
|
|
|
|
En línia
|
|
|
|
GarílPhone
L'empordaniccio es un mafiós ¡¡¡¡¡¡¡
Meteoclimatic projecte
Cumulonimbus Capillatus
   
Desconnectat
Gènere: 
Missatges: 12688

Hi ha mòbils e iphone's.....
|
A l'ultima línia et diu que té algun problema en compilar..... potser no tens instal-lat el compilador...... crec que es dei GCC o similar......
Execution of ./wmrplot.cgi aborted due to compilation errors.
|
|
|
|
|
En línia
|
|
|
|
saba
Estrat

Desconnectat
Missatges: 10
|
no recordo que compiles malament, el gcc el tinc bé perquè he compilat altres paquets
|
|
|
|
|
En línia
|
|
|
|
|
|
|
|
Egarenc
No ssieennto la visstaaa....
Meteoclimatic projecte
Cumulonimbus Capillatus
   
Desconnectat
Gènere: 
Missatges: 9965

|
les variables tenen pinta d'estar bé, i opino com tu, que és difícil que un programa així vingui amb un simple error de sintaxi.
Mira la configuració de l'estació. Potser els valors assignats a aquestes variables estan mal construïts i fan que l'intèrpret el faci petar. En concret, allà on dius la ruta i el nom del fitxer al qual es fa referència...
|
|
|
|
|
En línia
|
|
|
|
Undulatus
Cumulus
  
Desconnectat
Gènere: 
Missatges: 118

Rubí, Vallès Occidental
|
Hola Saba,
Primer el tema del path no ho entenc. Estàs segur que vas fer un make amb el path correcte? Torna a compilar per si de cas.
Del segon tema, tot apunta que el wmrplot.cgi no troba les dades. Has canviat el path a la variable que hi ha al principi del wmrplot.cgi?
$datafilepath = "/var/opt/wxdata"; per
$datafilepath = "/mnt/sata1/oregon/data";
Salutacuions
|
|
|
|
|
En línia
|
|
|
|
saba
Estrat

Desconnectat
Missatges: 10
|
Hola, per fi puc tornar a agafar el tema.......
provat el que diu Undulatus i segueix igual jo hi tenia $datafilepath = "/tmp/";
canviat per $datafilepath = "/mnt/sata1/oregon/data"; i seguim igual, el log diu
[Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Scalar found where operator expected at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] \t(Missing operator before $datafile?), referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 90, near "}", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Scalar found where operator expected at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Execution of /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi aborted due to compilation errors., referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Premature end of script headers: wmrplot.cgi, referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] \t(Missing operator before $datafile?), referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 90, near "}", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Execution of /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi aborted due to compilation errors., referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Premature end of script headers: wmrplot.cgi, referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Scalar found where operator expected at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Scalar found where operator expected at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] \t(Missing operator before $datafile?), referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] \t(Missing operator before $datafile?), referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 90, near "}", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 90, near "}", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Execution of /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi aborted due to compilation errors., referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Premature end of script headers: wmrplot.cgi, referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Execution of /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi aborted due to compilation errors., referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Premature end of script headers: wmrplot.cgi, referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Scalar found where operator expected at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] \t(Missing operator before $datafile?), referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] syntax error at /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi line 90, near "}", referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Execution of /mnt/sata1/www/wxreport/cgi-bin/wmrplot.cgi aborted due to compilation errors., referer: http://192.168.1.25:4444/ [Sat Jun 09 16:59:33 2007] [error] [client 192.168.1.20] Premature end of script headers: wmrplot.cgi, referer: http://192.168.1.25:4444/
he donat permís per tothom els arxius de dades i fa el mateix
aquí una captura

ja no se que més fer.....
|
|
|
|
|
En línia
|
|
|
|
Egarenc
No ssieennto la visstaaa....
Meteoclimatic projecte
Cumulonimbus Capillatus
   
Desconnectat
Gènere: 
Missatges: 9965

|
I $datafile quin valor té?
|
|
|
|
|
En línia
|
|
|
|
|