{"id":18368631,"url":"https://github.com/openbmc/phosphor-virtual-sensor","last_synced_at":"2025-04-06T17:31:46.134Z","repository":{"id":50382041,"uuid":"284982029","full_name":"openbmc/phosphor-virtual-sensor","owner":"openbmc","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-04T06:50:12.000Z","size":754,"stargazers_count":3,"open_issues_count":2,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T04:02:00.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openbmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-04T13:04:19.000Z","updated_at":"2025-03-03T16:06:03.000Z","dependencies_parsed_at":"2023-01-23T11:00:12.072Z","dependency_job_id":"d967d595-4141-48c8-908f-17620b164314","html_url":"https://github.com/openbmc/phosphor-virtual-sensor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openbmc%2Fphosphor-virtual-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openbmc%2Fphosphor-virtual-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openbmc%2Fphosphor-virtual-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openbmc%2Fphosphor-virtual-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openbmc","download_url":"https://codeload.github.com/openbmc/phosphor-virtual-sensor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247522385,"owners_count":20952539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T23:26:47.127Z","updated_at":"2025-04-06T17:31:45.741Z","avatar_url":"https://github.com/openbmc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phosphor-virtual-sensor\n\nphosphor-virtual-sensor reads the configuration file\n`virtual_sensor_config.json` from one of three locations:\n\n1. The current directory.\n2. `/var/lib/phosphor-virtual-sensor`\n3. `/usr/share/phosphor-virtual-sensor`\n\nBy default the repository will install a sample config into (3).\n\nThere are two types of data in this file.\n\n## virtual sensor configuration information\n\nSee `virtual_sensor_config.json` in this repository for an example. Sensors\nadded this way can use any expression that is accepted by exprtk.\n\n## information to get a virtual sensor configuration from D-Bus\n\nFor example:\n\n```json\n{\n  \"Desc\": {\n    \"Config\": \"D-Bus\"\n  }\n}\n```\n\nSensors added this way can only use a set of restricted calculations. Currently\nsupported types are `Average`, `Maximum`, `Minimum`, `Sum` and `ModifiedMedian`.\n\nThe virtual sensor configuration information needs to be added into the relevant\nhardware configuration file in entity-manager. This method of adding a virtual\nsensor allows a recipe that builds for different hardware configurations to have\ndifferent virtual sensors for each configuration.\n\nThe virtual sensor configuration in entity manager follows a different format to\nthe JSON in `virtual_sensor_config.json` (specified in\n[entity-manager/schemas/VirtualSensor.json](https://github.com/openbmc/entity-manager/blob/master/schemas/virtual_sensor.json)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbmc%2Fphosphor-virtual-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenbmc%2Fphosphor-virtual-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbmc%2Fphosphor-virtual-sensor/lists"}