Notdienst Apotheke via jsonmod

Begonnen von binford6000, 27 März 2023, 14:10:27

Vorheriges Thema - Nächstes Thema

Sailor

#120
Moin tosammen

Anbei ein paar Verbesserungen zu dem obigen Beispiel - Noch mehr Readings und was fürs Auge:

Code geloescht

Gruss
    Sailor
******************************
Man wird immer besser...

300P

#121
@Sailor

Anfängefrage:  :o

Hab den obigen Code kopiert und so in meinem FHEM definiert. (PLZ geändert)
Muss noch was anderes hinzu (wie im Faden auf den Seiten da was steht) oder reicht allein dies inzwischen ?

Mit get .... token kommt auch nach 10 Minuten nix bei mir  :-[

EDIT:
Lösung war 1 mal den Notdienst per Hand aufgerufen und "Akzeptieren" geklickt.... jetzt hab ich schon mal den Token. 🤓

Und nach 10 Minuten dann auch die ersten Readings....😝

Dankeschön dafür !!!🤩😊

Gruß
300P

FHEM 6.4|RPi|SMAEM|SMAInverter|SolarForecast| DbLog|DbRep|MariaDB|Buderus-MQTT_EMS|
Fritzbox|fhempy|JsonMod|HTTPMOD|Modbus ser+TCP| ESP32_AI_on_the_Edge|ESP32CAM usw.

caldir65

Moinsen,

ich habe es jetzt noch einmal gelöscht und mit den Ergänzungen von @Sailor neu angelegt, PLZORT angepasst und get data-token ausgeführt, und wenige Augenblicke später hatte ich Daten.
Super, vielen Dank.

Gruß
Christoph
Alte Techniker-Regel: "kaum macht man es richtig, funktioniert es auch"
------
Dell Wyse5070 ThinClient 16GBRam, 128GB SSD, Lubuntu 24.04.04LTS, fhem (aktuell), debmatic, Homematic-Devs, ConBee III und deConz, viele Shellys, Rademacher, NextCloud-Anbindung, FullyKioskBrowser+FUIP uvm.

Sailor

#123
Moin tosammen

Habe jetzt alle verfügbaren Datenfelder extrahiert und auf 9 Apotheken erweitert.

Um die Abwaertskompatibilitaet zu dem alten Modul zu erhalten, sind die Readings jetzt auf English.

Gruss
    Sailor

define NotApotheke HTTPMOD none 0
setuuid NotApotheke 6a75bcf1-f33f-a365-9870-6f6353bfcbac039d
attr NotApotheke DbLogExclude .*
attr NotApotheke enableCookies 1
attr NotApotheke event-on-change-reading .*
attr NotApotheke event-on-update-reading .*
attr NotApotheke get1FollowGet data
attr NotApotheke get1Header01 User-Agent: Mozilla/5.0 (X11;; Linux x86_64;; rv:128.0) Gecko/20100101 Firefox/128.0
attr NotApotheke get1Header02 Referer: https://www.aponet.de/notdienstsuche
attr NotApotheke get1Header03 Host: www.aponet.de
attr NotApotheke get1Header04 DNT: 1
attr NotApotheke get1Name data-token
attr NotApotheke get1RegOpt g
attr NotApotheke get1Regex data-token=\"(.+?)\"
attr NotApotheke get1URL https://www.aponet.de/notdienstsuche
attr NotApotheke get2CheckAllReadings 1
attr NotApotheke get2Data tx_aponetpharmacy_search[action]=result&tx_aponetpharmacy_search[controller]=Search&tx_aponetpharmacy_search[search][plzort]=21720&tx_aponetpharmacy_search[search][date]=&tx_aponetpharmacy_search[search][street]=+&tx_aponetpharmacy_search[search][radius]=10&tx_aponetpharmacy_search[search][lat]=&tx_aponetpharmacy_search[search][lng]=
attr NotApotheke get2Header01 User-Agent: Mozilla/5.0 (X11;; Linux x86_64;; rv:128.0) Gecko/20100101 Firefox/128.0
attr NotApotheke get2Header02 Referer: https://www.aponet.de/notdienstsuche
attr NotApotheke get2Header03 Host: www.aponet.de
attr NotApotheke get2Header04 DNT: 1
attr NotApotheke get2Header05 x-pharmacy-token: %%token%%
attr NotApotheke get2Header06 Content-Type: application/x-www-form-urlencoded;;charset=UTF-8
attr NotApotheke get2Name data
attr NotApotheke get2URL https://www.aponet.de/notdienstsuche?type=1981
attr NotApotheke icon apotheke

attr NotApotheke reading101JSON results_apotheken_apotheke_01_distanz
attr NotApotheke reading101Name 01_distance
attr NotApotheke reading102JSON results_apotheken_apotheke_01_name
attr NotApotheke reading102Name 01_name
attr NotApotheke reading103JSON results_apotheken_apotheke_01_id
attr NotApotheke reading103Name 01_id
attr NotApotheke reading104JSON results_apotheken_apotheke_01_kammer
attr NotApotheke reading104Name 01_board
attr NotApotheke reading105JSON results_apotheken_apotheke_01_apo_id
attr NotApotheke reading105Name 01_apo_id
attr NotApotheke reading106JSON results_apotheken_apotheke_01_strasse
attr NotApotheke reading106Name 01_street
attr NotApotheke reading107JSON results_apotheken_apotheke_01_plz
attr NotApotheke reading107Name 01_zip
attr NotApotheke reading108JSON results_apotheken_apotheke_01_ort
attr NotApotheke reading108Name 01_city
attr NotApotheke reading109JSON results_apotheken_apotheke_01_telefon
attr NotApotheke reading109Name 01_tel
attr NotApotheke reading110JSON results_apotheken_apotheke_01_email
attr NotApotheke reading110Name 01_email
attr NotApotheke reading111JSON results_apotheken_apotheke_01_fax
attr NotApotheke reading111Name 01_fax
attr NotApotheke reading112JSON results_apotheken_apotheke_01_startdatum
attr NotApotheke reading112Name 01_startdate
attr NotApotheke reading113JSON results_apotheken_apotheke_01_startzeit
attr NotApotheke reading113Name 01_starttime
attr NotApotheke reading114JSON results_apotheken_apotheke_01_enddatum
attr NotApotheke reading114Name 01_enddate
attr NotApotheke reading115JSON results_apotheken_apotheke_01_endzeit
attr NotApotheke reading115Name 01_endtime
attr NotApotheke reading116JSON results_apotheken_apotheke_01_latitude
attr NotApotheke reading116Name 01_latitude
attr NotApotheke reading117JSON results_apotheken_apotheke_01_longitude
attr NotApotheke reading117Name 01_longitude

attr NotApotheke reading201JSON results_apotheken_apotheke_02_distanz
attr NotApotheke reading201Name 02_distance
attr NotApotheke reading202JSON results_apotheken_apotheke_02_name
attr NotApotheke reading202Name 02_name
attr NotApotheke reading203JSON results_apotheken_apotheke_02_id
attr NotApotheke reading203Name 02_id
attr NotApotheke reading204JSON results_apotheken_apotheke_02_kammer
attr NotApotheke reading204Name 02_board
attr NotApotheke reading205JSON results_apotheken_apotheke_02_apo_id
attr NotApotheke reading205Name 02_apo_id
attr NotApotheke reading206JSON results_apotheken_apotheke_02_strasse
attr NotApotheke reading206Name 02_street
attr NotApotheke reading207JSON results_apotheken_apotheke_02_plz
attr NotApotheke reading207Name 02_zip
attr NotApotheke reading208JSON results_apotheken_apotheke_02_ort
attr NotApotheke reading208Name 02_city
attr NotApotheke reading209JSON results_apotheken_apotheke_02_telefon
attr NotApotheke reading209Name 02_tel
attr NotApotheke reading210JSON results_apotheken_apotheke_02_email
attr NotApotheke reading210Name 02_email
attr NotApotheke reading211JSON results_apotheken_apotheke_02_fax
attr NotApotheke reading211Name 02_fax
attr NotApotheke reading212JSON results_apotheken_apotheke_02_startdatum
attr NotApotheke reading212Name 02_startdate
attr NotApotheke reading213JSON results_apotheken_apotheke_02_startzeit
attr NotApotheke reading213Name 02_starttime
attr NotApotheke reading214JSON results_apotheken_apotheke_02_enddatum
attr NotApotheke reading214Name 02_enddate
attr NotApotheke reading215JSON results_apotheken_apotheke_02_endzeit
attr NotApotheke reading215Name 02_endtime
attr NotApotheke reading216JSON results_apotheken_apotheke_02_latitude
attr NotApotheke reading216Name 02_latitude
attr NotApotheke reading217JSON results_apotheken_apotheke_02_longitude
attr NotApotheke reading217Name 02_longitude

attr NotApotheke reading301JSON results_apotheken_apotheke_03_distanz
attr NotApotheke reading301Name 03_distance
attr NotApotheke reading302JSON results_apotheken_apotheke_03_name
attr NotApotheke reading302Name 03_name
attr NotApotheke reading303JSON results_apotheken_apotheke_03_id
attr NotApotheke reading303Name 03_id
attr NotApotheke reading304JSON results_apotheken_apotheke_03_kammer
attr NotApotheke reading304Name 03_board
attr NotApotheke reading305JSON results_apotheken_apotheke_03_apo_id
attr NotApotheke reading305Name 03_apo_id
attr NotApotheke reading306JSON results_apotheken_apotheke_03_strasse
attr NotApotheke reading306Name 03_street
attr NotApotheke reading307JSON results_apotheken_apotheke_03_plz
attr NotApotheke reading307Name 03_zip
attr NotApotheke reading308JSON results_apotheken_apotheke_03_ort
attr NotApotheke reading308Name 03_city
attr NotApotheke reading309JSON results_apotheken_apotheke_03_telefon
attr NotApotheke reading309Name 03_tel
attr NotApotheke reading310JSON results_apotheken_apotheke_03_email
attr NotApotheke reading310Name 03_email
attr NotApotheke reading311JSON results_apotheken_apotheke_03_fax
attr NotApotheke reading311Name 03_fax
attr NotApotheke reading312JSON results_apotheken_apotheke_03_startdatum
attr NotApotheke reading312Name 03_startdate
attr NotApotheke reading313JSON results_apotheken_apotheke_03_startzeit
attr NotApotheke reading313Name 03_starttime
attr NotApotheke reading314JSON results_apotheken_apotheke_03_enddatum
attr NotApotheke reading314Name 03_enddate
attr NotApotheke reading315JSON results_apotheken_apotheke_03_endzeit
attr NotApotheke reading315Name 03_endtime
attr NotApotheke reading316JSON results_apotheken_apotheke_03_latitude
attr NotApotheke reading316Name 03_latitude
attr NotApotheke reading317JSON results_apotheken_apotheke_03_longitude
attr NotApotheke reading317Name 03_longitude

attr NotApotheke reading401JSON results_apotheken_apotheke_04_distanz
attr NotApotheke reading401Name 04_distance
attr NotApotheke reading402JSON results_apotheken_apotheke_04_name
attr NotApotheke reading402Name 04_name
attr NotApotheke reading403JSON results_apotheken_apotheke_04_id
attr NotApotheke reading403Name 04_id
attr NotApotheke reading404JSON results_apotheken_apotheke_04_kammer
attr NotApotheke reading404Name 04_board
attr NotApotheke reading405JSON results_apotheken_apotheke_04_apo_id
attr NotApotheke reading405Name 04_apo_id
attr NotApotheke reading406JSON results_apotheken_apotheke_04_strasse
attr NotApotheke reading406Name 04_street
attr NotApotheke reading407JSON results_apotheken_apotheke_04_plz
attr NotApotheke reading407Name 04_zip
attr NotApotheke reading408JSON results_apotheken_apotheke_04_ort
attr NotApotheke reading408Name 04_city
attr NotApotheke reading409JSON results_apotheken_apotheke_04_telefon
attr NotApotheke reading409Name 04_tel
attr NotApotheke reading410JSON results_apotheken_apotheke_04_email
attr NotApotheke reading410Name 04_email
attr NotApotheke reading411JSON results_apotheken_apotheke_04_fax
attr NotApotheke reading411Name 04_fax
attr NotApotheke reading412JSON results_apotheken_apotheke_04_startdatum
attr NotApotheke reading412Name 04_startdate
attr NotApotheke reading413JSON results_apotheken_apotheke_04_startzeit
attr NotApotheke reading413Name 04_starttime
attr NotApotheke reading414JSON results_apotheken_apotheke_04_enddatum
attr NotApotheke reading414Name 04_enddate
attr NotApotheke reading415JSON results_apotheken_apotheke_04_endzeit
attr NotApotheke reading415Name 04_endtime
attr NotApotheke reading416JSON results_apotheken_apotheke_04_latitude
attr NotApotheke reading416Name 04_latitude
attr NotApotheke reading417JSON results_apotheken_apotheke_04_longitude
attr NotApotheke reading417Name 04_longitude

attr NotApotheke reading501JSON results_apotheken_apotheke_05_distanz
attr NotApotheke reading501Name 05_distance
attr NotApotheke reading502JSON results_apotheken_apotheke_05_name
attr NotApotheke reading502Name 05_name
attr NotApotheke reading503JSON results_apotheken_apotheke_05_id
attr NotApotheke reading503Name 05_id
attr NotApotheke reading504JSON results_apotheken_apotheke_05_kammer
attr NotApotheke reading504Name 05_board
attr NotApotheke reading505JSON results_apotheken_apotheke_05_apo_id
attr NotApotheke reading505Name 05_apo_id
attr NotApotheke reading506JSON results_apotheken_apotheke_05_strasse
attr NotApotheke reading506Name 05_street
attr NotApotheke reading507JSON results_apotheken_apotheke_05_plz
attr NotApotheke reading507Name 05_zip
attr NotApotheke reading508JSON results_apotheken_apotheke_05_ort
attr NotApotheke reading508Name 05_city
attr NotApotheke reading509JSON results_apotheken_apotheke_05_telefon
attr NotApotheke reading509Name 05_tel
attr NotApotheke reading510JSON results_apotheken_apotheke_05_email
attr NotApotheke reading510Name 05_email
attr NotApotheke reading511JSON results_apotheken_apotheke_05_fax
attr NotApotheke reading511Name 05_fax
attr NotApotheke reading512JSON results_apotheken_apotheke_05_startdatum
attr NotApotheke reading512Name 05_startdate
attr NotApotheke reading513JSON results_apotheken_apotheke_05_startzeit
attr NotApotheke reading513Name 05_starttime
attr NotApotheke reading514JSON results_apotheken_apotheke_05_enddatum
attr NotApotheke reading514Name 05_enddate
attr NotApotheke reading515JSON results_apotheken_apotheke_05_endzeit
attr NotApotheke reading515Name 05_endtime
attr NotApotheke reading516JSON results_apotheken_apotheke_05_latitude
attr NotApotheke reading516Name 05_latitude
attr NotApotheke reading517JSON results_apotheken_apotheke_05_longitude
attr NotApotheke reading517Name 05_longitude

attr NotApotheke reading601JSON results_apotheken_apotheke_06_distanz
attr NotApotheke reading601Name 06_distance
attr NotApotheke reading602JSON results_apotheken_apotheke_06_name
attr NotApotheke reading602Name 06_name
attr NotApotheke reading603JSON results_apotheken_apotheke_06_id
attr NotApotheke reading603Name 06_id
attr NotApotheke reading604JSON results_apotheken_apotheke_06_kammer
attr NotApotheke reading604Name 06_board
attr NotApotheke reading605JSON results_apotheken_apotheke_06_apo_id
attr NotApotheke reading605Name 06_apo_id
attr NotApotheke reading606JSON results_apotheken_apotheke_06_strasse
attr NotApotheke reading606Name 06_street
attr NotApotheke reading607JSON results_apotheken_apotheke_06_plz
attr NotApotheke reading607Name 06_zip
attr NotApotheke reading608JSON results_apotheken_apotheke_06_ort
attr NotApotheke reading608Name 06_city
attr NotApotheke reading609JSON results_apotheken_apotheke_06_telefon
attr NotApotheke reading609Name 06_tel
attr NotApotheke reading610JSON results_apotheken_apotheke_06_email
attr NotApotheke reading610Name 06_email
attr NotApotheke reading611JSON results_apotheken_apotheke_06_fax
attr NotApotheke reading611Name 06_fax
attr NotApotheke reading612JSON results_apotheken_apotheke_06_startdatum
attr NotApotheke reading612Name 06_startdate
attr NotApotheke reading613JSON results_apotheken_apotheke_06_startzeit
attr NotApotheke reading613Name 06_starttime
attr NotApotheke reading614JSON results_apotheken_apotheke_06_enddatum
attr NotApotheke reading614Name 06_enddate
attr NotApotheke reading615JSON results_apotheken_apotheke_06_endzeit
attr NotApotheke reading615Name 06_endtime
attr NotApotheke reading616JSON results_apotheken_apotheke_06_latitude
attr NotApotheke reading616Name 06_latitude
attr NotApotheke reading617JSON results_apotheken_apotheke_06_longitude
attr NotApotheke reading617Name 06_longitude

attr NotApotheke reading701JSON results_apotheken_apotheke_07_distanz
attr NotApotheke reading701Name 07_distance
attr NotApotheke reading702JSON results_apotheken_apotheke_07_name
attr NotApotheke reading702Name 07_name
attr NotApotheke reading703JSON results_apotheken_apotheke_07_id
attr NotApotheke reading703Name 07_id
attr NotApotheke reading704JSON results_apotheken_apotheke_07_kammer
attr NotApotheke reading704Name 07_board
attr NotApotheke reading705JSON results_apotheken_apotheke_07_apo_id
attr NotApotheke reading705Name 07_apo_id
attr NotApotheke reading706JSON results_apotheken_apotheke_07_strasse
attr NotApotheke reading706Name 07_street
attr NotApotheke reading707JSON results_apotheken_apotheke_07_plz
attr NotApotheke reading707Name 07_zip
attr NotApotheke reading708JSON results_apotheken_apotheke_07_ort
attr NotApotheke reading708Name 07_city
attr NotApotheke reading709JSON results_apotheken_apotheke_07_telefon
attr NotApotheke reading709Name 07_tel
attr NotApotheke reading710JSON results_apotheken_apotheke_07_email
attr NotApotheke reading710Name 07_email
attr NotApotheke reading711JSON results_apotheken_apotheke_07_fax
attr NotApotheke reading711Name 07_fax
attr NotApotheke reading712JSON results_apotheken_apotheke_07_startdatum
attr NotApotheke reading712Name 07_startdate
attr NotApotheke reading713JSON results_apotheken_apotheke_07_startzeit
attr NotApotheke reading713Name 07_starttime
attr NotApotheke reading714JSON results_apotheken_apotheke_07_enddatum
attr NotApotheke reading714Name 07_enddate
attr NotApotheke reading715JSON results_apotheken_apotheke_07_endzeit
attr NotApotheke reading715Name 07_endtime
attr NotApotheke reading716JSON results_apotheken_apotheke_07_latitude
attr NotApotheke reading716Name 07_latitude
attr NotApotheke reading717JSON results_apotheken_apotheke_07_longitude
attr NotApotheke reading717Name 07_longitude

attr NotApotheke reading801JSON results_apotheken_apotheke_08_distanz
attr NotApotheke reading801Name 08_distance
attr NotApotheke reading802JSON results_apotheken_apotheke_08_name
attr NotApotheke reading802Name 08_name
attr NotApotheke reading803JSON results_apotheken_apotheke_08_id
attr NotApotheke reading803Name 08_id
attr NotApotheke reading804JSON results_apotheken_apotheke_08_kammer
attr NotApotheke reading804Name 08_board
attr NotApotheke reading805JSON results_apotheken_apotheke_08_apo_id
attr NotApotheke reading805Name 08_apo_id
attr NotApotheke reading806JSON results_apotheken_apotheke_08_strasse
attr NotApotheke reading806Name 08_street
attr NotApotheke reading807JSON results_apotheken_apotheke_08_plz
attr NotApotheke reading807Name 08_zip
attr NotApotheke reading808JSON results_apotheken_apotheke_08_ort
attr NotApotheke reading808Name 08_city
attr NotApotheke reading809JSON results_apotheken_apotheke_08_telefon
attr NotApotheke reading809Name 08_tel
attr NotApotheke reading810JSON results_apotheken_apotheke_08_email
attr NotApotheke reading810Name 08_email
attr NotApotheke reading811JSON results_apotheken_apotheke_08_fax
attr NotApotheke reading811Name 08_fax
attr NotApotheke reading812JSON results_apotheken_apotheke_08_startdatum
attr NotApotheke reading812Name 08_startdate
attr NotApotheke reading813JSON results_apotheken_apotheke_08_startzeit
attr NotApotheke reading813Name 08_starttime
attr NotApotheke reading814JSON results_apotheken_apotheke_08_enddatum
attr NotApotheke reading814Name 08_enddate
attr NotApotheke reading815JSON results_apotheken_apotheke_08_endzeit
attr NotApotheke reading815Name 08_endtime
attr NotApotheke reading816JSON results_apotheken_apotheke_08_latitude
attr NotApotheke reading816Name 08_latitude
attr NotApotheke reading817JSON results_apotheken_apotheke_08_longitude
attr NotApotheke reading817Name 08_longitude

attr NotApotheke reading901JSON results_apotheken_apotheke_09_distanz
attr NotApotheke reading901Name 09_distance
attr NotApotheke reading902JSON results_apotheken_apotheke_09_name
attr NotApotheke reading902Name 09_name
attr NotApotheke reading903JSON results_apotheken_apotheke_09_id
attr NotApotheke reading903Name 09_id
attr NotApotheke reading904JSON results_apotheken_apotheke_09_kammer
attr NotApotheke reading904Name 09_board
attr NotApotheke reading905JSON results_apotheken_apotheke_09_apo_id
attr NotApotheke reading905Name 09_apo_id
attr NotApotheke reading906JSON results_apotheken_apotheke_09_strasse
attr NotApotheke reading906Name 09_street
attr NotApotheke reading907JSON results_apotheken_apotheke_09_plz
attr NotApotheke reading907Name 09_zip
attr NotApotheke reading908JSON results_apotheken_apotheke_09_ort
attr NotApotheke reading908Name 09_city
attr NotApotheke reading909JSON results_apotheken_apotheke_09_telefon
attr NotApotheke reading909Name 09_tel
attr NotApotheke reading910JSON results_apotheken_apotheke_09_email
attr NotApotheke reading910Name 09_email
attr NotApotheke reading911JSON results_apotheken_apotheke_09_fax
attr NotApotheke reading911Name 09_fax
attr NotApotheke reading912JSON results_apotheken_apotheke_09_startdatum
attr NotApotheke reading912Name 09_startdate
attr NotApotheke reading913JSON results_apotheken_apotheke_09_startzeit
attr NotApotheke reading913Name 09_starttime
attr NotApotheke reading914JSON results_apotheken_apotheke_09_enddatum
attr NotApotheke reading914Name 09_enddate
attr NotApotheke reading915JSON results_apotheken_apotheke_09_endzeit
attr NotApotheke reading915Name 09_endtime
attr NotApotheke reading916JSON results_apotheken_apotheke_09_latitude
attr NotApotheke reading916Name 09_latitude
attr NotApotheke reading917JSON results_apotheken_apotheke_09_longitude
attr NotApotheke reading917Name 09_longitude

attr NotApotheke replacement2Mode reading
attr NotApotheke replacement2Regex %%token%%
attr NotApotheke replacement2Value data-token
attr NotApotheke room Information
attr NotApotheke stateFormat <table style="width:100%;; border-collapse:collapse;; font-family:Arial;;">\
    <thead>\
        <tr>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">Start</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">End</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">ID</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">Name</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">Street</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">ZIP</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">City</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">Tel</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">Fax</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">email</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">Distance</th>\
            <th style="border:1px solid #ddd;; padding:8px;; text-align:center;;">WGS84-Decimal-Coordinates </th>\
        </tr>\
    </thead>\
    <tbody>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_startdate] - [$name:01_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_enddate] - [$name:01_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:01_latitude] <BR> [$name:01_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_startdate] - [$name:02_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_enddate] - [$name:02_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:02_latitude] <BR> [$name:02_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_startdate] - [$name:03_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_enddate] - [$name:03_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:03_latitude] <BR> [$name:03_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_startdate] - [$name:04_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_enddate] - [$name:04_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:04_latitude] <BR> [$name:04_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_startdate] - [$name:05_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_enddate] - [$name:05_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:05_latitude] <BR> [$name:05_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_startdate] - [$name:06_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_enddate] - [$name:06_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:06_latitude] <BR> [$name:06_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_startdate] - [$name:07_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_enddate] - [$name:07_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:07_latitude] <BR> [$name:07_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_startdate] - [$name:08_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_enddate] - [$name:08_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:08_latitude] <BR> [$name:08_longitude]</td>\
        </tr>\
        <tr>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_startdate] - [$name:09_starttime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_enddate] - [$name:09_endtime]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_apo_id]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_name]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_street]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_zip]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_city]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_tel]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_fax]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_email]</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_distance:r1] km</td>\
        <td style="border:1px solid #ddd;; padding:8px;;">[$name:09_latitude] <BR> [$name:09_longitude]</td>\
        </tr>\
    </tbody>\
