×

INDI Library v1.9.1 Released (26 Jun 2021)

Bi-monthly INDI Library v1.9.1 is released bringing a few new drivers and improvements to existing drivers.

Weather safety proxy crashes

  • Posts: 238
  • Thank you received: 15
Hi!

Weather safety proxy crashes and have done so consistently for the past few months. I have used it previously (a year ago) without problems with this script (modified for for simplicity):
#!/usr/bin/python3
import json
from datetime import datetime
 
now=datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S%z")
clear=1
 
if clear==0:
    msg="Cloudy"
elif clear==1:
    msg="Sky is clear"
else:
    msg="Something odd is going on..."
    clear=0
 
print(json.dumps({"timestamp_utc": now,"roof_status": {"open_ok": clear,"reasons": msg}}))

Which for example outputs:
{"timestamp_utc": "2021-03-05T14:44:18", "roof_status": {"open_ok": 1, "reasons": "Sky is clear"}}

Some lines from the log file:
2021-03-05T15:19:41.089 CET INFO ][ org.kde.kstars] - Welcome to KStars 3.5.1 Stable
[2021-03-05T15:19:41.089 CET INFO ][ org.kde.kstars] - Build: 2021-01-08T07:17:10Z
[2021-03-05T15:19:41.089 CET INFO ][ org.kde.kstars] - OS: "ubuntu"
[2021-03-05T15:19:41.089 CET INFO ][ org.kde.kstars] - API: "arm64-little_endian-lp64"
[2021-03-05T15:19:41.089 CET INFO ][ org.kde.kstars] - Arch: "arm64"
[2021-03-05T15:19:41.090 CET INFO ][ org.kde.kstars] - Kernel Type: "linux"
[2021-03-05T15:19:41.090 CET INFO ][ org.kde.kstars] - Kernel Version: "5.4.0-1029-raspi"
[2021-03-05T15:19:41.090 CET INFO ][ org.kde.kstars] - Qt Version: 5.12.8
[2021-03-05T15:19:41.106 CET INFO ][ org.kde.kstars] - KStars is started in paused state.
....
[2021-03-05T15:39:07.894 CET DEBG ][ org.kde.kstars.indi] - Weather Safety Proxy : "[DEBUG] Run script: /home/pi/weather_status.py "
[2021-03-05T15:39:08.024 CET DEBG ][ org.kde.kstars.indi] - INDI Server: "2021-03-05T14:39:08: Driver indi_weather_safety_proxy: indi_weather_safety_proxy: /build/libindi-qjlGNS/libindi-1.8.8~202101080642~ubuntu20.04.1/drivers/weather/gason.h:56: JsonValue::JsonValue(JsonTag, void*): Assertion `(uint64_t)(uintptr_t)payload <= JSON_VALUE_PAYLOAD_MASK' failed."
[2021-03-05T15:39:08.024 CET DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2021-03-05T15:39:08.025 CET DEBG ][ org.kde.kstars.indi] - Weather Safety Proxy : "[DEBUG] Read 99 bytes output [{\"timestamp_utc\": \"2021-03-05T14:39:08\", \"roof_status\": {\"open_ok\": 1, \"reasons\": \"Sky is clear\"}}] "
[2021-03-05T15:39:08.783 CET DEBG ][ org.kde.kstars.indi] - INDI Server: "2021-03-05T14:39:08: Driver indi_weather_safety_proxy: stderr EOF"
[2021-03-05T15:39:08.783 CET DEBG ][ org.kde.kstars.indi] - INDI Server: "<delProperty device=\"Weather Safety Proxy\"/>"
[2021-03-05T15:39:08.783 CET DEBG ][ org.kde.kstars.indi] - Removing device "Weather Safety Proxy"
[2021-03-05T15:39:08.784 CET DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2021-03-05T15:39:08.805 CET DEBG ][ org.kde.kstars.indi] - INDIListener: Removing device "Weather Safety Proxy"
[2021-03-05T15:39:08.805 CET INFO ][ org.kde.kstars.ekos] - "Weather Safety Proxy is offline."
[2021-03-05T15:39:08.807 CET DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 50465 died"
[2021-03-05T15:39:08.807 CET DEBG ][ org.kde.kstars.indi] - INDI Server: "2021-03-05T14:39:08: Driver indi_weather_safety_proxy: Terminated after #0 restarts."
[2021-03-05T15:39:08.808 CET DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2021-03-05T15:39:08.808 CET CRIT ][ org.kde.kstars.indi] - INDI driver "indi_weather_safety_proxy" crashed!

Hope someone can help!

Best Regards,
Søren
4 months 3 weeks ago #68208

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

Time to create page: 0.303 seconds