Coder Social home page Coder Social logo

energyutils's Introduction

energyutils's People

Contributors

dresdner353 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

energyutils's Issues

gen_report.py

Hi
I would like to remove some of the columns in the spreadsheet can I do this using a filter
if so can you give me an example
Regards

Shelly EM

Hi I am trying to get the data from the Shelly EM using your script.
It created the Shelly directory but doesn't put any files in it
Can you help
Out put from CMD Shell

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET PYTHON=python3.exe

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET SHELLY_DATA=shelly_data

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET SHELLY_SCRIPT=..\shelly_em_data_util.py

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET GEN_REPORT_SCRIPT=..\gen_report.py

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET REPORTS=day week month year hour tariff 24h weekday

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>REM Shelly API config

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET SET SHELLY_HOST=shelly-36-eu.shelly.cloud

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET SET SHELLY_AUTH_KEY=YTUyZGZ1aWQXXXXXXXXXXX

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>SET SET SHELLY_DEVICE_ID=485XXXXXXXX
C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>REM prepare directory for parsed SHELLY JSON data

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>IF not exist shelly_data (mkdir shelly_data )

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>REM Retrieve data from Shelly Cloud

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>python3.exe ..\shelly_em_data_util.py --host --id --auth_key --odir "shelly_data" --days 30
usage: shelly_em_data_util.py [-h] --host HOST [--odir ODIR] [--days DAYS] [--solar_discard SOLAR_DISCARD] --id ID
--auth_key AUTH_KEY [--verbose]
shelly_em_data_util.py: error: argument --host: expected one argument

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>REM Example EV report

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>python3.exe ..\gen_report.py --idir shelly_data --file shelly_report_ev.xlsx --reports day week month year hour tariff 24h weekday --tariff_rate Day:0.4320 Night:0.2086 Boost:0.1225 --tariff_interval 08-23:Day 23-08:Night 02-04:Boost --annual_standing_charge 303 --fit_rate 0.21
Sun Feb 25 16:16:39 2024 Generating report shelly_report_ev.xlsx
Sun Feb 25 16:16:39 2024 Loaded 0 files, 0 records

C:\AAAShelly\ESB Report Program\energyutils-main\energyutils-main\windows_workflow>pause
Press any key to continue . . .

Report Start and end

REM Example EV report
%PYTHON% %GEN_REPORT_SCRIPT% ^
--idir %SHELLY_DATA% ^
--start START Calculation Start Date (20230302)
--end END Calculation End Date (20230303)
--file shelly_report_ev.xlsx ^
--reports %REPORTS% ^
--hide_columns year month week ts ^
--tariff_rate Day:0.2692 Night:0.1576 ^
--tariff_interval 08-23:Day 23-08:Night ^
--annual_standing_charge 226 ^
--fit_rate 0.12

C:\AAAShelly\ESB Report Program\energyutils-main\windows_workflow>--end END Calculation End Date (20230303)
'--end' is not recognized as an internal or external command,
operable program or batch file.
What am I not doing correctly
PJM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.