{"id":15571086,"url":"https://github.com/n4s4/thingspeakwrapper","last_synced_at":"2025-12-26T23:03:30.453Z","repository":{"id":123043939,"uuid":"134433169","full_name":"N4S4/thingspeakWrapper","owner":"N4S4","description":"Just a simple but useful (for me) thingspeak python wrapper to speed up things!","archived":false,"fork":false,"pushed_at":"2019-01-22T00:03:51.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T13:24:28.490Z","etag":null,"topics":["python","thingspeak","thingspeak-wrapper","wrapper"],"latest_commit_sha":null,"homepage":"","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/N4S4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-05-22T15:07:52.000Z","updated_at":"2019-08-04T16:49:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b8f85c9-8aad-4dca-821a-624a9c484ca1","html_url":"https://github.com/N4S4/thingspeakWrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/N4S4/thingspeakWrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N4S4%2FthingspeakWrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N4S4%2FthingspeakWrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N4S4%2FthingspeakWrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N4S4%2FthingspeakWrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/N4S4","download_url":"https://codeload.github.com/N4S4/thingspeakWrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N4S4%2FthingspeakWrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28063976,"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","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["python","thingspeak","thingspeak-wrapper","wrapper"],"created_at":"2024-10-02T17:54:25.790Z","updated_at":"2025-12-26T23:03:30.426Z","avatar_url":"https://github.com/N4S4.png","language":"Python","readme":"# Thingspeak Wrapper\n\nGuys I would like to share with you my wrapper,\nI find it useful for my project as saves lot of lines of code\nwhen i need to get and send data to [Thingspeak](thingspeak.com).\n\nI would like to specify that **I am Not** a programmer as I do it all\nfor hobby and in my **little** free time.\n\n## Premise\n\nI've tried this wrapper only with python3 \nI do not know if it actually runs with previous versions \nbut I will test and update as soon as possible (as soon I have time).\n\n## Prerequisites\n\nPrior to install this wrapper you will need to install pandas dataframe library.\n\n## Installation\n\nJust go to repository folder and run the setup.py it wil install the wrapper for you.\nfrom the command line go to the downloaded folder and run:\n\n```\npython3.6 setup.py install\n```\n\n## Testing\n\nIn the test folder of this repository you'll find a test.py file which initiate and run all the functions\non one of my public channels on [Thingspeak](https://thingspeak.com/channels/501309).\n\nThe test file is also commented with explanations.\n\n## Basic Usage\n\n```\nimport thingspeak_wrapper as tsw \n\n# Initiate the class ThingWrapper with (CHANNEL_ID, WRITE_API__KEY, READ_API_KEY)\n# if is a public channel just pass the CHANNEL_ID api_key defaults are None\nmy_channel = tsw.wrapper.ThingWrapper(channel_id, 'write_api_key', 'read_api_key')\n\n# send values to a field with sender(field, value)\n\nmychannel.sender(1, 24)\n```\n\n## Available Functions\n\nIt is a very small script for now do I did not write any documentation.\nI am planning  to introduce some more functions so as soon it will get mor complex I'll write it.\n\nFor now ill write them here.\n\nthe entire set of available functions are:\n\n```\n# one field and one value\nmy_channel.sender(field, value) \n\n# more fields more values; pass them as lists\nmy_channel.multiple_sender([fields], [values]) \n\n# if arguments are left empty all fields and all values are returned with a max of 8000 values\nmy_channel.get_json_feeds(fields='feeds', results_quantity=None) \n\n# you can request from and to specific dates\n# dates and times must be as string type with this format 'YYYY-MM-DD' 'HH:NN:SS'\n# see test.py for better instructions\nmy_channel.get_json_feeds_from(start_date, start_time, stop_date, stop_time, fields='feeds')\n\nmy_channel.get_xml_feeds(fields='feeds', results_quantity=None)\n\nmy_channel.get_xml_feeds_from(start_date, start_time, stop_date, stop_time, fields='feeds')\n\n# csv data can be returned as pandas data frame and not\n# just specify pandas_format=False if you don't want it as data frame\n# default is True\nmy_channel.get_csv_feeds(fields='feeds', pandas_format=True, results_quantity=None)\n\nmy_channel.get_csv_feeds_from(start_date, start_time, stop_date, stop_time, fields='feeds')\n```\n\n## Conclusions\n\n###### I know I know\n \nis not the best snippet you ever seen but it is helping me a lot!\nI hope whom is interested will contribute to improve this wrapper for a better use,\nlet me know if you need something!\n\n## Contributing\n\nPlease fork it!\n\n## Authors\n\n- Renato Visaggio - _Initial_ _Work_ - [N4S4](https://github.com/N4S4)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn4s4%2Fthingspeakwrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn4s4%2Fthingspeakwrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn4s4%2Fthingspeakwrapper/lists"}