×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Building the induino MeteoStation with 3d printed housing

  • Posts: 2255
  • Thank you received: 223
right bash -x to the rescue...
need to understand what's going on at the start.
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# bash -x startMETEO.sh 
+ source meteoconfig.py
++ IFS=%
++ INDISERVER=localhost
++ INDITUNNEL=false
++ INDISTARTREMOTE=false
++ INDIPORT=7624
++ INDIDEVICE=MeteoStation
++ INDIDEVICEPORT=/dev/ttyUSB0
++ EXECNOOUTPUT='&>/dev/null'
++ SSHKEYDIR='~/.ssh/id_rsa'
++ SSHUSERNAME=magnus_e
++ INDIFIFODIR=/tmp/INDIFIFO
++ METEOSTATIONSKELETONDIR=/usr/share/indi/meteostation_sk.xml
++ KILLEXEC='killall indiserver'
++ INDIEXEC='indiserver -f /tmp/INDIFIFO -p'
++ DUINOEXEC='echo start indi_duino -n \"MeteoStation\" -s \"/usr/share/indi/meteostation_sk.xml\" > /tmp/INDIFIFO'
++ INDILOCALEXEC='killall indiserver; rm /tmp/INDIFIFO; mkfifo /tmp/INDIFIFO; indiserver -f /tmp/INDIFIFO -p 7624 & echo start indi_duino -n \"MeteoStation\" -s \"/usr/share/indi/meteostation_sk.xml\" > /tmp/INDIFIFO &>/dev/null'
++ SSHTUNNEL='-i ~/.ssh/id_rsa magnus_e@ -p  -4 -L 7624:localhost:'
++ INDIREMOTEFORKEXEC='ssh -f -i ~/.ssh/id_rsa magnus_e@ -p  -4 -L 7624:localhost: '\''killall indiserver; rm /tmp/INDIFIFO; mkfifo /tmp/INDIFIFO; echo start indi_duino -n \"MeteoStation\" -s \"/usr/share/indi/meteostation_sk.xml\" > /tmp/INDIFIFO & indiserver -f /tmp/INDIFIFO -p '\'' &>/dev/null'
++ REMOTEKILLEXEC='ssh -f -i ~/.ssh/id_rsa magnus_e@ -p  -4 -L 7624:localhost: '\''killall indiserver'\'' &>/dev/null'
++ INDIREMOTEEXEC='ssh -fN -o ExitOnForwardFailure=yes -i ~/.ssh/id_rsa magnus_e@ -p  -4 -L 7624:localhost: &>/dev/null'
++ OWNERNAME='Nacho Mas'
++ SITENAME=MADRID
++ ALTITUDE=630
++ SOUNDINGSTATION=08221
++ CHARTPATH=./html/CHART/
++ EUMETSAT_LAST=http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_IR039E-westernEurope.jpg
+ ./stopMETEO.sh
indiserver: no process found
meteoRRD_updater.py: no process found
meteoRRD_graph.py: no process found
sounding.py: no process found
meteoRRD_MaxMinAvg.py: no process found
+ [[ localhost = \l\o\c\a\l\h\o\s\t ]]
+ [[ false = \f\a\l\s\e ]]
+ eval 'killall indiserver; rm /tmp/INDIFIFO; mkfifo /tmp/INDIFIFO; indiserver -f /tmp/INDIFIFO -p 7624 & echo start indi_duino -n \"MeteoStation\" -s \"/usr/share/indi/meteostation_sk.xml\" > /tmp/INDIFIFO &>/dev/null'
++ killall indiserver
indiserver: no process found
++ rm /tmp/INDIFIFO
++ mkfifo /tmp/INDIFIFO
++ echo start indi_duino -n '"MeteoStation"' -s '"/usr/share/indi/meteostation_sk.xml"'
++ indiserver -f /tmp/INDIFIFO -p 7624
2017-09-17T19:02:45: startup: indiserver -f /tmp/INDIFIFO -p 7624 
+ unset IFS
+ '[' -f meteo.rrd ']'
+ echo 'RRD file exists.'
RRD file exists.
+ ./meteoRRD_updater.py '&>/dev/null'
+ ./meteoRRD_MaxMinAvg.py '&>/dev/null'
+ ./meteoRRD_graph.py '&>/dev/null'
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# + ./sounding.py '&>/dev/null'
Starting GRAPHER
Starting UPDATER
Starting internet data downloader
Retriving SKEW-T diagrams from: 08221
2017 09 1712
Starting MinMax
 
MinMax FAIL
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
6 years 7 months ago #19581

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
FIXED:
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# diff meteoconfig.py meteoconfig.py.bck 
91c91
< INDILOCALEXEC="$KILLEXEC; rm $INDIFIFODIR; mkfifo $INDIFIFODIR; $INDIEXEC $INDIPORT & $DUINOEXEC"
---
> INDILOCALEXEC="$KILLEXEC; rm $INDIFIFODIR; mkfifo $INDIFIFODIR; $INDIEXEC $INDIPORT & $DUINOEXEC $EXECNOOUTPUT"
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB#
Last edit: 6 years 7 months ago by Gonzothegreat.
6 years 7 months ago #19582

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
You did read trogh the entire config....
I changed device port to /dev/ttyUSB0 as I figured it was more often used, but I noticed in a previous post of yours, that you are connected to /dev/ttyACM0
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19583

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
The barometer needs fixing in the web part, max value shows 961, while here at the moment it's 1012.90


oh and I'm going to use this Arduino board :) as it's working fine.
6 years 7 months ago #19584

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223

ttyUSB0 / ttyACM0 that's fine, different machines. All good.
I'll deal with that with udev rules at a later date.
6 years 7 months ago #19585

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
You ended on the pro micro, or nano v3?

I'll add info on how to get the correct pinnumbers in the howto, and thanks for spotting the other typos, and misses :)
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19586

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223

I'm running it on the Nano v3.0
I will however give the pro micro another go once I receive my OTG usb cable, this is for a final test.
6 years 7 months ago #19587

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223

in index.html

This is the value to change ^ I believe.
Last edit: 6 years 7 months ago by Gonzothegreat.
6 years 7 months ago #19588

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
Double check that the barometer is working in indi control panel and the METEO tab.
The web interface has a lot of strange default values if it cannot read a sensor.

I have seen that before when connection has failed.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19589

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223

it's working, I've amended the value to 1100 for a test and it's reporting what the rawdata is showing.
I just need to find the right value to make it more real, as in the graph.
6 years 7 months ago #19590

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
You also need to change:

#and this cloud cover at IR 39. Work at night
EUMETSAT_LAST="oiswww.eumetsat.org/IPPS/html/latestImag...9E-westernEurope.jpg"

For the right URL as this one is showing an old picture.
For me it would be:
oiswww.eumetsat.org/IPPS/html/latestImag...39_WesternEurope.jpg
6 years 7 months ago #19592

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
the following file is missing, as in not being created.

html/index.html: $.get("CHART/AVERAGEvalues.json", function(data)

Not sure the purpose of it.
6 years 7 months ago #19599

Please Log in or Create an account to join the conversation.

Time to create page: 0.251 seconds