×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

weather watcher not updating ?

  • Posts: 207
  • Thank you received: 14
Set up weather watcher. I set up a script to create data file which is refreshed every 300seconds: 

[astro] cat ~/.indi/weather-data
dataGMTTime=2021/05/20 17:07:26
temp=10.8
rain=0.0
wind=12.2
gust=24.8
pressure=993.4
humidity=85
forecast= Stormy, much rain

I have configured the data values (eg temp rain etc) in control panel.
When I start EKOS weather station comes up and loads data, However it doesn't seem to refresh the values on the graphic
weather station tab in EKOS unless  I hit the "refresh" button in the indi control panel (the update Period is set to 300seconds)
so is a bit limited. Something missing ?
Thanks.

 
2 years 10 months ago #71451

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

  • Posts: 249
  • Thank you received: 62
the graphic tab doesn't refresh; but the values in the WeatherWatcher driver main tab are regularly updated?
if this is the case I would say is an issue of communication between the driver and the weather tab else it is the driver that fails reading the data from file.

To rule out any data format issue, can you try using the exact format provided in the driver manual (e.g. safe as numeric)?
dataGMTTime=2019/03/16 13:13:40
clouds=-11.430000
temp=27.810000
wind=4
rain=2432
light=0
switch=0
safe=0

If this doesn't help, sending the log file could help to understand the cause.
Ferrante
2 years 10 months ago #71468

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

  • Posts: 207
  • Thank you received: 14
Hi there. I am running kstars 3.5.3 on Linux Mint 19.3. There seems to be a discrepancy between
the "Parameters" you and the manual are suggesting and the ones in control panel.
I have RAIN,TEMP, WIND,GUST,CLOUDS,HUMIDITY,PRESSURE,FORECAST (xml file attached).
Also when I am using my original script I also get a "Weather" parameter in the EKOS Weather tab which does not appear either in the control panel option or inthe xml config file. Also you see "switch, safe and light" do not appear. This is a bit confusing.
I lost my own weather station in storm a couple of years ago so am "borrowing" data from guy who lives at the end of my road who has a cumulus set up online so was hoping that Weather-Watcher would work out.

I'll play around with your suggestions and let you know later.
Thanks
2 years 10 months ago #71495

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

  • Posts: 207
  • Thank you received: 14
Weather-Watcher.xml
[nick .indi]$ cat Weather\ Watcher_config.xml
<INDIDriver>
<newSwitchVector device='Weather Watcher' name='DEBUG'>
  <oneSwitch name='ENABLE'>
      Off
  </oneSwitch>
  <oneSwitch name='DISABLE'>
      On
  </oneSwitch>
</newSwitchVector>
<newNumberVector device='Weather Watcher' name='POLLING_PERIOD'>
  <oneNumber name='PERIOD_MS'>
      1000
  </oneNumber>
</newNumberVector>
<newSwitchVector device='Weather Watcher' name='DEBUG_LEVEL'>
  <oneSwitch name='DBG_ERROR'>
      On
  </oneSwitch>
  <oneSwitch name='DBG_WARNING'>
      On
  </oneSwitch>
  <oneSwitch name='DBG_SESSION'>
      On
  </oneSwitch>
  <oneSwitch name='DBG_DEBUG'>
      Off
  </oneSwitch>
</newSwitchVector>
<newSwitchVector device='Weather Watcher' name='LOGGING_LEVEL'>
  <oneSwitch name='LOG_ERROR'>
      On
  </oneSwitch>
  <oneSwitch name='LOG_WARNING'>
      On
  </oneSwitch>
  <oneSwitch name='LOG_SESSION'>
      On
  </oneSwitch>
  <oneSwitch name='LOG_DEBUG'>
      Off
  </oneSwitch>
</newSwitchVector>
<newSwitchVector device='Weather Watcher' name='LOG_OUTPUT'>
  <oneSwitch name='CLIENT_DEBUG'>
      On
  </oneSwitch>
  <oneSwitch name='FILE_DEBUG'>
      Off
  </oneSwitch>
</newSwitchVector>
<newNumberVector device='Weather Watcher' name='WEATHER_FORECAST'>
  <oneNumber name='MIN_OK'>
      0
  </oneNumber>
  <oneNumber name='MAX_OK'>
      0
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      15
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_WIND_GUST'>
  <oneNumber name='MIN_OK'>
      0
  </oneNumber>
  <oneNumber name='MAX_OK'>
      20
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      15
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_HUMIDITY'>
  <oneNumber name='MIN_OK'>
      0
  </oneNumber>
  <oneNumber name='MAX_OK'>
      100
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      80
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_PRESSURE'>
  <oneNumber name='MIN_OK'>
      983
  </oneNumber>
  <oneNumber name='MAX_OK'>
      1043
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      15
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_RAIN_HOUR'>
  <oneNumber name='MIN_OK'>
      0
  </oneNumber>
  <oneNumber name='MAX_OK'>
      0
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      15
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_TEMPERATURE'>
  <oneNumber name='MIN_OK'>
      -10
  </oneNumber>
  <oneNumber name='MAX_OK'>
      30
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      15
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_WIND_SPEED'>
  <oneNumber name='MIN_OK'>
      0
  </oneNumber>
  <oneNumber name='MAX_OK'>
      20
  </oneNumber>
  <oneNumber name='PERC_WARN'>
      15
  </oneNumber>
</newNumberVector>
<newTextVector device='Weather Watcher' name='ACTIVE_DEVICES'>
  <oneText name='ACTIVE_GPS'>
      GPS Simulator
  </oneText>
