×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Building the induino MeteoStation with 3d printed housing

  • Posts: 2247
  • Thank you received: 223
In your howto page, you have
sudo apt-get install python-rrdtool python-simplejson python-uTidylib
it should be
sudo apt-get install python-rrdtool python-simplejson python-utidylib


after installing it, updated the meteoconfig.py file :
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# indiserver: no process found
2017-09-17T17:35:59: startup: indiserver -f /tmp/INDIFIFO -p 7624 
Starting GRAPHER
Starting internet data downloader
Retriving SKEW-T diagrams from: 08221
2017 09 1712
Starting MinMax
 
MinMax FAIL
Starting UPDATER
Generating 3 hours graph
Generating day graph
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT
Timeout MeteoStation DEVICE_PORT


the indui-duino server does not seem to start.
The following user(s) said Thank You: Magnus
6 years 6 months ago #19567

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

  • Posts: 2247
  • Thank you received: 223
After starting it manually, with
echo start indi_duino -n \"MeteoStation\" -s \"/usr/share/indi/meteostation_sk.xml\" >/tmp/INDIFIFO

I can see the data in the web page, still the Cloud value is null.


edit:
You also need to do the following:
mkdir /var/www/meteo/CHART
chmod 777 /var/www/meteo/CHART
The following user(s) said Thank You: Magnus
Last edit: 6 years 6 months ago by Gonzothegreat.
6 years 6 months ago #19568

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

  • Posts: 271
  • Thank you received: 72
Just to clarify, you are trying to get the 'ssh tunnel with indistartup' option to work, or local?

In startMETEO.py could you change the 'eval' to 'echo' and post the full connection command (just change your username and ip to something else before posting)

I still don't know why the skeleton file should be changed? As it is, it does not depend on actual pins of the sensors, but uses other pins to be read by firmata.
Could you try to download the unchanged skeleton from the upstream indi master? raw.githubusercontent.com/indilib/indi/m.../meteostation_sk.xml

I have all sensors working, with no changes to that file,
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 6 months ago #19569

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

  • Posts: 2247
  • Thank you received: 223


I'm running it local.
I will try the default meteostation_sk.xml
And will post the output in a few minutes.
6 years 6 months ago #19570

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

  • Posts: 2247
  • Thank you received: 223
echo:
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# grep echo startMETEO.sh 
    echo $INDILOCALEXEC &
    echo $INDIREMOTEFORKEXEC
    echo $INDIREMOTEEXEC
   echo "RRD file exists."
   echo "RRD file exists does not exist. Creating"
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB#

output:
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# ./startMETEO.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
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
RRD file exists.
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# Starting GRAPHER
Starting UPDATER
Traceback (most recent call last):
  File "./meteoRRD_updater.py", line 94, in <module>
    indi=indiclient(INDISERVER,INDIPORT)
  File "/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB/indiclient.py", line 2569, in __init__
    bigindiclient.__init__(self,host,port)
  File "/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB/indiclient.py", line 1982, in __init__
    self.socket.connect((host, port))
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
Starting MinMax
 
MinMax FAIL
Starting internet data downloader
Retriving SKEW-T diagrams from: 08221
2017 09 1712
Generating 3 hours graph
Generating day graph
 
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# Generating weekly graph
Generating monthly graph
^C


I have also now used the original skeleton file, the raw data is correct but the Meteo tab isn't fully operational.
6 years 6 months ago #19573

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

  • Posts: 271
  • Thank you received: 72
There is a space missing in line 90 meteoconfig.py
INDILOCALEXEC="$KILLEXEC; rm $INDIFIFODIR; mkfifo $INDIFIFODIR; $INDIEXEC $INDIPORT & $DUINOEXEC $EXECNOOUTPUT"
There should be a space after $DUINOEXEC and before $EXECNOOUTPUT
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 6 months ago #19574

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

  • Posts: 2247
  • Thank you received: 223
Good spot, but it hasn't fixed the start up.

