Mean temperature in emonCMS?

Is it possible to calculate the mean temperature in the CMS like kwh/d??

If possible please tell me how!

Thanks!

TrystanLea's picture

Re: Mean temperature in emonCMS?

Not yet, but certainly would be a nice feature! One to add to the list probably would not take too long

joskim's picture

Re: Mean temperature in emonCMS?

perfect! I'm waiting ... :)

joskim's picture

Re: Mean temperature in emonCMS?

Hi Trystan,

Is there any news about mean temperature in the CMS?

Thanks!

joskim's picture

Re: Mean temperature in emonCMS?

Hi Trystan,

I will bounce this question again.

Thanks!

TrystanLea's picture

Re: Mean temperature in emonCMS?

Hello Joskim Yes this has been implemented, the input process is called - average and will generate a daily average of any input. Let me know how you get on with it.

joskim's picture

Re: Mean temperature in emonCMS?

Oh sorry! I didn't see this...
I seems to work very well!

Thanks!

Jérôme's picture

Re: Mean temperature in emonCMS?

Hi.

I've got a Temperature input. I multiply it by 0.01 to have it in Celsius degrees, then I log it to Temperature feed. Then I average it into average temperature feed.

Then, when I choose histgraph in the Vis menu, I get a daily average, but the unit is kWh instead of Celsius degrees.

Is this hardcoded ? Is there a way to modify it ? Isn't histgraph the proper visualiser to use ?

Thanks.

TrystanLea's picture

Re: Mean temperature in emonCMS?

Hello Jerome, 

The visualisations you want to use are:

Raw data for the temperature feed, in the visualisations selector you should see an input box to set custom units. If you enter C there that should work.

and for the average temperature I realise that there is a bug here that the average feed is set as a histogram datatype when in fact it should be set to daily. Try changing the datatype manually in the feed list by using the drop down datatype selector and then clicking on bar graph in the visualisation selector.

There isnt yet a cutom units input for the bar graph, certainly a good thing to add for the future. It would be good to make emoncms a lot more temperature friendly.

Trystan

 

Jérôme's picture

Re: Mean temperature in emonCMS?

Hi Trystan.

Yes, I'm using rawdata and I noticed the "units" field.

I was wondering what the fill field was for. I peaked into the code and got the answer : 1 means True : fill the space under the curve, any other value means False. Perhaps a boolean would be nice, apparently it already exists :

    /*
      1 - realtime
      2 - daily
      3 - histogram
      4 - boolean (not used uncomment line 122)
      5 - text
      6 - float value
      7 - int value
    */
 

The GUI could then automatically propose a drop-down True/False list.

(In the meantime, a tooltip could help.)

I changed HISTOGRAM into DAILY and I get a nice chart (except for the units).

Thanks.