×

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: 271
  • Thank you received: 72
A value of more than 99.90% should not be a issue at all. However the sensor might have been unable to read, and the result nan.

I see in the exaple sketch that there is a check if the read is nan, so it can exit early. As dewpoint is calculated from the temp and humidity, it might have been doing aritmetric with nan (not a number)

I can add this check
// Check if any reads failed and exit early (to try again).
  if (isnan(h) || isnan(t) || isnan(f)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }

It will not help with the sensor reporting 99.90% humidity, but can help the firmware to keep going on sensor failure.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19633

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

  • Posts: 2255
  • Thank you received: 223
unrelated but super cool !!!!
build/upload your sketches from the Linux command line
inotool.org/

Just tested it, works perfectly fine.
The following user(s) said Thank You: Magnus
6 years 7 months ago #19635

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

  • Posts: 271
  • Thank you received: 72
That's very nice.
Don't like the Arduino IDE at all, and there is no refresh all files for when I edit them in vim.

Will give it a go
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19636

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

  • Posts: 2255
  • Thank you received: 223
I know this is going side track from this thread but...
root@ubuntu:/home/beep# ino build -m nano328
Searching for Board description file (boards.txt) ... /usr/share/arduino/hardware/arduino/boards.txt
Searching for Arduino lib version file (version.txt) ... /usr/share/arduino/lib/version.txt
Detecting Arduino software version ...  1.0.5 (2:1.0.5+dfsg2-4)
Searching for Arduino core library ... /usr/share/arduino/hardware/arduino/cores/arduino
Searching for Arduino variants directory ... /usr/share/arduino/hardware/arduino/variants
Searching for Arduino standard libraries ... /usr/share/arduino/libraries
Searching for make ... /usr/share/arduino/hardware/tools/avr/bin/make
Searching for avr-gcc ... /usr/share/arduino/hardware/tools/avr/bin/avr-gcc
Searching for avr-g++ ... /usr/share/arduino/hardware/tools/avr/bin/avr-g++
Searching for avr-ar ... /usr/share/arduino/hardware/tools/avr/bin/avr-ar
Searching for avr-objcopy ... /usr/share/arduino/hardware/tools/avr/bin/avr-objcopy
src/sketch_sep17f.ino
Searching for Arduino lib version file (version.txt) ... /usr/share/arduino/lib/version.txt
Detecting Arduino software version ...  1.0.5 (2:1.0.5+dfsg2-4)
Scanning dependencies of src
Scanning dependencies of arduino
Scanning dependencies of DHT
Scanning dependencies of Adafruit_Unified_Sensor
src/sketch_sep17f.cpp
DHT/DHT.cpp
DHT/DHT_U.cpp
Linking libDHT.a
arduino/wiring_shift.c
arduino/WInterrupts.c
arduino/avr-libc/malloc.c
arduino/avr-libc/realloc.c
arduino/wiring_analog.c
arduino/wiring_digital.c
arduino/wiring_pulse.c
arduino/wiring.c
arduino/HardwareSerial.cpp
arduino/USBCore.cpp
arduino/CDC.cpp
arduino/Stream.cpp
arduino/WMath.cpp
arduino/new.cpp
arduino/IPAddress.cpp
arduino/Tone.cpp
arduino/main.cpp
arduino/WString.cpp
arduino/Print.cpp
arduino/HID.cpp
Linking libarduino.a
Linking libAdafruit_Unified_Sensor.a
Linking firmware.elf
Converting to firmware.hex
root@ubuntu:/home/beep# 
root@ubuntu:/home/beep# 
root@ubuntu:/home/beep# 
root@ubuntu:/home/beep# ino upload -m nano328
Searching for stty ... /bin/stty
Searching for avrdude ... /usr/share/arduino/hardware/tools/avrdude
Searching for avrdude.conf ... /usr/share/arduino/hardware/tools/avrdude.conf
Guessing serial port ... /dev/ttyUSB0
 
avrdude: AVR device initialized and ready to accept instructions
 
Reading | ################################################## | 100% 0.01s
 
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file ".build/nano328/firmware.hex"
avrdude: writing flash (8546 bytes):
 
Writing | ################################################## | 100% 4.28s
 
avrdude: 8546 bytes of flash written
avrdude: verifying flash memory against .build/nano328/firmware.hex:
avrdude: load data flash data from input file .build/nano328/firmware.hex:
avrdude: input file .build/nano328/firmware.hex contains 8546 bytes
avrdude: reading on-chip flash data:
 
Reading | ################################################## | 100% 3.68s
 
avrdude: verifying ...
avrdude: 8546 bytes of flash verified
 
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
 
avrdude done.  Thank you.
 
root@ubuntu:/home/beep# 
 
root@ubuntu:/home/beep# ino serial -p /dev/ttyUSB0 
Searching for Serial monitor (picocom) ... /usr/bin/picocom
picocom v1.7
 
port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 9600
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
 
Terminal ready
DHTxx Unified Sensor Example
------------------------------------
Temperature
Sensor:       DHT22
Driver Ver:   1
Unique ID:    -1
Max Value:    125.00 *C
Min Value:    -40.00 *C
Resolution:   0.10 *C
------------------------------------
------------------------------------
Humidity
Sensor:       DHT22
Driver Ver:   1
Unique ID:    -1
Max Value:    100.00%
Min Value:    0.00%
Resolution:   0.10%
------------------------------------
Temperature: 12.90 *C
Humidity: 99.90%
 
Thanks for using picocom
root@ubuntu:/home/beep# 


you may have to download some libraries too, for example:
www.arduinolibraries.info/libraries/dht-sensor-library
www.arduinolibraries.info/libraries/adafruit-unified-sensor
Last edit: 6 years 7 months ago by Gonzothegreat.
6 years 7 months ago #19637

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

  • Posts: 2255
  • Thank you received: 223
I have successfully built and uploaded the indiduinoMETEO from the command line. Now deleting the bulky Osx install.... lol
6 years 7 months ago #19638

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

  • Posts: 2255
  • Thank you received: 223
github.com/indilib/indi/blob/master/3rdp...eteoRRD_MaxMinAvg.py

line 34:
i=i++1

should be I believe:
i += 1


as I get:
File "./meteoRRD_MaxMinAvg.py", line 34
    i=i++
        ^
SyntaxError: invalid syntax

But do not get the error message after my change in the code.
6 years 7 months ago #19684

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

  • Posts: 271
  • Thank you received: 72
Yes, that's correct.
I saw it after the last post and googled it.

i++ is not valid in python
i=i++1 is not valid syntax in any programming language

It should be
i += 1

I'm not sure how this happened, but the i=i++1 has been in the code for the last five years, so this part of the code has never worked....
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19687

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

  • Posts: 2255
  • Thank you received: 223
There is one thing that bugs me a lot.... it's the pressure rrd ouput, it sucks. Flat line, you can't see much on it.
I'm going to try to modify it.
6 years 7 months ago #19688

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

  • Posts: 271
  • Thank you received: 72
Hm, not sure what you could cange.

The presure changes very slovly over time. If you have the meteostation up for the full graph time of tree monts, you should se some changes.

One thing is that the presure stays close to 1000. If the graph is 0 - 1100, then flux between 900 and 1100 shows as small variations.

You coul probably google minimum and maximum outside air pressure ever mesured, then adjust the min / max in the graph accordingly.

A graph shoving values from 800 - 1200, would give a more interesting graph. (800 - 1200, or something, just guessing numbers.)
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19689

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

  • Posts: 2255
  • Thank you received: 223
I'd like to see the variation, not an almost flat line. If you Google rrd pressure atmospheric and look at images, some have managed to do what I'm after.
6 years 7 months ago #19690

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

  • Posts: 271
  • Thank you received: 72
So.. i googled it.

1 hPa = 1mbar (think dht22 is mbar)

On this screenshot from the meteostation graphs
raw.githubusercontent.com/magnue/induino...-meteoweb_graphs.png

You can see that 1/3 up on the graph is 1k (1000), so I googled a little.

From en.wikipedia.org/wiki/Atmospheric_pressure (scroll down to Records)

The highest adjusted-to-sea level barometric pressure ever recorded on Earth (above 750 meters) was 1085.7 hPa
and
The lowest non-tornadic atmospheric pressure ever measured was 870 hPa

So if the scale of the graph is 0 - 3000, and the actual variation is 870 - 1085.7, then there is not much variation to see!
The line drawn would never use more than ~7.5% of the height of the graph.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19692

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

  • Posts: 271
  • Thank you received: 72
Code a update to set the graph Y to 850 - 1100, and good to go? :cheer:
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 7 months ago #19693

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

Time to create page: 0.312 seconds