</newTextVector>
<newNumberVector device='Weather Watcher' name='GEOGRAPHIC_COORD'>
  <oneNumber name='LAT'>
      53.401944444444445992
  </oneNumber>
  <oneNumber name='LONG'>
      356.87416666666666742
  </oneNumber>
  <oneNumber name='ELEV'>
      10
  </oneNumber>
</newNumberVector>
<newNumberVector device='Weather Watcher' name='WEATHER_UPDATE'>
  <oneNumber name='PERIOD'>
      300
  </oneNumber>
</newNumberVector>
<newTextVector device='Weather Watcher' name='WATCH_SOURCE'>
  <oneText name='URL'>
      /export/home/nick/.indi/weather-data
  </oneText>
</newTextVector>
<newTextVector device='Weather Watcher' name='KEYWORD'>
  <oneText name='RAIN'>
      rain
  </oneText>
  <oneText name='TEMP'>
      temp
  </oneText>
  <oneText name='WIND'>
      wind
  </oneText>
  <oneText name='GUST'>
      gust
  </oneText>
  <oneText name='CLOUDS'>
      clouds
  </oneText>
  <oneText name='HUMIDITY'>
      humidity
  </oneText>
  <oneText name='PRESSURE'>
      pressure
  </oneText>
  <oneText name='FORECAST'>
      forecast
  </oneText>
</newTextVector>
<newTextVector device='Weather Watcher' name='SEPARATOR_KEYWORD'>
  <oneText name='SEPARATOR'>
      =
  </oneText>
</newTextVector>
</INDIDriver>
 
2 years 10 months ago #71496

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

  • Posts: 249
  • Thank you received: 62
you're right, the data I posted (and the man page I wrote) refers to the standard output of the AAG Solo weather station, while on the other hand, Ekos needs the parameters you listed.
The driver is quite flexible though: you can feed in the Ekos parameters any key/value coming from any weather station. For example you can feed 'rain' into 'temperature' (just doesn't make sense).
My suggestion was to put at first numeric value only: no 'forecast= Stormy, much rain' as it could break the parser. 

A further example of this 'flexibility': my weather station doesn't provide forecast values, so I feed in the 'forecast' (ekos side) the 'safe' (0|1) key/value from my weather station and set thresholds accordingly. Thus when the weather is unsafe it triggers obs shutdown.  

I do not know which among all parameters the 'Weather' (in the weather tab) is linked to. It could be 'forecast'.
 
2 years 10 months ago #71497

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

  • Posts: 207
  • Thank you received: 14
Hi - not much progress, I wasn't entirely correct when I said that Weather Watcher doesn't update. It loads the data when it starts
up . This is fine. The update period is set to 300secs. After 300s I do get an update, but after this I get nothing more, just the one update - unless I press the Refresh button in control panel - then it reads the new data and plots it, but I never get an automatic update.
Here is my (revised) data file sample as per you suggestions:

[nick Telescope]$ cat ~/.indi/weather-data
dataGMTTime=2021/05/22 11:55:09
clouds=1
temp=13.3
wind=11.7
rain=0.0
light=0
switch=0
safe=0

Also I note that the timestamp in the data file doesn't seem to get used - the time in the plots is just the one when Weather watcher reads data, not the timestamp value. Not sure what try next ? I turned on the Debug option - but it immediately turned itself off.
Weather Watcher is a great idea as it means I can potentially use any weather station that exports data by whatever means  - I just have to write an interface script to grab it and feed it to Weather Watcher.
Thanks,
2 years 10 months ago #71502

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

  • Posts: 249
  • Thank you received: 62
I just tested weatherwatcher with online data and it works. Please, try the following configuration:
 

The 'file' is: aagsolo.lunatico.es:10800/cgi-bin/cgiLastData  provided by Lunatico itself, data are regularly refreshed.
Then 'set' on both fields, 'save' and restart Kstars.
You should see something like:
 
This should work for you too. Then move step by step to your target configuration.

Btw I see all data in Weather tab too. well, not the chart but the values:
Last edit: 2 years 10 months ago by Ferrante Enriques.
2 years 10 months ago #71505
Attachments:

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

  • Posts: 207
  • Thank you received: 14
Hi there. Hmm 34C ! It's 10C here..... Book me ticket quick.....
Yes that seems to work. I presume "him" should be "hum" looking at your web output.
Maybe it is some sort of file error thing at my end. Is there perhaps an unprintable character somewhere (CR/LF etc) ?
I'll copy some of your data to a file and see what's happening.......
Thanks for helping.
 
2 years 10 months ago #71506

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

  • Posts: 207
  • Thank you received: 14
Ok. I think it is some sort of file problem.

If I use your URL it works fine.
If I use some script to download your data to local file every 60 seconds:

 while true ; do curl -s aagsolo.lunatico.es:10800/cgi-bin/cgiLastData -o cgiLastData; sleep 60; done

and change the File option to point to the full path of the file cgiLastData then same problem as before. I get a straight line
connecting the startup value and the first update then no more updates.
Permissions fine - it is rw rw r ....
Head scratching...............
Will go for break and think about it.
Cheers.
2 years 10 months ago #71510

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

  • Posts: 249
  • Thank you received: 62
weird: just copied and pasted your script, chmod it and it works fine.

But I found another thread where a refresh issue was mentioned:
indilib.org/forum/general/9699-is-weathe...r-working.html#71436

 
2 years 10 months ago #71513

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

Time to create page: 0.854 seconds