3562 pts/1 S 0:00 indiserver -f /tmp/INDIFIFO -p 7624
root@ubuntu:/var/www/meteo/CHART#
6 years 6 months ago #19575

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

  • Posts: 271
  • Thank you received: 72
Think I figured out the pin issue. I'm not sure the mapping is the same as the Uno and Trinket Pro.

From this the true pinnumber is 14 + analog pin forum.arduino.cc/index.php?topic=144876.0
So i guess if clouds is A8, then pin 22 is correct?

Also, see if you spot something wrong here.
killall indiserver; rm /tmp/INDIFIFO; mkfifo /tmp/INDIFIFO; indiserver -f /tmp/INDIFIFO -p 7624 & echo start indi_duino -n \"MeteoStation\" -s \"/usr/local/share/indi/meteostation_sk.xml\" > /tmp/INDIFIFO &>/dev/null

This is the full exec when you are running local. Try pasting it in, and if it does not work try with & instead of &>/dev/null or possibly nothing?
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 6 months ago #19576

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

  • Posts: 2247
  • Thank you received: 223
with dev/null
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# 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
indiserver: no process found
[1] 3597
2017-09-17T18:40:31: startup: indiserver -f /tmp/INDIFIFO -p 7624 
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB#
2985 ?        Ss     0:02  \_ sshd: root@pts/1
 3004 pts/1    Ss+    0:04  |   \_ -bash
 3597 pts/1    S      0:00  |       \_ indiserver -f /tmp/INDIFIFO -p 7624
 3208 ?        Ss     0:00  \_ sshd: root@pts/2
 3225 pts/2    Ss     0:00      \_ -bash
 3598 pts/2    R+     0:00          \_ ps afx

without dev/null
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# 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
[1]+  Terminated              indiserver -f /tmp/INDIFIFO -p 7624
[1] 3603
2017-09-17T18:41:31: startup: indiserver -f /tmp/INDIFIFO -p 7624 
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB# 2017-09-17T18:41:31: Driver indi_duino: Indiduino driver start...
2017-09-17T18:41:31: Driver indi_duino: Building from /usr/share/indi/meteostation_sk.xml skeleton
2017-09-17T18:41:31: Driver indi_duino: Using INDISKEL /usr/share/indi/meteostation_sk.xml
 
root@ubuntu:/home/magnueINDI/3rdparty/indi-duino/add-on/meteostationWEB#
2985 ?        Ss     0:02  \_ sshd: root@pts/1
 3004 pts/1    Ss+    0:04  |   \_ -bash
 3603 pts/1    S      0:00  |       \_ indiserver -f /tmp/INDIFIFO -p 7624
 3604 pts/1    S      0:00  |           \_ indi_duino
 3208 ?        Ss     0:00  \_ sshd: root@pts/2
 3225 pts/2    Ss     0:00      \_ -bash
 3605 pts/2    R+     0:00          \_ ps afx
6 years 6 months ago #19577

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

  • Posts: 2247
  • Thank you received: 223

WOW, good find.

I will also try to reload the driver into the Arduino, as I am able to change the cable on the fly on this board.
On the other board, all wires are hard-soldered in.
6 years 6 months ago #19578

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

  • Posts: 271
  • Thank you received: 72
Let me know when you have figured the rest out :)

Also look at line 15 in startMETEO.sh Looks like both your attempts worked and ran in the background? Try removing the & after eval $INDILOCALEXEC
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 6 months ago #19579

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

  • Posts: 2247
  • Thank you received: 223
I GOT IT!!!! as in the pins... oh dear it was my fault all along :whistle: remember my issue in indilib.org/forum/general/2265-building-....html?start=36#19419 ?

Well, I attempted to fix the 'warning' by altering the TOTAL_ANALOG_PINS and TOTAL_PINS so that I get no warnings in the compile.
BIG MISTAKE !!!! don't do it !!!! lol

I have reloaded the code, untouched, not even the DHT/IR pins. Connected the sensors correctly on the board.
All raw data are good, and the meteo tab is also good.
6 years 6 months ago #19580

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

Time to create page: 1.962 seconds