×

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: 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 6 months ago #19687

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

  • Posts: 2247
  • 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 6 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 6 months ago #19689

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

  • Posts: 2247
  • 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 6 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 6 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 6 months ago #19693

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

  • Posts: 2247
  • Thank you received: 223

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.
Last edit: 6 years 6 months ago by Gonzothegreat.
6 years 6 months ago #19694
Attachments:

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

  • Posts: 271
  • Thank you received: 72
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?
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 6 months ago #19695

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

  • Posts: 2247
  • Thank you received: 223

I have updated it yes.
Still getting this:
6 years 6 months ago #19696

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

  • Posts: 271
  • Thank you received: 72
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.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
6 years 6 months ago #19697

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

  • Posts: 2247
  • Thank you received: 223
It is a calculated value, not a fixed one.

I do not think the Pressure average is really useful in the current state as it shows: 1.02k
Need to find out how to show for example: 1020 instead of 1.02k
Last edit: 6 years 6 months ago by Gonzothegreat.
6 years 6 months ago #19698

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

  • Posts: 2247
  • Thank you received: 223
OCD alert !!!!!



check out the bottom legend :huh: :ohmy:
6 years 6 months ago #19700
Attachments:

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

Time to create page: 0.349 seconds