{"id":13801110,"url":"https://github.com/jacklinquan/micropython-basicdweet","last_synced_at":"2025-03-05T07:34:27.762Z","repository":{"id":57697686,"uuid":"496881725","full_name":"jacklinquan/micropython-basicdweet","owner":"jacklinquan","description":"A python module for very basic APIs of the free dweet service.","archived":false,"fork":false,"pushed_at":"2022-08-31T05:24:13.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T07:45:43.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacklinquan.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}},"created_at":"2022-05-27T06:09:05.000Z","updated_at":"2024-12-18T01:57:36.000Z","dependencies_parsed_at":"2022-09-26T19:50:20.120Z","dependency_job_id":null,"html_url":"https://github.com/jacklinquan/micropython-basicdweet","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/jacklinquan%2Fmicropython-basicdweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-basicdweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-basicdweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-basicdweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklinquan","download_url":"https://codeload.github.com/jacklinquan/micropython-basicdweet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241989527,"owners_count":20053798,"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-08-04T00:01:19.600Z","updated_at":"2025-03-05T07:34:27.722Z","avatar_url":"https://github.com/jacklinquan.png","language":"Python","readme":"# micropython-basicdweet\n[![PayPal Donate][paypal_img]][paypal_link]\n[![PyPI version][pypi_img]][pypi_link]\n[![Downloads][downloads_img]][downloads_link]\n\n  [paypal_img]: https://github.com/jacklinquan/images/blob/master/paypal_donate_badge.svg\n  [paypal_link]: https://www.paypal.me/jacklinquan\n  [pypi_img]: https://badge.fury.io/py/micropython-basicdweet.svg\n  [pypi_link]: https://badge.fury.io/py/micropython-basicdweet\n  [downloads_img]: https://pepy.tech/badge/micropython-basicdweet\n  [downloads_link]: https://pepy.tech/project/micropython-basicdweet\n\nA python module for very basic APIs of the free dweet service.\nDweet is a simple machine-to-machine (M2M) service from [dweet.io](https://dweet.io).\n\nThis module only supports these dweet APIs of the free dweet service:\n\n- `dweet for`\n- `get latest dweet for`\n- `get dweets for`\n\nThis module works under MicroPython and it is tested with MicroPython V1.18.\n\nFor a compatible CPython version, please find [Python package basicdweet](https://github.com/jacklinquan/basicdweet).\n\n## Installation\n``` Python\n\u003e\u003e\u003e import upip\n\u003e\u003e\u003e upip.install('micropython-basicdweet')\n```\nAlternatively just copy basicdweet.py to the MicroPython device.\n\n## Usage\n```python\n\u003e\u003e\u003e import basicdweet\n\u003e\u003e\u003e basicdweet.dweet_for('YOUR_THING', {'YOUR_DATA': 'YOUR_VALUE'})\n{'content': {'YOUR_DATA': 'YOUR_VALUE'}, 'created': '2022-05-27T06:17:48.127Z', 'thing': 'YOUR_THING', 'transaction': '403dcd2b-99b9-44b4-b864-b682b898ac10'}\n\u003e\u003e\u003e basicdweet.get_latest_dweet_for('YOUR_THING')\n[{'content': {'YOUR_DATA': 'YOUR_VALUE'}, 'created': '2022-05-27T06:17:48.127Z', 'thing': 'YOUR_THING'}]\n\u003e\u003e\u003e basicdweet.dweet_for('YOUR_THING', {'YOUR_DATA': 'YOUR_VALUE_2'})\n{'content': {'YOUR_DATA': 'YOUR_VALUE_2'}, 'created': '2022-05-27T06:19:08.081Z', 'thing': 'YOUR_THING', 'transaction': '30cdc5b8-5da9-40ac-86a9-ea0df5ef8317'}\n\u003e\u003e\u003e basicdweet.get_latest_dweet_for('YOUR_THING')\n[{'content': {'YOUR_DATA': 'YOUR_VALUE_2'}, 'created': '2022-05-27T06:19:08.081Z', 'thing': 'YOUR_THING'}]\n\u003e\u003e\u003e basicdweet.get_dweets_for('YOUR_THING')\n[{'content': {'YOUR_DATA': 'YOUR_VALUE_2'}, 'created': '2022-05-27T06:19:08.081Z', 'thing': 'YOUR_THING'}, {'content': {'YOUR_DATA': 'YOUR_VALUE'}, 'created': '2022-05-27T06:17:48.127Z', 'thing': 'YOUR_THING'}]\n```\n","funding_links":["https://www.paypal.me/jacklinquan"],"categories":["Libraries"],"sub_categories":["Communications"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklinquan%2Fmicropython-basicdweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklinquan%2Fmicropython-basicdweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklinquan%2Fmicropython-basicdweet/lists"}