Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...

TOPIC: Building the induino MeteoStation with 3d printed housing

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19638

I have successfully built and uploaded the indiduinoMETEO from the command line. Now deleting the bulky Osx install.... lol

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19684

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.

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19687

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
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....

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

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19688

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.

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19689

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
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.)

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

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19690

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.

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19692

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
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.

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

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19693

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
Code a update to set the graph Y to 850 - 1100, and good to go? :cheer:

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

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19694

Magnus_e wrote: Code a update to set the graph Y to 850 - 1100, and good to go? :cheer:


which file have you modified? The meteoRRD_graph.py ?
ret = rrdtool.graph( CHARTPATH+"pressure"+str(time)+".png","-A","--start","-"+str(time)+"h","-E",
          preamble,
         "--title","Pressure",
         "--vertical-label=mBars",
         "-u","1100",
         "-l","850",
         "-r",
         "DEF:P=meteo.rrd:P:AVERAGE",
         "HRULE:"+str(P0)+"#"+red+"AA:standard",
         "LINE1:P#"+blue+":P\\r",
         "COMMENT:\\n",
         "GPRINT:P:AVERAGE:Avg P\: %6.2lf %S\\r")


edit:
getting there



edit 2:
changed
"COMMENT:\\n",
         "GPRINT:P:AVERAGE:Avg P\: %6.2lf %S\\r")

to
"COMMENT:\\n",)
to remove the average line.
Attachments:

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+
Last Edit: by Gonzothegreat.

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19695

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
Looks like you are getting closer.

I have not modified any of it. In meteostationWEB, I have only modified meteoconfig.py, and [stop,start]METEO.sh
Have you tried changing the i=i++1 to i += 1? and if so, then no MinMax fail?

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

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19696

Magnus_e wrote: Have you tried changing the i=i++1 to i += 1? and if so, then no MinMax fail?


I have updated it yes.
Still getting this:

MinMax FAIL

MinMax FAIL

MinMax FAIL
Generating 3 hours graph
Generating day graph

MinMax FAIL

MinMax FAIL

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

Building the induino MeteoStation with 3d printed housing 10 months 4 weeks ago #19697

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
That's a bummer!
It should be changed anyways, as i=++1 is no good, but do not know what it does.

In the pressure graph you removed the average line.
Is this a calculated line, that will change over time, or just a fixed value?

If you look at the graph over a week, could it be usefull to see the average?
If the weather is unstable with many local pressure variations, it could be nice to see if the average is high or low?
Just asking as I don't know a lot about meteorology.

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

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
Time to create page: 0.157 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica