Title: Temperature/Humidity and Formaldehyde calculation are wrong for 5003ST · Issue #16 · avaldebe/PMserial · GitHub
Open Graph Title: Temperature/Humidity and Formaldehyde calculation are wrong for 5003ST · Issue #16 · avaldebe/PMserial
X Title: Temperature/Humidity and Formaldehyde calculation are wrong for 5003ST · Issue #16 · avaldebe/PMserial
Description: Hello, I just test the library with a PMS5003ST and those values were wrong : temperature was - 5.5°C instead of something around 22° Humidity was also bad. The problems were : int8_t cast instead of int16_t incorrect reading order. The ...
Open Graph Description: Hello, I just test the library with a PMS5003ST and those values were wrong : temperature was - 5.5°C instead of something around 22° Humidity was also bad. The problems were : int8_t cast instead ...
X Description: Hello, I just test the library with a PMS5003ST and those values were wrong : temperature was - 5.5°C instead of something around 22° Humidity was also bad. The problems were : int8_t cast instead ...
Opengraph URL: https://github.com/avaldebe/PMserial/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Temperature/Humidity and Formaldehyde calculation are wrong for 5003ST","articleBody":"Hello, \r\nI just test the library with a PMS5003ST and those values were wrong : \r\n- temperature was - 5.5°C instead of something around 22°\r\n- Humidity was also bad.\r\n\r\nThe problems were : \r\n- int8_t cast instead of int16_t\r\n- incorrect reading order. The good one, according to the datasheet, is : hcho, temp, rhum.\r\n\r\nI post a PR to correct theses points. \r\n\r\nI noticed a difference between the sensor and a regular thermometer. \r\nSo I also add a feature to add offset to temperature and humidity to correct theses values : \r\n- void set_rhum_offset(float offset);\r\n- void set_temp_offset(float offset);\r\n- float get_rhum_offset();\r\n- float get_temp_offset();\r\n\r\nThis is based on the library GHTNew (https://github.com/RobTillaart/DHTNew).\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/fmatray","@type":"Person","name":"fmatray"},"datePublished":"2020-11-25T12:58:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/16/PMserial/issues/16"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:64f6eba2-54a4-9357-f07a-061aee6fafb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBD4:299B2C:594EF4:7C3DA9:6A4BCCBF |
| html-safe-nonce | 84c7e18d27bdad35ffc672dd333b634693449472ece62ba3c47e06104741b0d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkQ0OjI5OUIyQzo1OTRFRjQ6N0MzREE5OjZBNEJDQ0JGIiwidmlzaXRvcl9pZCI6IjIyNTAzMTY1NjU2OTI3OTYwOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c2d572d7a2a8225cf5c750e6cb6514377682c960cb420c8f69bdcbd2ca3d685 |
| hovercard-subject-tag | issue:750795600 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/avaldebe/PMserial/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4dfcdd6486c683dad181ab9f6fd8578066108bdca44974d86019af1550ba438a/avaldebe/PMserial/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4dfcdd6486c683dad181ab9f6fd8578066108bdca44974d86019af1550ba438a/avaldebe/PMserial/issues/16 |
| og:image:alt | Hello, I just test the library with a PMS5003ST and those values were wrong : temperature was - 5.5°C instead of something around 22° Humidity was also bad. The problems were : int8_t cast instead ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fmatray |
| hostname | github.com |
| expected-hostname | github.com |
| None | 14aa00ce5bdb34d0eefb5facbffd7de9e144c688d8a93ef8df902d5f94b51dd7 |
| turbo-cache-control | no-preview |
| go-import | github.com/avaldebe/PMserial git https://github.com/avaldebe/PMserial.git |
| octolytics-dimension-user_id | 8268218 |
| octolytics-dimension-user_login | avaldebe |
| octolytics-dimension-repository_id | 108874855 |
| octolytics-dimension-repository_nwo | avaldebe/PMserial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 108874855 |
| octolytics-dimension-repository_network_root_nwo | avaldebe/PMserial |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58b8f89190447502561829f30862aa0a99d53367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width