DisplayLine1 / CurrentLevel figures shown on device buttons

I just realized, that the figures for my Netatmo sensors, shown on the device buttons, the DisplayLine1 ones are and not the CurrentLevel ones. As you can see from one of the screenshots, if there is no DisplayLine1 figure available, only a triple dot is shown. I would prefer if the CurrentLevel figures could be shown on the device buttons.

DisplayLines are simplistic way to display devices. if there is no visualization plugin for this device type ALTUI searches for the variable urn:upnp-org:serviceId:altui1/DisplayLine1 and urn:upnp-org:serviceId:altui1/DisplayLine2 and display the 2 lines

so you could either
a) add manually DisplayLine1 or DisplayLine2
b) ask the Netatmo device author to add them in his code
c) write or ask the Netatmo device author to write a ALTUI visualization plugin as explained here http://forum.micasaverde.com/index.php/topic,33307.0.html

I could write some ( after V1 and probably after Xmas break ) just give me a precise list of device type and variable name you d like to see

[quote=“amg0, post:2, topic:190106”]b) ask the Netatmo device author to add them in his code
c) write or ask the Netatmo device author to write a ALTUI visualization plugin as explained here http://forum.micasaverde.com/index.php/topic,33307.0.html[/quote]

Well, that would be me, and what is going on looks strange.

The DisplayLine1 gets updated every time the Netatmo device is polled, and it’s a formatted version of the current value including units - both have been unit converted according to the Netatmo settings - Current values, themselves, are supposed to be purely numeric.

Something is very wrong here - were these data captured shortly after a system restart, or does the situation persist? Netatmo updates are polled very 10 minutes by default. A non-existent DisplayLine1 means that value has NEVER been written. The CO2 value also looks odd as 161 is not a valid reading unless you are in an artificial atmosphere.

More info? Could, for a start, do with a copy of your diagnostics page. This is not an AltUI problem - we should move to the Netatmo child board…

The data where capured early this morning and the window in the bedroom was open for about 1h.
The module for the dining room, the one without DisplayLine1, was instolled yesterday evening for the first time. I just made a screenshots showing the current CO2 value from my bedroom module, which looks okay for me. Trying to make a copy of diagnostic page gave me a No Handler message, but not more info.

If you haven’t got a handler, then the plugin isn’t running. This would explain a lot. What’s in the logs? I assume you’ve restarted once or twice and refreshed the browser.

Please start a thread on the Netatmo board.

Hi AMG0

sorry for repost but you wrote:

DisplayLines are simplistic way to display devices. if there is no visualization plugin for this device type ALTUI searches for the variable urn:upnp-org:serviceId:altui1/DisplayLine1 and urn:upnp-org:serviceId:altui1/DisplayLine2 and display the 2 lines

so you could either
a) add manually DisplayLine1 or DisplayLine2
b) ask the Netatmo device author to add them in his code
c) write or ask the Netatmo device author to write a ALTUI visualization plugin as explained here http://forum.micasaverde.com/index.php/topic,33307.0.html

i understand that i need to add a new value to device, aka “SID = ‘urn:upnp-org:serviceId:altui1’ , Variable = ‘DisplayLine1’” but how i should update this value ?
i have value like this in my json file

“Service”: “urn:upnp-org:serviceId:BarometerSensor1”,
“Variable”: “CurrentPressure”

sorry for a stupid question im a newbie

[quote=“timota, post:7, topic:190106”]Hi AMG0

sorry for repost but you wrote:

DisplayLines are simplistic way to display devices. if there is no visualization plugin for this device type ALTUI searches for the variable urn:upnp-org:serviceId:altui1/DisplayLine1 and urn:upnp-org:serviceId:altui1/DisplayLine2 and display the 2 lines

so you could either
a) add manually DisplayLine1 or DisplayLine2
b) ask the Netatmo device author to add them in his code
c) write or ask the Netatmo device author to write a ALTUI visualization plugin as explained here http://forum.micasaverde.com/index.php/topic,33307.0.html

i understand that i need to add a new value to device, aka “SID = ‘urn:upnp-org:serviceId:altui1’ , Variable = ‘DisplayLine1’” but how i should update this value ?
i have value like this in my json file

“Service”: “urn:upnp-org:serviceId:BarometerSensor1”,
“Variable”: “CurrentPressure”

sorry for a stupid question im a newbie[/quote]

This 2 variables do not exists from the MIOS/Luup point of view. you are on your own to manage them. so you have to use the UI5 or UI7 user interface to create them , or even easier some luup code like this in either your startup.lua, or a scene, or simply as a one time action using the test lua code window :

luup.variable_set("urn:upnp-org:serviceId:altui1", "DisplayLine1", "your line", your device number)
luup.variable_set("urn:upnp-org:serviceId:altui1", "DisplayLine2", "your line", your device number)