zepiaf / hydroqc

Hydro Quebec API wrapper.
MIT License
9 stars 4 forks source link

Suggestion for the high level app #14

Open clauderobi opened 2 years ago

clauderobi commented 2 years ago

As I see it, there are 3 things in this project:

I usually like to have the library in a separate project but I am ok with the way it is know unless the dependencies for the non library stuff is not too long...

Anyway, the suggestion I wan to make is to create a "smarter" high application that abstract away the low level and spit out some high level information on screen (formated and/or JSON) and/or in a JSON file. The abstraction should actually be in the library since I suspect the MQTT stuff will definitely benefits from that as well. The benefit of having this high level application is to make the project useful for other that do not want or do not care about MQTT.

As for high level abstraction, considering that what most people are interested is to know if a peek period is pending or not I suggest this list: 1 - what is the current type of "moment", i.e

At this moment I do not see other high level abstracts for home automation reasons, however, I guess the hourly consumption report to JSON file would make sense (in append mode obviously, which means to use line-delimited JSON records format).

zepiaf commented 2 years ago

I need a bit of time to think about this until I can answer properly. I'll get back to you

zepiaf commented 2 years ago

As you can see I already took some items off your list.

I have tried to separate high level / low level and I suppose the lib for low level can be cloned and reused (be my guest anyone :) )

My goal right now is to sort out the winter credit stuff and I think we're getting something acceptable (not great but workable)

For the future I'd like to integrate energy consumption in my home automation system and I will likely do that around here.

I'm open to other integrations and if it becomes easier we can always split some parts in other repos.

I would like you to pitch in in the discussion @mdallaire opened as you seem to have a rather different setup than we do (if you're willing to share obviously)