×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Indiduino MeteoStation trouble with TSL2591

  • Posts: 1187
  • Thank you received: 370
Gilles, maybe you take a look at the latest driver developments under Indi-duino. I am working on Weather Radio, a complete re-write driver of Indiduino Meteostation, as part of indi-3rdparty/indi-duino:
  • JSON document exchanges instead of Firmata
  • Calculations of weather functions inside of the INDI driver instead of the Arduino firmware
  • Support for several sensors: DHT11/22, TSL2591, BME280, Davis Anemometer
  • HTML frontend with Bootstrap 4 and Apex charts library
Since it is at an early stage, the documentation is missing. I will try to add it the next days.

For those interested, take a look at my my home weather station .

- Wolfgang
The following user(s) said Thank You: ALESSANDRO PENSATO
4 years 1 month ago #50499

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

  • Posts: 334
  • Thank you received: 23
I taked a look to your code yesterday. It is already compatible if I select Arduino MeteoStation SQM in the INDI panel? I am doing some test with my new code that use TSL237 and seems to work. I am comparing the values against a values that come out from Unihedron
4 years 1 month ago #50501

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

  • Posts: 294
  • Thank you received: 54
That looks great Wolfgang! I will take a look at the code as it seems to do what I intended to implement in a new driver, and more. I assume I could flash my current MeteoStation with the firmware provided by the Weather Radio. May I assume that the word 'Radio' implies that it makes use of an ESP8266 or similar WiFi device?

Thanks,

Gilles
4 years 1 month ago #50502

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

  • Posts: 1187
  • Thank you received: 370
If you are using the weather radio firmware, you need to select the Weather Radio driver. It is not compatible to Arduino MeteoStation SQM.
The following user(s) said Thank You: ALESSANDRO PENSATO
4 years 1 month ago #50503

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

  • Posts: 1187
  • Thank you received: 370
You are right, the intention is to use an ESP8266 or similar. But currently, it is implemented in a classical way using the serial USB connection. But the next version will be one using the HTTP web server of an ESP8266 so that the INDI driver sends an HTTP request and receives a JSON document.

- Wolfgang
The following user(s) said Thank You: Gilles Gagnon
4 years 1 month ago #50504

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

  • Posts: 294
  • Thank you received: 54
Wolgang, I installed/flashed the Weather Radio firmware in my MeteoStation hardware. Great work! I will adopt Weather Radio as my weather information device from now on as its much easier to use than the indiduinoMeteo with which I had connection problems in a distributed INDI environment; most often INDI would connect to the indi_duino driver not as a weather station but as the "simple switcher" driver IIRC, not much useful.

Thanks again.

Gilles
The following user(s) said Thank You: Wolfgang Reissenberger
4 years 1 month ago #50507

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

  • Posts: 334
  • Thank you received: 23
Actually in your project, can I disable Wind stuff and do not get Weather warnings?
4 years 1 month ago #50527

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

  • Posts: 1187
  • Thank you received: 370
Hm, I'm afraid you need to change the code a little bit. Simply comment lines 138-139 and 146-147.
   // addParameter(WEATHER_WIND_GUST, "Wind gust (m/s)", 0, 15, 50);
   //  addParameter(WEATHER_WIND_DIRECTION, "Wind direction (deg)", 0, 360, 10);
    ...
    // setCriticalParameter(WEATHER_WIND_GUST);
    // setCriticalParameter(WEATHER_WIND_SPEED);
4 years 1 month ago #50528

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

  • Posts: 334
  • Thank you received: 23
I am running some test, and in the standard indi-duino meteo, warnings does not have any effect on the image scheduler
4 years 1 month ago #50529

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

  • Posts: 334
  • Thank you received: 23
With your code warnings works properly, but you use the TSL2591 sensor for the SQM, but now I am using the TSL237, and I have to change your arduino code to replace the TSL2591 code
4 years 1 month ago #50530

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

  • Posts: 1187
  • Thank you received: 370
Here I can't help, I have no experience with the TSL237. But you can use the pattern for TSL2591. If you need help, feel free...
The following user(s) said Thank You: ALESSANDRO PENSATO
4 years 1 month ago #50531

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

  • Posts: 334
  • Thank you received: 23
I changed the TSL2591 code with the code for the TSL237, I also changed the SQM formula and the weathercalculator.h because actually I pass directlly the calculated SQM as lux value
4 years 1 month ago #50533

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

Time to create page: 0.671 seconds