</table>
attr NotApotheke webCmd :
******************************
Man wird immer besser...

qlaus

Servus,

noch eine kleine Änderung im Stateformat jeweils in den entsprechenden Tabellen-Zeilen für die Koordinaten 01 bis 09 verlinkt diese mit der Route über OpenStreetMap:

<td style="border:1px solid #ddd;; padding:8px;;"><a href="https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=[global:latitude]/[global:longitude];;[$name:01_latitude]/[$name:01_longitude]#map=10/[$name:01_latitude]/[$name:01_longitude]" target="_blank" rel="noopener noreferrer">[$name:01_latitude] <BR> [$name:01_longitude]</a></td>\

Um nicht jeden Tag die get-Funktion erneut aufrufen zu müssen verwende ich ein AT:
defmod apotheke2_reload at *08:31:00 get apotheke2 data-token;; sleep 5;; get apotheke2 data;; set apotheke2 reread;;
attr apotheke2_reload alias apotheke_reload
attr apotheke2_reload group Vorbereitung
attr apotheke2_reload room Apotheke

Vielleicht ganz jemand gebrauchen.

Danke an Sailor für die übersichtliche Tabelle.

Raspberry Pi 3, , Sonoff, Shelly
Raspberry Pi 3, , 1-Wire
Raspberry Pi 3, , 1-Wire, Sonoff, Shelly