Help regarding group and readingsgroup sorting and weather

Begonnen von Mario, 18 Januar 2017, 00:16:29

Vorheriges Thema - Nächstes Thema

Mario

Hello, I'm user of fhem-5.7 (updated), I have need some help from you

1. when using my Weather module it displays 10 days forecast in weblink , how can I limit it e.g. for 1 and 4 days ?

2. is it possible to make group alias for WEB display ? (I mean groups which are implicit created by DEVICE attribute, e.g:  attr DEVICE group gr_Code)

3. how can I place groups in my order at Room view level, attr sortby doesn't give effect for me, group are displayed in alphabetical order,
i could workaround this by using  group names starting with digits e.g. 01.Zgroup but need then make alias for displayed group name

4. attr sortby in FHT devices doesn't make effect for me in readingsGroup created with:

define  rg_Thermostats readingsGroup <%sani_heating>,<Akt>,<Req>,<Valve>,<Window>,<>,<>,<>,<Mode>,<Battery> \
NAME=t[A-Z].*:measured-temp,desired-temp,actuator,window,<{myHeater_HeatingUpDown($DEVICE,"up")}@desired-temp>,desired-new,<{myHeater_HeatingUpDown($DEVICE,"down")}@desired-temp>,mode,battery


where tXXXX are FHT devices names, (my attr  specification works at specific (FHT) room view)

How can I fix or reach this ?

thanks and good night
FHEM since 2013, mixed FS20, HmIP, HM,
own modules for heater, garden & wheater station,
sun intensity, rain ratio & soil humidity sensors for inteligent watering.

rudolfkoenig

Ad 2: there is no group alias. The group attribute itself is an "alias" for the device TYPE.
Ad 3: there is no way to sort groups beside changing their names. The sorting is affected by the columns attribute, although I dont think that will help.

I cannot say anything about Weather oder readingsGroup, you should place your question in the appropriate group (see MAINTAINER.txt for details).

Mario

Thanks for your help Rudolf,

Oouch, bcs internally I use technical/verbose/unique names which are verbose for me technically skilled person,
but are not pretty for presentation where it should be less technical and unique but should be more natural/meaningful for others (like wife)
(this functionality should also help to present/change displayed value if need in other language at frontend
- without modifying dependent user perl helper functions)

Maybe it would be possible to add group entity (define group_name group) to just hold its alias and sort(by) criteria  ?
it is hard task in fhem@perl ? some hints ?

Another question I would like check  for stall  readings update time, which are in form 2016-01-24 21:05:03 so I need to compare it with "time" variable,
is there some helper function which convert above value to "time" domain format (second since epoch?) ?

and one more
I know there is possibility to change devStateIcon but didn't found yet way to substitute following "on" or "off" action text with some icon, is it possible ?
FHEM since 2013, mixed FS20, HmIP, HM,
own modules for heater, garden & wheater station,
sun intensity, rain ratio & soil humidity sensors for inteligent watering.

rudolfkoenig

Zitatis there some helper function which convert above value to "time" domain format (second since epoch?) ?
time_str2num(ReadingsTimestamp("mydevice", "myreading", 0))

Zitat
I know there is possibility to change devStateIcon but didn't found yet way to substitute following "on" or "off" action text with some icon, is it possible ?
Take a look at cmdIcon

ghayne

Zitat von: Mario am 18 Januar 2017, 00:16:29
Hello, I'm user of fhem-5.7 (updated), I have need some help from you

1. when using my Weather module it displays 10 days forecast in weblink , how can I limit it e.g. for 1 and 4 days ?

2. is it possible to make group alias for WEB display ? (I mean groups which are implicit created by DEVICE attribute, e.g:  attr DEVICE group gr_Code)

3. how can I place groups in my order at Room view level, attr sortby doesn't give effect for me, group are displayed in alphabetical order,
i could workaround this by using  group names starting with digits e.g. 01.Zgroup but need then make alias for displayed group name

4. attr sortby in FHT devices doesn't make effect for me in readingsGroup created with:

define  rg_Thermostats readingsGroup <%sani_heating>,<Akt>,<Req>,<Valve>,<Window>,<>,<>,<>,<Mode>,<Battery> \
NAME=t[A-Z].*:measured-temp,desired-temp,actuator,window,<{myHeater_HeatingUpDown($DEVICE,"up")}@desired-temp>,desired-new,<{myHeater_HeatingUpDown($DEVICE,"down")}@desired-temp>,mode,battery


where tXXXX are FHT devices names, (my attr  specification works at specific (FHT) room view)

How can I fix or reach this ?

thanks and good night

Hi,

if you store your readings in a database instead of a log file you can use the module DbRep to group readings, Sqlite is very easy to set up, have a look in the Wiki. Feel free to ask questions.

Regards, Garry

justme1968

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968