voelkerb / FIRED_dataset_helper

Files to load and use the Fully-labeled hIgh-fRequencyElectricity Disaggregation (FIRED) dataset. Files to generate statistics and plots.
Creative Commons Zero v1.0 Universal
6 stars 1 forks source link

Smart Meter + Appliance #12

Open marciahon29 opened 3 hours ago

marciahon29 commented 3 hours ago

Hello,

I am trying to get the Voltage/Current for the devices (fridge, office_pc, television).

For, fridge, my understanding is that I do something like this: fridge = hp.getMeterVI("powermeter09", start...)

So the fridge is found at the meter called "powermeter09".

Please could you let me know what meter names are associated with office_pc and television?

Thanks

voelkerb commented 3 hours ago

Take a look at the helper.py with its functions.

marciahon29 commented 3 hours ago

I try this: vi_data = hp.getMeterVI("powermeter20", startTs=startTs, stopTs=stopTs) and get this error: error retreiving file: -1

Would you have any idea what I am missing?

voelkerb commented 3 hours ago

You can enable verbose logging in the helper file and try to find out what is going on. I suspect that the corresponding high frequency file is missing and cannot be loaded using rsync

marciahon29 commented 3 hours ago

ok, I think you are right...

My verbose error: C:\Users\marci\COCA - Paper02\FIRED\highFreq\powermeter20\powermeter20_2020_06_14__00_10_00.mkv File: C:\Users\marci\COCA - Paper02\FIRED\highFreq\powermeter20\powermeter20_2020_06_1400_10_00.mkv does not exist, using rsync to download rsync --password-file=C:\Users\marci\COCA - Paper02\FIRED\info\rsync_pass.txt rsync://FIRED@clu.informatik.uni-freiburg.de/FIRED//highFreq/powermeter20/powermeter20_2020_06_1400_10_00.mkv C:\Users\marci\COCA - Paper02\FIRED\highFreq\powermeter20 error retreiving file: -1

I believe I have to change this (from helper.py): RSYNC_ADDR = "rsync://FIRED@clu.informatik.uni-freiburg.de/FIRED/" Another possiblity is (there are single "/" and double "//"): rsync://FIRED@clu.informatik.uni-freiburg.de/FIRED//highFreq/powermeter20/powermeter20_2020_06_14__00_10_00.mkv

I look forward to your feedback.

Thanks, Marcia

marciahon29 commented 20 minutes ago

i believed my problem was that I did not have the "rsync_pass.txt" file. So I created one with the content of "nobodyGetsFIRED". Unfortunately, the same error persists.

I also tried to download my files: highFreq/powermeter09 , highFreq/powermeter20 , highFreq/powermeter23. But I had to give up because it takes over a lot of space which I do not have.

Please could you give me any suggestions to improve upon this error?

Thanks

marciahon29 commented 1 minute ago

I have also tried the following:

import helper as hp hp.FIRED_BASE_FOLDER = "C:\Users\marci\COCA - Paper02\FIRED" startTs, stopTs = hp.getRecordingRange("2020.06.14 00:00:00", "2020.09.21 16:59:59") hp.getMeterFiles("powermeter23", 1, startTs=startTs, stopTs=stopTs)

hp.RSYNC_ALLOWED = False

vi_data = hp.getMeterVI("powermeter23", 1, startTs=startTs, stopTs=stopTs)

voltage = vi_data["data"]["v"] current = vi_data["data"]["i"]

print(voltage.head()) print(current.head())

But it seems that I am not able to download all the files.