Saravanan666/pypi-org huggingface dataset:
Package: oekofen-api
Oekofen APIUsagechange192.168.178.222to your Oekofen IPchangeeMlGto your JSON Password (see Touchpad of your Oekofen)importoekofen_apiimporttimeclient=oekofen_api.Oekofen("192.168.178.222","eMlG")#client.update_csv_data()x=client.update_data()client.get_version()client.get_uid()client.get_model()client.get_name()client.update_data()client.get_status()client.get_weather_temp()client.get_heating_circuit_temp()old_value=client.get_attribute('pu','L_tpo_act').get_value()print(old_value)whileTrue:try:client.update_data()exceptException:time.sleep(5)continuenew_value=client.get_attribute('pu','L_tpo_act').get_value()time.sleep(10)ifnew_value!=old_value:print(old_value,new_value)old_value=new_value#client.set_heating_circuit_temp(celsius=23)Tododont usedomainsandattributes- make it less complicate and pass dict to homeassistant, then use data scheme like netgear integrationadd historical data via csv api and HASSasync_external_statisticshttps://github.com/home-assistant/core/blob/74e2d5c5c312cf3ba154b5206ceb19ba884c6fb4/homeassistant/components/tibber/sensor.py#L642https://github.com/home-assistant/core/blob/74e2d5c5c312cf3ba154b5206ceb19ba884c6fb4/homeassistant/components/demo/__init__.py#L236https://github.com/home-assistant/core/blob/74e2d5c5c312cf3ba154b5206ceb19ba884c6fb4/homeassistant/components/recorder/statistics.py#L1335-L1362seeforumOnline ResourcespyOekofen implementation by JbPasquierLocal Pellematic JSON pageThis repository on pypiHomeAssistant BinarySensor DocumentationHomeAssistant BinarySensor SourceLocal Homeassistant InstanceMaterial IconsAbkürzungen SanitärBerechnung PelletsverbrauchBerechnungsgrundlage: AbschnittCalculationsinOekofen-SpyAbleitungpe1_L_modulationvia derivativeminütlichsiehe Integrationderivative / Code Berechnung der Ableitung<Differenz Sensortwert alt - Sensorwert neu> / <Sekunden zwischen beiden Sensorwerten> / 1 * <Sekunden = 60>Einrichten als Helperderivative_modulationHelper einrichten Schwellenwertsensor fürderivative_modulationHysterese: 0Untere Grenze: 0Obere Grenze: 1000Ergebnis: True/False für den Zeitraum, wenn der Wert positiv istMuss der Schwellenwertsensor evtl. vor den Ableitungssensor? (non_negative_derivative)Formel Pelletsverbrauch:Schwellwert / 60 * <kW Leitung Pelletsheizung, z.B. 7.8kW> *
Package: oem
Python Orbit Ephemeris Message toolsPython tools for working with Orbit Ephemeris Messages (OEMs).Development StatusInstallationTheoempackage is available throughpip.pip install oemUsageTheOrbitEphemerisMessageclass is the primary interface for OEM Files.fromoemimportOrbitEphemerisMessageephemeris=OrbitEphemerisMessage.open("input_file.oem")Each OEM is made up of one or more segments of state and optional covariance data. TheOrbitEphemerisMessageclass provides iterables for both.forsegmentinephemeris:forstateinsegment:print(state.epoch,state.position,state.velocity,state.acceleration)forcovarianceinsegment.covariances:print(covariance.epoch,covariance.matrix)All vectors and matrices are numpy arrays.It is also possible to retrieve a complete list of states and covariances through the.statesand.covariancesproperties. These attributes streamline interaction with single-segment ephemerides.forstateinephemeris.states:print(state.epoch,state.position,state.velocity)forcovarianceinephemeris.covariances:print(covariance.epoch,covariance.matrix)To sample a state at an arbitrary epoch, simply call the ephemeris with an astropy Time objectepoch=Time("2020-01-01T00:00:00",scale="utc")sampled_state=ephemeris(epoch)Note that this type of sampling is only supported if the time system of the target ephemeris is supported by astropy Time objects. The.stepsmethod of bothOrbitEphemerisMessageandEphemerisSegmentobjects enables iterable, equal-time sampling of ephemeris data. The following example samples an OEM at a 60-second interval.forstateinoem.steps(60)passThe above example works for both single- and multi-segment OEMs, however the step sizes may vary at the boundary of the segments. To get consistent step sizes with multiple segments, use the segment interface directly.forsegmentinoem:forstateinsegment.steps(60):passTheOrbitEphemerisMessagefacilitates writing of OEMs. To save an already-open OEM, use.save_as:ephemeris.save_as("output.oem",file_format="xml")To convert an ephemeris from one type to another, use the.convertclass method.OrbitEphemerisMessage.convert("input_file.oem","output_file.oem","kvn")Reference StandardsThis implementation follows the CCSDS recommended standards for Orbit Data Messages.[1]Orbit Data Messages, CCSDS 502.0-B-3, 2023. Available:https://public.ccsds.org/Pubs/502x0b3e1.pdf[2]XML Specification for Navigation Data Messages, CCSDS 505.0-B-3, 2023. Available:https://public.ccsds.org/Pubs/505x0b3.pdf
Package: oem2orm
OEM to ORMCreate database tables (and schema) from oemetadata json file(s)Installation:You can install pacakge using standard python installation:pip install oem2ormor if you interested in CLI-version only you can install it using pipx (pipx must be installed):pipx install oem2ormseePipx-Documentationfor further information.Usage:This tool is part of the open-energy-metadata (OEM) integration into theOEP.
To use this tool with the OEP API you need to be signed up to the OEP since
you need to provide an API-Token.If you want to upload OEM that was officially reviewed you must clone the
OEP data-preprocessing repository onGitHub.
The data-review folder contains all of the successfully reviewed OEM files.For security reasons, tables can only be created in existing
schemas and just in the schemas "model_draft" and "sandbox".Keep in mind the current state is not fully tested. The code is
still quit error prone f.e. the postgres types (column datatype) are not fully
supported by theoedialct- work in progress.Terminal/CLI-ApplicationStep-by-Step:
0. pip and python have to be installed and setup on your machineCreate env from requirements.txt, and activatePut the metadata file in the folder metadata or put your own folder in this
directoryexecute the following in a terminal:pipx install oem2orm
oem2orm
Enter metadata folder name:
...Provide credentials and folder name in promptThe table will be createdImport as ModuleYou can simply import this module in your Python script.py like this:fromoem2ormimportoep_oedialect_oem2ormasoem2ormNow just call the functions provided in oem2orm like this:Recommended execution order:Setup the loggeroem2orm.setup_logger()Setup the Database API connection as Namedtuple storing the SQLAlchemy engine and metadata:db=oem2orm.setup_db_connection()Provide the oem files in a folder (in the current directory).Pass the folder name to the function:metadata_folder=oem2orm.select_oem_dir(oem_folder_name="folder_name")Setup a SQLAlchemy ORM including all data-model in the provided oem files:orm=oem2orm.collect_ordered_tables_from_oem(db,metadata_folder)Create the tables on the Database:oem2orm.create_tables(db,orm)Delete all tables that have been created (all tables available in sa.metadata)oem2orm.delete_tables(db,orm)Docs:Database connectionWe use a global namedtuple called "DB" To store the sqlalchemy connection objects engine and metadata.
The namedtuple is available wen import oem2orm in a script. To establish the namedtuple use the function
setup_db_connection(). Now you can use DB.engine or DB.metadata.oem2orm generatorSupported datatypesSpatial TypesWe create columns with spatial datatypes using Geoalchemy2.Database support
Package: oembedders
oembeddersoembeddersis a small wrapper aroundpython-oembedand theoembed provider
registryto set up an oembed consumer that is configured with all known
providers.Installpip install oembeddersUsagefromoembeddersimportembede=embed('https://www.youtube.com/watch?v=dQw4w9WgXcQ')You can also use it from the command line:oembedders https://www.youtube.com/watch?v=dQw4w9WgXcQ
{
  "author_url": "https://www.youtube.com/user/RickAstleyVEVO",
  "title": "Rick Astley - Never Gonna Give You Up (Video)",
  "thumbnail_width": 480,
  "html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/dQw4w9WgXcQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
  "type": "video",
  "thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
  "version": "1.0",
  "author_name": "RickAstleyVEVO",
  "provider_url": "https://www.youtube.com/",
  "width": 480,
  "provider_name": "YouTube",
  "thumbnail_height": 360,
  "height": 270
}ProvidersThe provider registry data is maintained iniamcal/oembed. It can be updated
at any time in oembedders with the supplied Makefile which will download the
latest data and put it into place so it can be committed.
Package: oEmbedPy
NoteThis is yet experimental product.
It will be implemeted needy features incrementaly.OverviewThis isoEmbedclient for Python.FeaturesSimple usagePython 3.x nativeMultiple endpoint discoveryInstallationThis is uploaded on PyPI.pip install oEmbedPyUsageLibrary>>>fromoembedpy.applicationimportOembed>>>oembed=Oembed()>>>content=oembed.fetch("https://twitter.com/attakei")>>>print(content.type)richCommandlineNoteIt needs Click for using CLI. Run extra install ‘cli’.Simple usage for author’s video (omitted some output).$oEmbed.py'https://www.youtube.com/watch?v=Oyh8nuaLASA'title:            Yoshi ( ...
author_name:      attakei
thumbnail_height: 360
thumbnail_width:  400If you want JSON, use--foramtoption.$oEmbed.py--format=json'https://www.youtube.com/watch?v=Oyh8nuaLASA'{"title":"Yoshi (NES - Nint ..."}OthersThis has extension for easy-using.
Please seedocumentation.LicenseApache License 2.0
Package: oemetadata
Open Energy Family - Open Energy Metadata (OEMetadata)Open Energy Metadata (OEMetadata) is an energy metadata standard including a template, examples and a metadata schema.
It is an extensive set of metadata based on the tabular data package specifications and the FAIR principles.
The metadata contains multiple fields (keys) in a nested JSON structure.You can find the latest version right here:template.jsoncontains an empty metadata stringmetadata_key_description.mdcontains a description of each metadata keyexample.jsoncontains a basic metadata exampleLicense / CopyrightThis repository is licensed underMIT License (MIT)The oemetadata is licensed underCreative Commons Zero v1.0 UniversalThe oemetadata example and oemetadata template are licensed underCreative Commons Zero v1.0 UniversalInstallationpip install oemetadataUsage Examplesfrom metadata.latest.example import OEMETADATA_LATEST_EXAMPLE

print(OEMETADATA_LATEST_EXAMPLE)from metadata.latest.schema import OEMETADATA_LATEST_SCHEMA

print(OEMETADATA_LATEST_SCHEMA)from metadata.latest.template import OEMETADATA_LATEST_TEMPLATE

print(OEMETADATA_LATEST_TEMPLATE)ContributingFor further contributing infos and conventions see:CONTRIBUTING.mdRelease a new versionSee the complete instructions in theRELEASE_PROCEDURE.Make PyPI release:First bump version in setup.py, then:python3 setup.py sdist bdist_wheel
twine upload dist/*
Package: oemof
The Open Energy Modelling Framework (oemof) is a Python toolbox for energy system modelling and optimisation.The oemof project aims to be a loose organisational frame for tools in the wide field of (energy) system modelling.
Every project is managed by their own developer team but we share some developer and design rules to make it easier to understand each other’s tools. All project libraries are free software licenced under the MIT license.All projects are in different stages of implementation, some even may not have a stable release, but all projects are open to be joined by interested people.
We do not belong to a specific institution and everybody is free to join the developer teams and will have the same rights.
There is no higher decision level.This repositoryis also used to organise everything for the oemof community.Webconference datesReal life meetingsWebsite and MailinglistGeneral communicationYou can find recent topics of discussion in theissues.OverviewProjects with stable releasesProjects in an early stateInstallationDocumentationDevelopmentChangelog0.4.0.beta0 (2020-04-04)Projects with stable releasesoemof-solphA model generator for energy system modelling and optimisation (LP/MILP) -
(formerly know asoemof).oemof-thermalcydetsCycle Detection in Time Series (CyDeTS). An algorithm to detect cycles in times series along with their respective depth-of-cycle (DoC) and duration.demandlibThedemandliblibrary can be used to create load profiles for elctricity and heat knowing the annual demand. See thedocumentation of the demandlibfor examples and a full description of the library.feedinlibThefeedinliblibrary serves as an interface between Open Data weather data and libraries to calculate feedin timeseries for fluctuating renewable energy sources.TESPyThermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermal engineering plants such as power plants, district heating systems or heat pumps.windpowerlibThe windpowerlib is a library that provides a set of functions and classes
to calculate the power output of wind turbines. It was originally part of
the feedinlib (windpower and photovoltaic) but was taken out to build up
a community concentrating on wind power models.Projects in an early stateDHNxDistrict heating system optimisation and simulation modelsInstallationIt is not possible to install the meta packageoemof. Use the installation
guide of the package you want to install from the list above.Be aware that there are still some packages calledoemofon pypi. These are
old versions ofoemof.solph. See theoemof-solphrepository for the actual version.DocumentationThe metadocumentation of oemofis hosted on ReadTheDocs.DevelopmentTo run all tests run:toxChangelog1.0.0 (2022-11-09)Adapt setup.py to install the actual version of all oemof packages.0.4.0.beta0 (2020-04-04)First release on PyPI.
Package: oemof.network
The network/graph submodules of oemof.Free software: MIT licenseInstallationpip install oemof-networkYou can also install the in-development version with:pip install https://github.com/oemof/oemof-network/archive/dev.zipDocumentationhttps://oemof-network.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append tox
Package: oemof.tabular
Load oemof energy systems from tabular data sources.Free software: BSD 3-Clause LicenseInstallationSimpy run:pip install oemof.tabularDocumentationhttps://oemof-tabular.readthedocs.io/DevelopmentPlease activate pre-commit hooks in order to follow our coding styles:pip install pre-commit
pre-commit installTo run the all tests run:pytestChangelogUnreleasedFeaturesFixes0.0.5 Patch Release - Miraculous Mary (2024-02-23)FeaturesImprove reading error message#134Remove facade relicts#135Add dev install version#147FixesRemove specific dirs from flake8 & isort#136Update lp-files to pyomo6.7#148Rework periodic value deserialization#154Fix oemof.solph version to v0.5.2dev1#157Fix oemof.solph version to v0.5.2.dev1#1590.0.4 Patch Release (2023-08-31)FeaturesAdd PR template#129Add deprecation warning for python3.8#125Update to oemof.solph 0.5.1 latest changes#123Add multi-period deserialization#112Add multi-period investment#108Make oemof.solph 0.5.1 work#107Split facades into submodules#92Add postprocessing module#102FixesUpdate neglected CHANGELOG#1300.0.3 (2022-01-26)FixesFix link by not setting constraints that limit direction#38Fix storage investment#33Link investment#28Variable cost#24Marginal cost#23FeaturesAdjust to new oemof.solph structure#21Allow to define custom foreign keys#39Add constraint tests for most facades#35,#42Reduce number of imported packages#32,#49Cleaned up the badges in README#59Move most CI services to github actions#370.0.2 (2019-07-08)0.0.1 (2018-12-12)Moved the datapackage reader from coreoemofinto this package.
That means the basic functionality of deserializing energy systems
from datapackages has finally arrived.MovedFacadeclasses fromrenpassinto this package.
TheFacadeclasses are designed to complement the datapackage
reader, by enabling easy construction of energy system components from
simple tabular data sources.Also moved the example datapackages fromrenpassinto this package.
These datapackages provide a good way of at least testing, that the
datapackage reader doesn’t throw errors.0.0.0 (2018-11-23)First release on PyPI.
Pretty much non functional because it only consists of the package
boilerplate and nothing else. But this is what a version zero is for,
IMHO.
Package: oemof.thermal
oemof.thermalThis package provides tools to model thermal energy components as an extension of
oemof.solph, e.g. compression heat pumps, concentrating solar plants, thermal
storages and solar thermal collectors.Contentsoemof.thermalAboutQuickstartDocumentationContributingLicenseAboutThe aim of oemof.thermal is to create a toolbox for building models of
thermal energy systems. Modeling thermal energy systems requires specific preprocessing
and postprocessing steps whose detail exceeds the generic formulation of components in
oemof.solph. Currently, most of the functions collected here are intended to be used
together with oemof.solph. However, in some instances they may be useful independently
of oemof.solph.oemof.thermal is under active development. Contributions are welcome.QuickstartInstall oemof.thermal by runningpipinstalloemof.thermalin your virtualenv. In your code, you can import modules like e.g.:fromoemof.thermalimportconcentrating_solar_powerAlso, have a look at theexamples.DocumentationFind the documentation athttps://oemof-thermal.readthedocs.io.ContributingEverybody is welcome to contribute to the development of oemof.thermal. Find here thedeveloper
guidelines of oemof.LicenseMIT LicenseCopyright (c) 2019 oemof developing groupPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: oemof.tools
Tiny tools of the oemof project.Free software: MIT licenseInstallationpip install oemof.toolsYou can also install the in-development version with:pip install https://github.com/oemof/oemof-tools/archive/dev.zipDocumentationhttps://oemof-tools.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.4.2 (2022-06-15)Add Python support for Python 3.10 and drop support for 3.7Move CI from Appveyor and Travis to Github ActionsUseBlack Code Stylefor oemof.toolsChange default logging level for file logging from DEBUG to WARNING0.4.1 (2021-02-21)Fix compatibility problem (by naming submodules in init script)0.4.0 (2020-05-11)Move the code of the oemof.tools repository to a stand-alone repository.Use cookiecutter to create a wider testing structure and a more standardised
package structure.Switch from nose to pytestRemove the version or commit loggerAdd test to increase test coverage
Package: oemthermostat
OverviewThis module provides a Python API to the Open Energy
MonitorThermostatCurrently it only provides enough functionality for external control of the
thermostat rather than providing access to all the configuration options.Installation / UsageTo install use pip:$ pip install oemthermostatOr clone the repo:$ git clone https://github.com/Cadair/openenergymonitor_thermostat.git
$ pip install openenergymonitor_thermostat
Package: oeo
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: oep-metadata
Open Energy Family - Open Energy Metadata (OEM)Open Energy Metadata (OEM) is an energy metadata standard including a template, examples and a metadata schema.
It is an extensive set of metadata based on the tabular data package specifications and the FAIR principles.
The metadata contains multiple fields (keys) in a nested JSON structure.You can find the latest version right here:template.jsoncontains an empty metadata stringmetadata_key_description.mdcontains a description of each metadata keyexample.jsoncontains a basic metadata exampleLicense / CopyrightThis repository is licensed underMIT License (MIT)The oemetadata is licensed underCreative Commons Zero v1.0 UniversalThe oemetadata example and oemetadata template are licensed underCreative Commons Zero v1.0 UniversalInstallationpip install oep-metadataUsage Examplesfrom metadata.v150.example import OEMETADATA_v150_EXAMPLE

print(OEMETADATA_v150_EXAMPLE)from metadata.v150.schema import OEMETADATA_v150_SCHEMA

print(OEMETADATA_v150_SCHEMA)from metadata.v150.template import OEMETADATA_v150_TEMPLATE

print(OEMETADATA_v150_TEMPLATE)ContributingFor further contributing infos and conventions see:CONTRIBUTING.mdMake PyPI release:First bump version in setup.py, then:python3 setup.py sdist bdist_wheel
twine upload dist/*