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 8 months 1 week ago #23040

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
Hi Kalda. I see there was a typo in my last post. You will need ./startMETEO.sh

So
@reboot yourUserName cd /home/yourUserName/meteostationWEB/ && ./startMETEO.sh

For the issue with the graph. It looks like it has skipped a few datapoints makin the line of the graph open. This results in the bottom half not being filled in.
One fix is to stop meteostationWEB delete everything in meteostationWEB/html/CHART

so
cd /home/yourUserName/meteostationWEB
./stopMETEO.sh
rm -rf html/CHART/*
./startMETEO.sh # Or just reboot, if you have the startup scripts running.

This will clear all charts, and start over on a fresh page. (You will loose the week+ of data you have)

Sorry that I'm slow to help. My MeteoStation has some connection issues, and as it's remote, I cannot really debug....

Waiting on some single cored wires, so I can sodder all sensors to my GeekCreit Arduino Nano v3 from Banggood. (Three of those was cheaper than one Adafruit Trinket PRO bought locally).
Ive printet a new case with the newest versions of the files, and it looks even cleaner than the old one :)
When I get the bugs ironed out, ill install the new one to my obsy.
The following user(s) said Thank You: kalda

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 8 months 3 days ago #23301

  • kalda
  • kalda's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Karma: 1
  • Thank you received: 4
Hi Magnus,
thanks, I'm also busy.

One fix is to stop meteostationWEB delete everything in meteostationWEB/html/CHART

I deleted everything in the CHART directory. Without changes. I tried deleting the Meteostaion directory and copying everything from github again. Still poorly draws a graph.

The top 3 lights do not work (Clouds Drawing Freezing). Now there is no light and it glows before.

I will try a new clean install on Raspberry Pi 3.


Sorry that I'm slow to help. My MeteoStation has some connection issues, and as it's remote, I cannot really debug....

My first version was also built with Adafruit Trinket PRO. Sometimes Adafruit Trinket PRO did not communicate with Raspberry Pi. Sometimes he lost communication. I did not know the problem. I exchanged it for Arduino Nano v3 and communicates with RPi perfectly.

I'm printing a new case too. Good work with case adjustment. Free space is always good.

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

Building the induino MeteoStation with 3d printed housing 7 months 4 weeks ago #23423

  • kalda
  • kalda's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Karma: 1
  • Thank you received: 4

kalda wrote:

Gonzothegreat wrote: >the cloud chart rendering has changed

I also get this on restart of the scripts, it does come back to normal after a few hours. Do not worry.


He draws a poor graph for almost 1 week. :-(


Hey, guys.

I've solved the problem with a bad cloud chart. The problem was when you loaded the firmware into Arduino Nano. Arduino IDE did not report an error, but it did not work properly.
From another PC I uploaded the firmware and it works! :)

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

Building the induino MeteoStation with 3d printed housing 7 months 1 week ago #23928

  • kalda
  • kalda's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Karma: 1
  • Thank you received: 4
Hello gentlemen.

I installed Raspbian on RPi Zero from deb packages ( indilib.org/download/raspberry-pi.html ) I did not compile as in previous cases. Zero is very slow when compiling :(

It writes this error:


./startMETEO.sh
RRD file exists.
indiserver: žádný proces nenalezen
2018-03-07T12:12:34: startup: indiserver -f /tmp/INDIFIFO -p 7624
2018-03-07T12:12:34: Driver indi_duino: Indiduino driver start...
2018-03-07T12:12:34: Driver indi_duino: Building from /usr/share/indi/meteostation_sk.xml skeleton
2018-03-07T12:12:34: Driver indi_duino: Using INDISKEL /usr/share/indi/meteostation_sk.xml
Starting GRAPHER
Starting internet data downloader
Retriving SKEW-T diagrams from: 11747
2018 03 0700
Starting MinMax



Starting UPDATER
2018-03-07T12:12:37: Driver indi_duino: State 0 is on
2018-03-07T12:12:37: Driver indi_duino: State 1 is off
CONNECT INDI Server host:localhost port:7624 device:MeteoStation
2018-03-07T12:12:40: Driver indi_duino: ARDUINO BOARD CONNECTED.
2018-03-07T12:12:40: Driver indi_duino: FIRMATA VERSION:indiduinoMETEO.ino-2.5
2018-03-07T12:12:40: Driver indi_duino: Unable to build skeleton. Error loading file o: No such file or directory
2018-03-07T12:12:40: Driver indi_duino: FAIL TO MAP ARDUINO PINS. CHECK SKELETON FILE SINTAX
Generating 3 hours graph
Generating day graph
Generating weekly graph

Thanks for the help. ;)

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

Last Edit: by kalda.

Building the induino MeteoStation with 3d printed housing 7 months 1 week ago #23930

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
issue command
locate meteostation_sk.xml
Im thinking it might be in
/usr/local/share/indi

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 7 months 1 week ago #23932

  • kalda
  • kalda's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Karma: 1
  • Thank you received: 4

locate meteostation_sk.xml

The command will not write anything.

I found the file in
/usr/share/indi
.
pi@raspberrypi:/usr/share/indi $ ls -l
celkem 184
-rw-r--r-- 1 root root  2147 kvě 31  2016 cosmos_sk.xml
-rw-r--r-- 1 root root  1799 kvě 31  2016 digital_inputs_sk.xml
-rw-r--r-- 1 root root 14968 lis  7 12:30 drivers.xml
-rw-r--r-- 1 root root  3020 kvě 31  2016 focuser_sk.xml
-rw-r--r-- 1 root root 12103 zář 10  2015 indi_aagcloudwatcher_sk.xml
-rw-r--r-- 1 root root   281 zář 10  2015 indi_aagcloudwatcher.xml
-rw-r--r-- 1 root root  2995 kvě 31  2016 indi_align_sk.xml
-rw-r--r-- 1 root root   250 úno 28  2014 indi_apogee.xml
-rw-r--r-- 1 root root   471 lis 21 21:00 indi_asi.xml
-rw-r--r-- 1 root root   423 říj 22 18:37 indi_atik.xml
-rw-r--r-- 1 root root   281 lis 14 11:00 indi_dsi.xml
-rw-r--r-- 1 root root  1812 kvě 31  2016 indi_duino.xml
-rw-r--r-- 1 root root  2773 kvě 31  2016 indi_eqmod_scope_limits_sk.xml
-rw-r--r-- 1 root root  2682 kvě 31  2016 indi_eqmod_simulator_sk.xml
-rw-r--r-- 1 root root 11453 kvě 31  2016 indi_eqmod_sk.xml
-rw-r--r-- 1 root root   256 kvě 31  2016 indi_eqmod.xml
-rw-r--r-- 1 root root   263 pro  8  2014 indi_ffmv.xml
-rw-r--r-- 1 root root   242 pro 26  2013 indi_fishcamp.xml
-rw-r--r-- 1 root root   604 dub  8  2011 indi_fli.xml
-rw-r--r-- 1 root root   599 lis 14 11:00 indi_gphoto.xml
-rw-r--r-- 1 root root   221 lis 14 11:00 indi_gpsd.xml
-rw-r--r-- 1 root root   250 pro 16  2015 indi_maxdomeii.xml
-rw-r--r-- 1 root root   242 zář 13 01:01 indi_nexdome.xml
-rw-r--r-- 1 root root   246 srp 24  2017 indi_qhy.xml
-rw-r--r-- 1 root root   255 lis 15 14:30 indi_qsi.xml
-rw-r--r-- 1 root root   361 led  7  2016 indi_sbig.xml
-rw-r--r-- 1 root root   270 čen  7  2016 indi_shoestring.xml
-rw-r--r-- 1 root root   637 led  6  2014 indi_sx.xml
-rw-r--r-- 1 root root  1385 lis  7 12:30 indi_tcfs_sk.xml
-rw-r--r-- 1 root root   253 pro  3  2016 indi_usbfocus.xml
-rw-r--r-- 1 root root  4867 kvě 31  2016 meteostation_sk.xml
-rw-r--r-- 1 root root  4341 kvě 31  2016 servo_sk.xml
-rw-r--r-- 1 root root  4418 kvě 31  2016 simple_switcher_sk.xml
-rw-r--r-- 1 root root  1621 kvě 31  2016 stepper_sk.xml
-rw-r--r-- 1 root root  2571 kvě 31  2016 switcher_sk.xml
-rw-r--r-- 1 root root  2131 kvě 31  2016 various_sk.xml

meteoconfig.py is set to:
#2). Indi startup
INDIFIFODIR="/tmp/INDIFIFO"
METEOSTATIONSKELETONDIR="/usr/share/indi/meteostation_sk.xml"
KILLEXEC="killall indiserver"
INDIEXEC="indiserver$INDIVERBOSE -f $INDIFIFODIR -p"
DUINOEXEC="echo start indi_duino -n \\\"$INDIDEVICE\\\" -s \\\"$METEOSTATIONSKELETONDIR\\\" > $INDIFIFODIR"

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

Building the induino MeteoStation with 3d printed housing 7 months 1 week ago #23933

  • kalda
  • kalda's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Karma: 1
  • Thank you received: 4
I've updated my database and locate works.
pi@raspberrypi:~/meteostationWEB $ locate meteostation_sk.xml
/home/pi/indi/3rdparty/indi-duino/devices/meteostation_sk.xml
/usr/share/indi/meteostation_sk.xml

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

Building the induino MeteoStation with 3d printed housing 7 months 1 week ago #23934

  • kalda
  • kalda's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Karma: 1
  • Thank you received: 4
I did the compilation of
indilib
and
inddi-duino
on Raspberry Zero W and it works.

When using packages, it does not work. Why? I do not know.

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

Building the induino MeteoStation with 3d printed housing 7 months 5 hours ago #24263

Hi,

I have some connecting problems with the MeteoStation. I used the same parts and code as described in the tutorial (Trinket Pro 3V, DHT22, Melexis, etc). I am using a MPL3115A2 Barometric Sensor and the Adafruit_MPL3115A2.h library instead of the BMP085. I did not change the Analog Pin Mapping or any other digital or analog pin. I can connect to the MeteoStation but the sensors showing me some weird results. Sometimes the Metro-Tab is showing the correct numbers but some Sensors on the Raw-Tab are showing 0 or -273. Sometimes the Raw tab is showing the correct Numbers but the Meteo-Tab is showing 0. Sometimes the cloud Sensor shows 100 but the cloudy Flag is not highlighted. It seems to be completely random. Sometimes I have to connect and disconnect sereveral times to get all the sensors running. I changed the FTDI Cable and I tried it with a Arduino Nano. Same result.

I attached some Pictures of the Indi Log and Indi configuration.

Thank you for your help!

Florian
Attachments:

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

Last Edit: by Florian.

Building the induino MeteoStation with 3d printed housing 6 months 4 weeks ago #24302

  • Magnus_e
  • Magnus_e's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 254
  • Karma: 4
  • Thank you received: 61
Hi Florian.

It seams to me that the firmware chrashes.

It might be that the code for reading the barometric sensor does not work with MPL3115A2, or possibly wiring / connection issues.

I would suggest using the meteoTEST firmware untill everything is up to code.
The test firmware will fail in a spesific point in the code, making it easyer to debug.

If you get the test firmware up and running without errors, then try to squeeze / pull on the soddered and other connection points, to se if you can make it crash from communication error.
The following user(s) said Thank You: Florian

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 6 months 3 weeks ago #24368

Hi Magnus,

Thanks for your help!

The MPL3115A2 is the culprit. If I start the Meteostation without the MPL everyting works fine. If Istart it with the MPL I get weird sensor readings.
This is really strange because when I run MeteoTest I get correct values for the MPL.

Anyway, I ordered a BMP180.

best regards

Florian

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

Building the induino MeteoStation with 3d printed housing 5 months 2 days ago #26021

Hello Magnus,

Not sure exactly what's going on there, the weatherstation has been working flawlessly until the 26th of April. I think the oDroid crashed and got rebooted.
Now, I can't get anything out of the meteobox. Would you have any idea from the below info?

heidenrod@heidenrod-obs:~/meteostationWEB$ indiserver_weather: no process found
2018-05-15T19:18:09: startup: indiserver_weather -f /tmp/indi_weatherFIFO -p 7625
2018-05-15T19:18:09: Driver indi_duino: Indiduino driver start...
2018-05-15T19:18:09: Driver indi_duino: Building from /usr/share/indi/meteostation_sk.xml skeleton
2018-05-15T19:18:09: Driver indi_duino: Using INDISKEL /usr/share/indi/meteostation_sk.xml
Starting GRAPHER
Starting MinMax



Starting internet data downloader
Retriving SKEW-T diagrams from: 10548
2018 05 1512
Starting UPDATER
CONNECT INDI Server host:localhost port:7625 device:MeteoStation
2018-05-15T19:18:09: Driver indi_duino: State 0 is on
2018-05-15T19:18:09: Driver indi_duino: State 1 is off
2018-05-15T19:18:09: Driver indi_duino: ARDUINO BOARD CONNECTED.
2018-05-15T19:18:09: Driver indi_duino: FIRMATA VERSION:h??????x
2018-05-15T19:18:09: Driver indi_duino: Setting pins behaviour from <indiduino> tags
2018-05-15T19:18:09: Driver indi_duino: Meteo.T pin 24 set as ANALOG INPUT
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1073, in run
self.function(*self.args, **self.kwargs)
File "/home/heidenrod/meteostationWEB/indiclient.py", line 2135, in _receiver
self._receive()
File "/home/heidenrod/meteostationWEB/indiclient.py", line 2460, in _receive
self.expat.Parse( self.data,0)
ExpatError: not well-formed (invalid token): line 129, column 151

2018-05-15T19:18:09: Driver indi_duino: numiopin:0
2018-05-15T19:18:09: Driver indi_duino: Meteo.HR pin 18 set as ANALOG INPUT
2018-05-15T19:18:09: Driver indi_duino: numiopin:1
2018-05-15T19:18:09: Driver indi_duino: Meteo.P pin 16 set as ANALOG INPUT
2018-05-15T19:18:09: Driver indi_duino: numiopin:2
2018-05-15T19:18:09: Driver indi_duino: Meteo.DEW pin 20 set as ANALOG INPUT
2018-05-15T19:18:09: Driver indi_duino: numiopin:3
2018-05-15T19:18:09: Driver indi_duino: Meteo.clouds pin 22 set as ANALOG INPUT
2018-05-15T19:18:09: Driver indi_duino: numiopin:4
2018-05-15T19:18:09: Driver indi_duino: Meteo.SkyT pin 23 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:5
2018-05-15T19:18:10: Driver indi_duino: Meteo.Irradiance pin 21 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:6
2018-05-15T19:18:10: Driver indi_duino: STATUS.clouds pin 3 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:7
2018-05-15T19:18:10: Driver indi_duino: STATUS.dew pin 4 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:8
2018-05-15T19:18:10: Driver indi_duino: STATUS.frezzing pin 5 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:9
2018-05-15T19:18:10: Driver indi_duino: STATUS.daylight pin 6 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:10
2018-05-15T19:18:10: Driver indi_duino: BACK_LIGHT.ON pin 13 set as DIGITAL OUTPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:11
2018-05-15T19:18:10: Driver indi_duino: IR.IR pin 14 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:12
2018-05-15T19:18:10: Driver indi_duino: IR.T pin 15 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:13
2018-05-15T19:18:10: Driver indi_duino: Presure.P pin 16 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:14
2018-05-15T19:18:10: Driver indi_duino: Presure.T pin 17 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:15
2018-05-15T19:18:10: Driver indi_duino: HR.HR pin 18 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:16
2018-05-15T19:18:10: Driver indi_duino: HR.T pin 19 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:17
2018-05-15T19:18:10: Driver indi_duino: LIGHT.LIGHT pin 21 set as ANALOG INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:18
2018-05-15T19:18:10: Driver indi_duino: FAIL.IR pin 7 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:19
2018-05-15T19:18:10: Driver indi_duino: FAIL.HR pin 8 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:20
2018-05-15T19:18:10: Driver indi_duino: FAIL.P pin 9 set as DIGITAL INPUT
2018-05-15T19:18:10: Driver indi_duino: numiopin:21
Generating 3 hours graph
Generating day graph
Generating weekly graph
Generating monthly graph
2018-05-15T19:18:14: Client 5: read: Connection reset by peer
2018-05-15T19:18:15: Client 5: read: Connection reset by peer

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 / QHY5 / Atik 314L+
Time to create page: 0.368 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