readingsGroup and MAX weekprofiles

Begonnen von fruit, 17 Januar 2015, 07:50:13

Vorheriges Thema - Nächstes Thema

fruit

I hope this is posted in an appropriate place, I think it's more suitable in the readingsGroup section
than MAX - this is just for reference in case it is useful to others.


I have a MAX Cube and MAX radiator stats.
For a long time I have wished for an easy way to adjust weekprofiles etc.

Inspired by the HM piece in http://www.fhemwiki.de/wiki/ReadingsGroup#Heizungswerte.2C_Status.2C_Steuerung_und_Wochenprofil
I thought I would try!

Certainly an interesting challenge - and made my head ache a bit.

I have created the basic readingsGroup as can be seen from the screenshot but I don't think it's practical to go further as it is,
there is just too much data to parse. Each d_climaControl_ (one per room) is about 65k characters!

To get it as I hoped would still need a lot more work so I am going to give it a rest for now.
I have thought of splitting per room/device but all that data still needs to be parsed!

If anyone is interested in the code I'm happy to post later, it's still rather untidy I expect.

NB. I'm not sure that it would run very well on a Raspberry Pi with its limited resources - but it may.
I seem to remember reading that fhem holds fhem.cfg in memory. Mine has increased from about 70k to almost 1M in the last two days.


Follow up in German if you prefer, I'll try and make some sense of it from google

Edit: code attached, files typed as txt, I hope that's OK but watch for line wraps. Read the comments. Use with caution! ;)
Feel free to follow up in German if you prefer

P.A.Trick

Looks really cool! It would be great if you can publish your code for other MAX! Users. Thanks for your great work!
Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

fruit

I'll try and get it sorted alter this morning.
It doesn't do much at present except create the display but the MAX parameters are all available in the d_climaControl_ for each.

Since posting earlier I am still thinking about this - can't get it out of my head, which is why I had to try originally.

I think the major issue is the very large setList required, one for each time/temp value for each room/device ie. 13 of each per day per room.
There may be a way around that but my attempts so far have failed - all values change.

Perhaps someone will pass by with a suggestion as to how it can be done :)
Feel free to follow up in German if you prefer

Risiko

Hello fuit,

yes it looks nice. 
I solved this with a weblink (html and js written completly in a perl file). For me a readingsgroup was to difficult especially the task to add and remove intervals.

If you or someone else are interested, i can publish the code in the MAX section.

Risiko.

Sargon

Hallo Risko,

das sieht wirklich toll aus!!!. Es wäre super wenn du den Code posten könntest.

Gruß
Thomas
Unitymedia IPv6, Synology 212+, Cul, 4 Max Thermostate und 4 Fensterkontakte

fruit

Looks very interesting - and much more practical than my attempt.

I'd like to see the code please, I know nothing of js so it would be hard work for me to try.
Feel free to follow up in German if you prefer

chris1284

hi risiko,

please share you code. it's interesting für hm-cc-rt-dn users, too (with adjustment)

Risiko

Hallo.

Ok hier ist der Code (99_UtilsMaxProf.pm - wie gehabt mit in den Ordner FHEM legen)
Einfach ein weblink wie folgt anlegen:

define <name> weblink htmlCode {MAX_SHOW_WeekProfile("<MAX DEVICE>");;}


Viel Spaß.

fruit

Thanks, that will be very useful and so much less involved than my attempts.
Feel free to follow up in German if you prefer

John

Hallo Risiko,

das ist dir prima gelungen, alle Achtung.

Wäre gut wenn du das im Max-Forum vorstellen würdest.

Ich musste für meinen Browser noch die Breite anpassen von 800 auf 900.
$html .= "<div style=\"overflow:auto;border:1px solid $tableColor;width:900px\">";

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

Risiko

Hallo John,

vielen Dank.
Ich habe es im Max-Forum veröffentlicht.

http://forum.fhem.de/index.php/topic,32390.0.html

Alles weitere dann dort.