logo elektroda
logo elektroda
X
logo elektroda

Integration of AGH meteo station with Domoticz - how to download data?

P.Ryś 2397 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16873222
    P.Ryś
    Level 14  
    Posts: 131
    Rate: 15
    Board Language: polish
    Hello
    I have recently started playing with domoticz. I'm connecting various sensors to it, but since I live near AGH I wanted to use their sensor http://meteo.ftj.agh.edu.pl/meteo/ as a data source. Hence my question: how to "pull" this data into domoticz?
    Thank you in advance for your help.
  • ADVERTISEMENT
  • Helpful post
    #2 16873283
    Sickboy
    Level 12  
    Posts: 105
    Help: 1
    Rate: 18
    Board Language: polish
    Bottom of page:

    Actual data in XML format

    Users wishing to gain direct access to up-to-date figures in an accessible format will find them in a file containing data from the most recent measurement saved in XML format.


    I link

    I don't think there's any easier access....
  • ADVERTISEMENT
  • #3 16882728
    P.Ryś
    Level 14  
    Posts: 131
    Rate: 15
    Board Language: polish
    Yes, I know that. My problem is how to load it into domoticz.
  • #4 16883002
    Sickboy
    Level 12  
    Posts: 105
    Help: 1
    Rate: 18
    Board Language: polish
    Read up on xml parsing.
    You can do this in the Linux shell or even better (and more convenient) in python.
    The easiest way is to write a small program that parses the xml file and then sends json queries to the domoticz api. Either run as a background service or called as a cron.
    You can read about the API at this link .

    You are given everything as if on a tray. Don't ask any more, because more is only possible with a finished script.
ADVERTISEMENT